From: Jaime Saguillo Revilla Date: Sun, 15 Feb 2026 12:45:11 +0000 (+0000) Subject: proc: array: drop stale FIXME about RCU in task_sig() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38d581ba76545b4712ecdb63f2b2612d5b7601c9;p=thirdparty%2Fkernel%2Fstable.git proc: array: drop stale FIXME about RCU in task_sig() task_sig() already wraps the SigQ rlimit read in an explicit RCU read-side critical section. Drop the stale FIXME comment and keep using task_ucounts() for the ucounts access. No functional change. Link: https://lkml.kernel.org/r/20260215124511.14227-1-jaime.saguillo@gmail.com Signed-off-by: Jaime Saguillo Revilla Acked-by: Oleg Nesterov Cc: Christian Brauner Signed-off-by: Andrew Morton --- diff --git a/fs/proc/array.c b/fs/proc/array.c index f447e734612aa..90fb0c6b5f99f 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -280,7 +280,7 @@ static inline void task_sig(struct seq_file *m, struct task_struct *p) blocked = p->blocked; collect_sigign_sigcatch(p, &ignored, &caught); num_threads = get_nr_threads(p); - rcu_read_lock(); /* FIXME: is this correct? */ + rcu_read_lock(); qsize = get_rlimit_value(task_ucounts(p), UCOUNT_RLIMIT_SIGPENDING); rcu_read_unlock(); qlim = task_rlimit(p, RLIMIT_SIGPENDING);