Hi,
Add the __counted_by_ptr() macro for annotating pointer struct members
with the "counted_by" attribute. Add LKDTM test, and a first user.
-Kees
Kees Cook (3):
compiler_types: Introduce __counted_by_ptr()
lkdtm/bugs: Add __counted_by_ptr() test PTR_BOUNDS
coredump: Use __counted_by_ptr for struct core_name::corename
init/Kconfig | 11 +++
Makefile | 4 ++
include/linux/compiler_types.h | 21 +++++-
include/uapi/linux/stddef.h | 4 ++
drivers/misc/lkdtm/bugs.c | 90 ++++++++++++++++++++++---
fs/coredump.c | 8 +--
tools/testing/selftests/lkdtm/tests.txt | 2 +
7 files changed, 127 insertions(+), 13 deletions(-)
--
2.34.1