linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: Expand CONFIG_SLAB_FREELIST_HARDENED to include SLAB and SLOB
@ 2020-06-17 19:53 Kees Cook
  2020-06-17 19:53 ` [PATCH 1/2] " Kees Cook
  2020-06-17 19:53 ` [PATCH 2/2] slab: Add naive detection of double free Kees Cook
  0 siblings, 2 replies; 5+ messages in thread
From: Kees Cook @ 2020-06-17 19:53 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kees Cook, Vlastimil Babka, Roman Gushchin, Christoph Lameter,
	Alexander Popov, Pekka Enberg, David Rientjes, Joonsoo Kim,
	vinmenon, Matthew Garrett, Jann Horn, Vijayanand Jitta, linux-mm,
	linux-kernel

Hi,

In reviewing Vlastimil Babka's latest slub debug series, I realized[1]
that several checks under CONFIG_SLAB_FREELIST_HARDENED weren't being
applied to SLAB (or SLOB). Fix this by expanding the Kconfig coverage and
moving the cache_from_obj() check back into the common code. Additionally
adds a simple double-free test for SLAB.

Thanks!

-Kees

[1] https://lore.kernel.org/lkml/202006171039.FBDF2D7F4A@keescook/

Kees Cook (2):
  mm: Expand CONFIG_SLAB_FREELIST_HARDENED to include SLAB and SLOB
  slab: Add naive detection of double free

 init/Kconfig |  8 ++++----
 mm/slab.c    | 22 ++++++++++++----------
 mm/slab.h    | 31 +++++++++++++++++++++++++++++++
 mm/slub.c    | 25 +------------------------
 4 files changed, 48 insertions(+), 38 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2020-06-18 20:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 19:53 [PATCH 0/2] mm: Expand CONFIG_SLAB_FREELIST_HARDENED to include SLAB and SLOB Kees Cook
2020-06-17 19:53 ` [PATCH 1/2] " Kees Cook
2020-06-17 20:01   ` Matthew Wilcox
2020-06-18 20:37     ` Kees Cook
2020-06-17 19:53 ` [PATCH 2/2] slab: Add naive detection of double free Kees Cook

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