lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1724135600-42498-1-git-send-email-zhang.chuna@h3c.com>
Date: Tue, 20 Aug 2024 14:33:20 +0800
From: zhangchun <zhang.chuna@....com>
To: <willy@...radead.org>
CC: <akpm@...ux-foundation.org>, <jiaoxupo@....com>,
        <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
        <shaohaojize@....com>, <zhang.chuna@....com>
Subject: [PATCH] use might_sleep check if kmap_high is called from atomic context

>On Tue, Aug 20, 2024 at 09:53:11AM +0800, zhangchun wrote:
>> kmap_high is defined as EXPORT_SYMBOL, and cannot be called from 
>> atomic context. Add might_sleep check is necessary.

>No.  Nobody should be calling kmap_high() directly.  There's already a
>might_sleep() in kmap().  No need to add one in kmap_high().

To avoid anyone calls kmap_high directly, add function description "Don't
use kmap_high directly, if necessary, please use kmap"
Signed-off-by: zhangchun <zhang.chuna@....com>
-- 
1.8.3.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ