mirror-linux/tools/testing/selftests
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
..
acct selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
alsa Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
amd-pstate
arm64 Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
bpf selftests/bpf: replace "__auto_type" with "auto" 2025-12-08 15:32:15 -08:00
breakpoints selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
cachestat selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
capabilities selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
cgroup Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
clone3 selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
connector selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
core selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
coredump Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
cpu-hotplug
cpufreq
damon selftests/damon/sysfs.py: merge DAMON status dumping into commitment assertion 2025-11-20 13:44:01 -08:00
devices
dmabuf-heaps selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
drivers Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
dt
efivarfs
exec selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
fchmodat2 selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
filelock selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
filesystems Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
firmware
fpu
ftrace Runtime verifier updates for v6.19: 2025-12-05 10:17:00 -08:00
futex Futex changes for v6.19: 2025-12-10 17:21:30 +09:00
gpio
hid Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
ia64
intel_pstate selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
iommu Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
ipc selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
ir selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
kcmp selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
kexec
kho kho: make debugfs interface optional 2025-11-27 14:24:31 -08:00
kmod
kselftest selftests/run_kselftest.sh: exit with error if tests fail 2025-11-19 15:00:22 -07:00
kselftest_harness selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
kvm ARM: 2025-12-05 17:01:20 -08:00
landlock selftests/landlock: NULL-terminate unix pathname addresses 2025-12-26 20:38:58 +01:00
lib
livepatch
liveupdate selftests/liveupdate: add kexec test for multiple and empty sessions 2025-11-27 14:24:42 -08:00
lkdtm
locking
lsm selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
media_tests selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
membarrier selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
memfd
memory-hotplug
mincore selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
mm Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
module
mount
mount_setattr selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
move_mount_set_group selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
mqueue selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
mseal_system_mappings selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
namespaces Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
nci selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
net Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
nolibc nolibc changes for v6.19 2025-12-03 09:23:25 -08:00
ntb
openat2 selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pci_endpoint selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pcie_bwctrl
perf_events selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pid_namespace selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pidfd Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
power_supply
powerpc
prctl selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
proc selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pstore
ptp
ptrace selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
rcutorture Merge branch 'rcu/misc' into next 2025-11-30 22:20:33 +01:00
resctrl selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
ring-buffer selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
riscv Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
rlimits
rseq Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
rtc selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
rust
safesetid
sched
sched_ext
seccomp selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
sgx selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
signal selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
size
sparc64 selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
splice
static_keys
sync selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
syscall_user_dispatch selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
sysctl
tc-testing selftests/tc-testing: Test CAKE scheduler when enqueue drops packets 2025-12-02 13:28:00 +01:00
tdx selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
thermal/intel
timens selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
timers Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
tmpfs selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
tpm2 selftests: tpm2: Fix ill defined assertions 2025-12-03 22:55:27 +02:00
tty TTY/Serial changes for 6.19-rc1 2025-12-06 18:38:19 -08:00
turbostat
ublk
uevent selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
user_events selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
vDSO Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
verification selftests/verification: Add initial RV tests 2025-11-11 13:18:55 +01:00
vfio Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
vsock selftests/vsock: disable shellcheck SC2317 and SC2119 2025-11-12 06:19:40 -08:00
watchdog
wireguard hung_task: panic when there are more than N hung tasks at the same time 2025-11-12 10:00:14 -08:00
x86 Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
zram
.gitignore
Makefile selftests/liveupdate: add userspace API selftests 2025-11-27 14:24:41 -08:00
gen_kselftest_tar.sh
kselftest.h
kselftest_deps.sh
kselftest_harness.h selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
kselftest_install.sh
kselftest_module.h
lib.mk selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
run_kselftest.sh selftests/run_kselftest.sh: exit with error if tests fail 2025-11-19 15:00:22 -07:00