diff options
| author | 2026-09-08 22:27:30 +0000 | |
|---|---|---|
| committer | 2026-09-09 09:45:01 +0200 | |
| commit | f6f1a2496ba5dcc076d7fb7aa329887cd6ae55fa (patch) | |
| tree | 7fc226bb2f249a4f225e06a03782d3d8dfc00475 /scripts/Makefile.thinlto | |
| parent | userns: Add __counted_by_ptr attribute to struct uid_gid_map (diff) | |
userns: Add KUnit test suite for uid_gid_map
Add a KUnit test suite to verify the insertion and sorting of mappings
in struct uid_gid_map. This test suite validates both base extent
insertion (<= 5 mappings) and extended extent insertion (> 5 mappings,
which triggers the allocation of the forward and reverse pointers).
This is especially useful for verifying that the __counted_by_ptr
attribute added to 'forward' and 'reverse' pointers works correctly
without causing any runtime bounds-checking panics or traps.
Signed-off-by: Bill Wendling <morbo@google.com>
Link: https://patch.msgid.link/20260908222734.3048684-2-morbo@google.com
Tested-by: Bradley Morgan <brads@mainlining.org>
Reviewed-by: Bradley Morgan <brads@mainlining.org>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
