aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2021-09-13 16:53:32 +0200
committerThomas Gleixner <[email protected]>2021-09-23 11:53:51 +0200
commit8cd9da85d2bd87ce889043e7b1735723dd10eb89 (patch)
tree6c3861d6c7546018bb4bae808aea793a3d95287b /lib
parente4e737bb5c170df6135a127739a9e6148ee3da82 (diff)
posix-cpu-timers: Prevent spuriously armed 0-value itimer
Resetting/stopping an itimer eventually leads to it being reprogrammed with an actual "0" value. As a result the itimer expires on the next tick, triggering an unexpected signal. To fix this, make sure that struct signal_struct::it[CPUCLOCK_PROF/VIRT]::expires is set to 0 when setitimer() passes a 0 it_value, indicating that the timer must stop. Fixes: 406dd42bd1ba ("posix-cpu-timers: Force next expiration recalc after itimer reset") Reported-by: Victor Stinner <[email protected]> Reported-by: Chris Hixon <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions