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: <CAG_fn=VguRD6+7oiiNKLXH6pGJr8Pzz5JE6abRbGGMBBt6Rgrw@mail.gmail.com>
Date: Tue, 7 Oct 2025 14:37:41 +0200
From: Alexander Potapenko <glider@...gle.com>
To: "Uladzislau Rezki (Sony)" <urezki@...il.com>
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>, 
	Michal Hocko <mhocko@...nel.org>, Baoquan He <bhe@...hat.com>, LKML <linux-kernel@...r.kernel.org>, 
	Marco Elver <elver@...gle.com>
Subject: Re: [PATCH v4 07/10] kmsan: Remove hard-coded GFP_KERNEL flags

On Tue, Oct 7, 2025 at 2:20 PM Uladzislau Rezki (Sony) <urezki@...il.com> wrote:
>
> kmsan_vmap_pages_range_noflush() allocates its temp s_pages/o_pages
> arrays with GFP_KERNEL, which may sleep. This is inconsistent with
> vmalloc() as it will support non-blocking requests later.
>
> Plumb gfp_mask through the kmsan_vmap_pages_range_noflush(), so it
> can use it internally for its demand.
>
> Please note, the subsequent __vmap_pages_range_noflush() still uses
> GFP_KERNEL and can sleep. If a caller runs under reclaim constraints,
> sleeping is forbidden, it must establish the appropriate memalloc
> scope API.
>
> Cc: Alexander Potapenko <glider@...gle.com>
> Cc: Marco Elver <elver@...gle.com>
> Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
Reviewed-by: Alexander Potapenko <glider@...gle.com>

Thank you!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ