linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* SLUB: sysfs lets root force slab order below required minimum, causing memory corruption
@ 2020-03-04  0:23 Jann Horn
  2020-03-04  1:26 ` David Rientjes
  2020-03-04 13:17 ` Vlastimil Babka
  0 siblings, 2 replies; 8+ messages in thread
From: Jann Horn @ 2020-03-04  0:23 UTC (permalink / raw)
  To: Christoph Lameter, Pekka Enberg, David Rientjes, Joonsoo Kim,
	Andrew Morton
  Cc: Linux-MM, kernel list, Kees Cook, Matthew Garrett

Hi!

FYI, I noticed that if you do something like the following as root,
the system blows up pretty quickly with error messages about stuff
like corrupt freelist pointers because SLUB actually allows root to
force a page order that is smaller than what is required to store a
single object:

    echo 0 > /sys/kernel/slab/task_struct/order

The other SLUB debugging options, like red_zone, also look kind of
suspicious with regards to races (either racing with other writes to
the SLUB debugging options, or with object allocations).


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-03-08 19:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  0:23 SLUB: sysfs lets root force slab order below required minimum, causing memory corruption Jann Horn
2020-03-04  1:26 ` David Rientjes
2020-03-04  2:22   ` Kees Cook
2020-03-04 17:26     ` Vlastimil Babka
2020-03-04 20:39       ` David Rientjes
2020-03-08 19:34         ` Christopher Lameter
2020-03-04 14:57   ` Pekka Enberg
2020-03-04 13:17 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).