lkdtm/heap: Note conditions for SLAB_LINEAR_OVERFLOW
authorKees Cook <keescook@chromium.org>
Wed, 16 Feb 2022 18:20:47 +0000 (10:20 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 12 Apr 2022 23:11:49 +0000 (16:11 -0700)
commit42db2594e4cd4a3c29aad87f80b1c00bf7751afe
treefc6a1f3ddb556df937ed649494638a22dc730c1d
parent4a9800c81d2f34afb66b4b42e0330ae8298019a2
lkdtm/heap: Note conditions for SLAB_LINEAR_OVERFLOW

It wasn't clear when SLAB_LINEAR_OVERFLOW would be expected to trip.
Explicitly describe it and include the CONFIGs in the kselftest.

Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm/heap.c
tools/testing/selftests/lkdtm/config