summaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorRicardo B. Marlière <rbm@suse.com>2026-04-07 17:35:46 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-11 13:25:32 +0300
commitf36ddf9317dc99019a498af3853d547de1f62e5f (patch)
tree3e2c44e57d0728f86ff5948521722efcf484389d /scripts/git.orderFile
parentfdb48976b6379c2b91e1ad4aafef07ee8b1ddb0e (diff)
downloadlinux-f36ddf9317dc99019a498af3853d547de1f62e5f.tar.xz
selftests/namespaces: Fix waitpid race in listns_efault_test cleanup
The efault tests spawn two categories of child processes: namespace children (each in its own mount namespace, for concurrent destruction) and an iterator child that calls listns() in a tight loop. The cleanup loop used waitpid(-1), which reaps any child in any order. If the iterator child exits early (e.g. because listns() returned ENOSYS) before all namespace children have been reaped, waitpid(-1) may consume it instead. The subsequent targeted waitpid(iter_pid) would then block indefinitely. Track the PIDs of the namespace children explicitly and use targeted waitpid() calls in the cleanup loop so the iterator child cannot be inadvertently reaped during namespace cleanup. Signed-off-by: Ricardo B. Marlière <rbm@suse.com> Link: https://patch.msgid.link/20260407-selftests-namespaces_fixes-v1-2-59109909d88b@suse.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions