]> www.infradead.org Git - nvme.git/commitdiff
kunit/fortify: Remove __kmalloc_node() test
authorKees Cook <kees@kernel.org>
Fri, 31 May 2024 18:57:07 +0000 (11:57 -0700)
committerKees Cook <kees@kernel.org>
Fri, 31 May 2024 20:47:41 +0000 (13:47 -0700)
__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>
lib/fortify_kunit.c

index 39da5b3bc649c28896e60d9dac974b98973da8d0..f9cc467334ce3de06fbf101ace3dcab87566cbf0 100644 (file)
@@ -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);                                \