Skip to contentSkip to conversation

mm/slub: add a dump_stack() to the unexpected GFP check

PATCH New [email protected] 1 participant 1 message Feb 22, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

---

 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
diff -puN mm/slub.c~mm-slub-add-a-dump_stack-to-the-unexpected-gfp-check mm/slub.c
@@ -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,

_