mirror-linux/tools/testing
Matthieu Buffet e4aa4461d4
selftests/landlock: NULL-terminate unix pathname addresses
The size of Unix pathname addresses is computed in selftests using
offsetof(struct sockaddr_un, sun_path) + strlen(xxx). It should have
been that +1, which makes addresses passed to the libc and kernel
non-NULL-terminated. unix_mkname_bsd() fixes that in Linux so there is
no harm, but just using sizeof(the address struct) should improve
readability.

Signed-off-by: Matthieu Buffet <matthieu@buffet.re>
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20251202215141.689986-1-matthieu@buffet.re
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2025-12-26 20:38:58 +01:00
..
crypto/chacha20-s390
cxl Merge branch 'for-6.19/cxl-misc' into cxl-for-next 2025-11-18 16:27:58 -07:00
fault-injection
ktest ktest.pl: Fix uninitialized var in config-bisect.pl 2025-12-03 18:25:18 -05:00
kunit
memblock
nvdimm
radix-tree
rbtree
scatterlist
selftests selftests/landlock: NULL-terminate unix pathname addresses 2025-12-26 20:38:58 +01:00
shared
vma mm: introduce VMA flags bitmap type 2025-11-29 10:41:09 -08:00
vsock vsock/test: Extend transport change null-ptr-deref test 2025-11-25 19:16:21 -08:00