kill the racy EXIT_ZOMBIE->EXIT_DEAD->EXIT_ZOMBIE transition
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | wait: fix reparent_leader() vs EXIT_DEAD->EXIT_ZOMBIE racekernel/ | +11 | 0 replies | |
| 2/5 | wait: introduce EXIT_TRACE to avoid the racy EXIT_DEAD->EXIT_ZOMBIE transitioninclude/ kernel/ | +22 | 0 replies | |
| 3/5 | wait: use EXIT_TRACE only if thread_group_leader(zombie)kernel/ | +7 | 0 replies | |
| 4/5 | wait: completely ignore the EXIT_DEAD taskskernel/ | +6 | 0 replies | |
| 5/5 | wait: swap EXIT_ZOMBIE and EXIT_DEAD to hide EXIT_TRACE from user-spacefs/ include/ | +4 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by.
| Patch | Michal Schmidt |
|---|---|
| 1/5 | Reported-and-tested-by |
| 2/5 | Reported-and-tested-by |
| 3/5 | T-b |
| 4/5 | T-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] kill the racy EXIT_ZOMBIE->EXIT_DEAD->EXIT_ZOMBIE transition
Hello.
1/7 cc's stable, and imo it is v3.14 material. This hack is reverted by the next patch.
Many thanks to Michal and Jan for investigating.
And it seems that we need more (unrelated) changes in do_wait(), will try to do this tomorrow.
Tejun, unless I missed something WSTOPPED logic is broken if a process has a zombie/ptraced leader, "A zombie ptracee is only visible to its ptracer" is wrong in this case. Plus perhaps some cleanups make sense.
Oleg.
fs/proc/array.c | 4 +- include/linux/sched.h | 5 ++- kernel/exit.c | 51 +++++++++++++++++++++++------------------------- 3 files changed, 29 insertions(+), 31 deletions(-)