]> www.infradead.org Git - users/jedix/linux-maple.git/commit
signal: Split up __sigqueue_alloc()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Nov 2024 08:14:38 +0000 (09:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:14:44 +0000 (02:14 +0100)
commit5cac427f7971b0619ebbfc131ef81fcf229c3c01
treee23a4ae3a1b279c5937ae695502372adfe431e84
parent5d916a0988eed5217c103932ff4887c9ae83c89c
signal: Split up __sigqueue_alloc()

To cure the SIG_IGN handling for posix interval timers, the preallocated
sigqueue needs to be embedded into struct k_itimer to prevent life time
races of all sorts.

Reorganize __sigqueue_alloc() so the ucounts retrieval and the
initialization can be used independently.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/20241105064213.371410037@linutronix.de
kernel/signal.c