]> www.infradead.org Git - users/willy/linux.git/commit
mm: Convert check_heap_object() to use struct slab
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 12:30:33 +0000 (08:30 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 12:30:33 +0000 (08:30 -0400)
commit7fac5c054f89a40083d82ff445510f9ba898fd19
tree396f092c4d7785e49f5ea6582d942468f4373139
parentf9990cca58e5c4bc8424e2c68ab31213a811f73e
mm: Convert check_heap_object() to use struct slab

Ensure that we're not seeing a tail page inside __check_heap_object()
by converting to a slab instead of a page.  Take the opportunity to
mark the slab as const since we're not modifying it.  Also move the
declaration of __check_heap_object() to mm/slab.h so it's not
available to the wider kernel.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/slab.h
mm/slab.c
mm/slab.h
mm/slub.c
mm/usercopy.c