[Bug 220434] New: KASAN: respect GFP context flags for vmalloc allocations

0 views
Skip to first unread message

bugzill...@kernel.org

unread,
Aug 11, 2025, 9:37:35 AM8/11/25
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=220434

Bug ID: 220434
Summary: KASAN: respect GFP context flags for vmalloc
allocations
Product: Memory Management
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Sanitizers
Assignee: mm_san...@kernel-bugs.kernel.org
Reporter: andre...@gmail.com
CC: kasa...@googlegroups.com
Regression: No

From [1]:

> KASAN is still failing to pass through __GFP_NOLOCKDEP allocation
> context flags. It's also failing to pass through other important
> context restrictions like GFP_NOFS, GFP_NOIO, __GFP_NOFAIL, etc.
>
> Fundamentally, it's a bug to be doing nested GFP_KERNEL allocations
> inside an allocation context that has a more restricted allocation
> context...

See [2] and [3] that fixed a similar issue in stack depot [4].

[1] https://lore.kernel.org/all/686ea951.050a022...@google.com/T/
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6fe60465e1d53ea321ee909be26d97529e8f746c
[3]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=70c435ca8dcb64e3d7983a30a14484aa163bb2d2
[4] https://bugzilla.kernel.org/show_bug.cgi?id=216973

--
You may reply to this email to add a comment.

You are receiving this mail because:
You are on the CC list for the bug.
Reply all
Reply to author
Forward
0 new messages