[PATCH 0/2] Add __counted_by_ptr attribute to struct uid_gid_map

From: Bill Wendling

Date: Sun Aug 23 2026 - 08:52:05 EST


Bill Wendling (2):
userns: Add __counted_by_ptr attribute to struct uid_gid_map
userns: Add KUnit test suite for uid_gid_map

include/linux/user_namespace.h | 4 +-
init/Kconfig | 10 ++++
kernel/.kunitconfig | 3 ++
kernel/user_namespace.c | 12 +++--
kernel/user_namespace_kunit.c | 87 ++++++++++++++++++++++++++++++++++
5 files changed, 110 insertions(+), 6 deletions(-)
create mode 100644 kernel/.kunitconfig
create mode 100644 kernel/user_namespace_kunit.c

--
2.55.0.860.g4b6b3295ed-goog