mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
kunit/fortify: Remove __kmalloc_node() test
__kmalloc_node() is considered an "internal" function to the Slab, so drop it from explicit testing. Link: https://lore.kernel.org/r/20240531185703.work.588-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
This commit is contained in:
parent
4e173c825b
commit
99a6087dfd
@ -235,9 +235,6 @@ static void fortify_test_alloc_size_##allocator##_dynamic(struct kunit *test) \
|
|||||||
kmalloc_array_node(alloc_size, 1, gfp, NUMA_NO_NODE), \
|
kmalloc_array_node(alloc_size, 1, gfp, NUMA_NO_NODE), \
|
||||||
kfree(p)); \
|
kfree(p)); \
|
||||||
checker(expected_size, __kmalloc(alloc_size, gfp), \
|
checker(expected_size, __kmalloc(alloc_size, gfp), \
|
||||||
kfree(p)); \
|
|
||||||
checker(expected_size, \
|
|
||||||
__kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \
|
|
||||||
kfree(p)); \
|
kfree(p)); \
|
||||||
\
|
\
|
||||||
orig = kmalloc(alloc_size, gfp); \
|
orig = kmalloc(alloc_size, gfp); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user