]> git.ipfire.org Git - thirdparty/linux.git/commit
lkdtm/bugs: Add __counted_by_ptr() test PTR_BOUNDS
authorKees Cook <kees@kernel.org>
Mon, 20 Oct 2025 22:01:16 +0000 (15:01 -0700)
committerKees Cook <kees@kernel.org>
Sat, 17 Jan 2026 19:00:37 +0000 (11:00 -0800)
commita120a832e3ebca48474d7183ddeadf4138472535
tree542a421f9b5390f9afee2bba80d3bb1fa8de5646
parent150a04d817d8f5be5a4f92799827cdc8d7e45989
lkdtm/bugs: Add __counted_by_ptr() test PTR_BOUNDS

Provide run-time validation of the __counted_by_ptr() annotation via
newly added PTR_BOUNDS LKDTM test.

Link: https://patch.msgid.link/20251020220118.1226740-2-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/misc/lkdtm/bugs.c
tools/testing/selftests/lkdtm/tests.txt