Revision 8cd9da85d2bd87ce889043e7b1735723dd10eb89 authored by Frederic Weisbecker on 13 September 2021, 14:53:32 UTC, committed by Thomas Gleixner on 23 September 2021, 09:53:51 UTC
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 <vstinner@redhat.com>
Reported-by: Chris Hixon <linux-kernel-bugs@hixontech.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210913145332.232023-1-frederic@kernel.org
1 parent e4e737b
History
File Mode Size
netfilter
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 996 bytes
br.c -rw-r--r-- 10.3 KB
br_arp_nd_proxy.c -rw-r--r-- 11.4 KB
br_cfm.c -rw-r--r-- 20.4 KB
br_cfm_netlink.c -rw-r--r-- 20.7 KB
br_device.c -rw-r--r-- 12.6 KB
br_fdb.c -rw-r--r-- 34.2 KB
br_forward.c -rw-r--r-- 7.8 KB
br_if.c -rw-r--r-- 18.1 KB
br_input.c -rw-r--r-- 10.6 KB
br_ioctl.c -rw-r--r-- 8.9 KB
br_mdb.c -rw-r--r-- 33.7 KB
br_mrp.c -rw-r--r-- 32.1 KB
br_mrp_netlink.c -rw-r--r-- 15.9 KB
br_mrp_switchdev.c -rw-r--r-- 5.8 KB
br_multicast.c -rw-r--r-- 129.6 KB
br_multicast_eht.c -rw-r--r-- 21.9 KB
br_netfilter_hooks.c -rw-r--r-- 30.9 KB
br_netfilter_ipv6.c -rw-r--r-- 5.6 KB
br_netlink.c -rw-r--r-- 52.4 KB
br_netlink_tunnel.c -rw-r--r-- 7.9 KB
br_nf_core.c -rw-r--r-- 2.0 KB
br_private.h -rw-r--r-- 59.4 KB
br_private_cfm.h -rw-r--r-- 4.3 KB
br_private_mcast_eht.h -rw-r--r-- 2.5 KB
br_private_mrp.h -rw-r--r-- 4.3 KB
br_private_stp.h -rw-r--r-- 1.7 KB
br_private_tunnel.h -rw-r--r-- 2.3 KB
br_stp.c -rw-r--r-- 16.2 KB
br_stp_bpdu.c -rw-r--r-- 5.6 KB
br_stp_if.c -rw-r--r-- 8.4 KB
br_stp_timer.c -rw-r--r-- 4.2 KB
br_switchdev.c -rw-r--r-- 8.8 KB
br_sysfs_br.c -rw-r--r-- 29.6 KB
br_sysfs_if.c -rw-r--r-- 10.7 KB
br_vlan.c -rw-r--r-- 54.5 KB
br_vlan_options.c -rw-r--r-- 19.6 KB
br_vlan_tunnel.c -rw-r--r-- 4.8 KB

back to top