diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-21 15:44:59 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-22 15:33:17 +0200 |
| commit | cbb592b083e5c5fb3ac36087878ca572690c3c62 (patch) | |
| tree | c4792b4b8957e8d175a875f69248fa2dccadd8cf /tools/lib/python | |
| parent | cabc249e6560bee7bdfee9fbcb7ce4e951dcfd41 (diff) | |
| download | linux-next-cbb592b083e5c5fb3ac36087878ca572690c3c62.tar.gz linux-next-cbb592b083e5c5fb3ac36087878ca572690c3c62.zip | |
selftests/coredump: test a user worker as the coredumping thread
A tracer can clear the signal mask of an io-wq worker or an SQPOLL
thread with PTRACE_SETSIGMASK and inject a coredump signal. The worker
then runs vfs_coredump() itself. Cover that:
- a child keeps a ring, an idle io-wq worker and with SQPOLL the SQPOLL
thread alive
- seize the chosen thread, stop it with SIGSTOP, clear its mask and
detach with SIGSEGV
- require the thread group to be gone in bounded time, by the dump or
by SIGKILL
The io-wq worker of an SQPOLL ring fails: the SQPOLL thread waits for
its workers to exit before it parks, the dumping worker waits for the
SQPOLL thread to park and the group is stuck in D state.
Link: https://patch.msgid.link/20260921-work-coredump-fixes-v3-10-8e4adb1619e6@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
