]> www.infradead.org Git - users/jedix/linux-maple.git/commit
posix-timers: Make signal overrun accounting sensible
authorThomas Gleixner <tglx@linutronix.de>
Tue, 5 Nov 2024 08:14:32 +0000 (09:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:14:43 +0000 (02:14 +0100)
commitb06b0345fff3678517acd0f1837d52477ba30944
treebd129efa8e7596f745917ad597d7101a0e396585
parent513793bc6ab331b947111e8efaf8fcef33fb83e5
posix-timers: Make signal overrun accounting sensible

The handling of the timer overrun in the signal code is inconsistent as it
takes previous overruns into account. This is just wrong as after the
reprogramming of a timer the overrun count starts over from a clean state,
i.e. 0.

Don't touch info::si_overrun in send_sigqueue() and only store the overrun
value at signal delivery time, which is computed from the timer itself
relative to the expiry time.

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.106738193@linutronix.de
kernel/signal.c
kernel/time/posix-timers.c