Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

signal: Fix the lock_task_sighand() annotation

lock_task_sighand() may return NULL. Make this clear in its lock context
annotation.

Fixes: 04e49d926f43 ("sched: Enable context analysis for core.c and fair.c")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/20260225183244.4035378-3-bvanassche@acm.org

authored by

Bart Van Assche and committed by
Peter Zijlstra
39be7b21 38e18d82

+1 -1
+1 -1
include/linux/sched/signal.h
··· 739 739 740 740 extern struct sighand_struct *lock_task_sighand(struct task_struct *task, 741 741 unsigned long *flags) 742 - __acquires(&task->sighand->siglock); 742 + __cond_acquires(nonnull, &task->sighand->siglock); 743 743 744 744 static inline void unlock_task_sighand(struct task_struct *task, 745 745 unsigned long *flags)