[PATCH 0/1] add pid::tasks_lock to fix send_sigio() and send_sigurg()
From: Oleg Nesterov
Date: Sat Oct 17 2026 - 11:49:32 EST
Not for inclusion yet, just RFC. In particular, I'd like to have
a review from sashiko, I am sure I missed something ;)
Only compile tested, the changelog is obviously incomplete,
__change_pid() should die after this change, etc.
And. I am still not sure that the new lock should be per pid, perhaps
a simple global lock which aligns with tasklist makes more sense, it
should not be contended too much.
Please comment.
Oleg.
fs/fcntl.c | 4 ++++
include/linux/pid.h | 1 +
kernel/pid.c | 24 +++++++++++++++++++-----
3 files changed, 24 insertions(+), 5 deletions(-)