mm/slub: add a dump_stack() to the unexpected GFP check
Subsystems (2)
[email protected]
maintainerPATCH 26/142 mm/slub: add a dump_stack() to the unexpected GFP check
From: Borislav Petkov <[email protected]>
Subject: mm/slub: add a dump_stack() to the unexpected GFP check
We wish to know who is doing such a thing. slab.c does this.
Signed-off-by Borislav Petkov <[email protected]>
Acked-by Michal Hocko <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc David Rientjes <[email protected]>
Cc Joonsoo Kim <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/slub.c | 1 + 1 file changed, 1 insertion(+)
mm/slub.c renamed from mm/slub.c~mm-slub-add-a-dump_stack-to-the-unexpected-gfp-check +1 -0
@@ -1630,6 +1630,7 @@ static struct page *new_slab(struct kmem flags &= ~GFP_SLAB_BUG_MASK ;pr_warn ("Unexpected gfp: %#x (%pGg). Fixing up to gfp: %#x (%pGg). Fix your code!\n" , invalid_mask, &invalid_mask, flags, &flags); +dump_stack (); } return allocate_slab(s,
_