KFENCE: cleanup kfence_guarded_alloc() after CONFIG_SLAB removal
authorVlastimil Babka <vbabka@suse.cz>
Mon, 2 Oct 2023 14:28:44 +0000 (16:28 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Tue, 5 Dec 2023 10:17:58 +0000 (11:17 +0100)
commita745b067db0f0711974063deb78c6639c24ec5bf
tree5531c99ada5b9efb12f8157765bfa4fb221633f7
parent72786c0a3dc5d4151469f512909049a0b17ada3d
KFENCE: cleanup kfence_guarded_alloc() after CONFIG_SLAB removal

Some struct slab fields are initialized differently for SLAB and SLUB so
we can simplify with SLUB being the only remaining allocator.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Marco Elver <elver@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Tested-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/kfence/core.c