syzbot


KCSAN: data-race in enqueue_timer / timer_clear_idle (2)

Status: auto-obsoleted due to no activity on 2023/08/17 09:26
Subsystems: kernel
[Documentation on labels]
First crash: 565d, last: 565d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in enqueue_timer / timer_clear_idle kernel 2 644d 684d 0/28 auto-obsoleted due to no activity on 2023/05/30 16:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in enqueue_timer / timer_clear_idle

write to 0xffff888237d1cc65 of 1 bytes by task 0 on cpu 1:
 timer_clear_idle+0x22/0x30 kernel/time/timer.c:1987
 tick_nohz_idle_retain_tick+0x35/0x40 kernel/time/tick-sched.c:1151
 cpuidle_idle_call kernel/sched/idle.c:213 [inline]
 do_idle+0x1d9/0x230 kernel/sched/idle.c:282
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379
 start_secondary+0x82/0x90 arch/x86/kernel/smpboot.c:326
 secondary_startup_64_no_verify+0x168/0x16b

read to 0xffff888237d1cc65 of 1 bytes by interrupt on cpu 0:
 trigger_dyntick_cpu kernel/time/timer.c:592 [inline]
 enqueue_timer+0x1fb/0x2a0 kernel/time/timer.c:624
 __mod_timer+0x67e/0x860
 mod_timer+0x1f/0x30 kernel/time/timer.c:1190
 sk_reset_timer+0x23/0xa0 net/core/sock.c:3377
 tcp_send_delayed_ack+0x204/0x210 net/ipv4/tcp_output.c:4030
 __tcp_ack_snd_check+0x2f8/0x500 net/ipv4/tcp_input.c:5547
 tcp_ack_snd_check net/ipv4/tcp_input.c:5588 [inline]
 tcp_rcv_established+0x6ac/0xea0 net/ipv4/tcp_input.c:6028
 tcp_v4_do_rcv+0x2d4/0x630 net/ipv4/tcp_ipv4.c:1726
 tcp_v4_rcv+0x1913/0x1b70 net/ipv4/tcp_ipv4.c:2148
 ip_protocol_deliver_rcu+0x356/0x6d0 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x13c/0x1a0 net/ipv4/ip_input.c:233
 NF_HOOK include/linux/netfilter.h:303 [inline]
 ip_local_deliver+0xec/0x1c0 net/ipv4/ip_input.c:254
 dst_input include/net/dst.h:468 [inline]
 ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline]
 ip_list_rcv_finish net/ipv4/ip_input.c:630 [inline]
 ip_sublist_rcv+0x4e1/0x5b0 net/ipv4/ip_input.c:638
 ip_list_rcv+0x25e/0x290 net/ipv4/ip_input.c:673
 __netif_receive_skb_list_ptype net/core/dev.c:5495 [inline]
 __netif_receive_skb_list_core+0x356/0x460 net/core/dev.c:5543
 __netif_receive_skb_list net/core/dev.c:5595 [inline]
 netif_receive_skb_list_internal+0x4e6/0x660 net/core/dev.c:5686
 gro_normal_list include/net/gro.h:439 [inline]
 napi_complete_done+0x1cb/0x450 net/core/dev.c:6026
 virtqueue_napi_complete drivers/net/virtio_net.c:408 [inline]
 virtnet_poll+0x763/0xab0 drivers/net/virtio_net.c:1967
 __napi_poll+0x60/0x3b0 net/core/dev.c:6460
 napi_poll net/core/dev.c:6527 [inline]
 net_rx_action+0x32b/0x750 net/core/dev.c:6660
 __do_softirq+0xc1/0x265 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644
 common_interrupt+0x7f/0x90 arch/x86/kernel/irq.c:247
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
 __intel_idle_hlt drivers/idle/intel_idle.c:205 [inline]
 intel_idle_hlt+0x15/0x20 drivers/idle/intel_idle.c:224
 cpuidle_enter_state+0xc6/0x260 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x40/0x60 drivers/cpuidle/cpuidle.c:388
 call_cpuidle kernel/sched/idle.c:134 [inline]
 cpuidle_idle_call kernel/sched/idle.c:215 [inline]
 do_idle+0x194/0x230 kernel/sched/idle.c:282
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:379
 rest_init+0xf3/0x100 init/main.c:726
 arch_call_rest_init+0x9/0x10 init/main.c:823
 start_kernel+0x57d/0x5d0 init/main.c:1068
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:556
 x86_64_start_kernel+0x94/0xa0 arch/x86/kernel/head64.c:537
 secondary_startup_64_no_verify+0x168/0x16b

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-rc1-syzkaller-00033-geb26cbb1a754 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/13 09:15 upstream eb26cbb1a754 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in enqueue_timer / timer_clear_idle
* Struck through repros no longer work on HEAD.