Skip to content

Commit

Permalink
kunit/fortify: Remove __kmalloc_node() test
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Kees Cook committed May 31, 2024
1 parent 4e173c8 commit 99a6087
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/fortify_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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), \
kfree(p)); \
checker(expected_size, __kmalloc(alloc_size, gfp), \
kfree(p)); \
checker(expected_size, \
__kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \
kfree(p)); \
\
orig = kmalloc(alloc_size, gfp); \
Expand Down

0 comments on commit 99a6087

Please sign in to comment.