Skip to content

Commit b16ee0f

Browse files
rppttorvalds
authored andcommitted
mmflags.h: add missing __GFP_ZEROTAGS and __GFP_SKIP_KASAN_POISON names
printk("%pGg") outputs these two flags as hexadecimal number, rather than as a string, e.g: GFP_KERNEL|0x1800000 Fix this by adding missing names of __GFP_ZEROTAGS and __GFP_SKIP_KASAN_POISON flags to __def_gfpflag_names. Link: https://lkml.kernel.org/r/[email protected] Fixes: 013bb59 ("arm64: mte: handle tags zeroing at page allocation time") Fixes: c275c5c ("kasan: disable freed user page poisoning with HW tags") Signed-off-by: Mike Rapoport <[email protected]> Cc: Peter Collingbourne <[email protected]> Cc: Steven Rostedt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 47aef60 commit b16ee0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/trace/events/mmflags.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
{(unsigned long)__GFP_WRITE, "__GFP_WRITE"}, \
4949
{(unsigned long)__GFP_RECLAIM, "__GFP_RECLAIM"}, \
5050
{(unsigned long)__GFP_DIRECT_RECLAIM, "__GFP_DIRECT_RECLAIM"},\
51-
{(unsigned long)__GFP_KSWAPD_RECLAIM, "__GFP_KSWAPD_RECLAIM"}\
51+
{(unsigned long)__GFP_KSWAPD_RECLAIM, "__GFP_KSWAPD_RECLAIM"},\
52+
{(unsigned long)__GFP_ZEROTAGS, "__GFP_ZEROTAGS"}, \
53+
{(unsigned long)__GFP_SKIP_KASAN_POISON,"__GFP_SKIP_KASAN_POISON"}\
5254

5355
#define show_gfp_flags(flags) \
5456
(flags) ? __print_flags(flags, "|", \

0 commit comments

Comments
 (0)