syzbot


KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out (4)

Status: auto-closed as invalid on 2022/03/17 06:42
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 337d, last: 296d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out (3) 2 598d 619d 0/24 auto-closed as invalid on 2021/05/19 06:43
upstream KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out 2 1075d 1114d 0/24 auto-closed as invalid on 2020/03/02 12:52
upstream KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out (2) 1 819d 819d 0/24 auto-closed as invalid on 2020/10/10 06:10

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

read to 0xffff88813649d5bc of 2 bytes by interrupt on cpu 0:
 hsr_register_frame_out+0x30/0xf0 net/hsr/hsr_framereg.c:458
 hsr_forward_do net/hsr/hsr_forward.c:442 [inline]
 hsr_forward_skb+0x6ab/0xec0 net/hsr/hsr_forward.c:620
 send_hsr_supervision_frame+0x38c/0x460 net/hsr/hsr_device.c:324
 hsr_announce+0x6f/0x110 net/hsr/hsr_device.c:382
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1421
 expire_timers+0x116/0x240 kernel/time/timer.c:1466
 __run_timers+0x368/0x410 kernel/time/timer.c:1734
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1747
 __do_softirq+0x158/0x2de kernel/softirq.c:558
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0x37/0x70 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1097
 asm_sysvec_apic_timer_interrupt+0x12/0x20
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:551 [inline]
 acpi_idle_enter+0x282/0x300 drivers/acpi/processor_idle.c:687
 cpuidle_enter_state+0x2b4/0x7d0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x1b2/0x250 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 rest_init+0xfa/0x100 init/main.c:725
 arch_call_rest_init+0xa/0xb init/main.c:881
 start_kernel+0x5e4/0x669 init/main.c:1138
 secondary_startup_64_no_verify+0xc4/0xcb

write to 0xffff88813649d5bc of 2 bytes by interrupt on cpu 1:
 hsr_register_frame_out+0xd2/0xf0 net/hsr/hsr_framereg.c:464
 hsr_forward_do net/hsr/hsr_forward.c:442 [inline]
 hsr_forward_skb+0x6ab/0xec0 net/hsr/hsr_forward.c:620
 hsr_dev_xmit+0xb7/0xe0 net/hsr/hsr_device.c:222
 __netdev_start_xmit include/linux/netdevice.h:4683 [inline]
 netdev_start_xmit include/linux/netdevice.h:4697 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3473
 dev_hard_start_xmit net/core/dev.c:3489 [inline]
 __dev_queue_xmit+0x86d/0xf90 net/core/dev.c:4116
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4149
 neigh_connected_output+0x264/0x2a0 net/core/neighbour.c:1557
 neigh_output include/net/neighbour.h:549 [inline]
 ip6_finish_output2+0x9ce/0xbe0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x446/0x4c0 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:451 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ndisc_send_skb+0x488/0x610 net/ipv6/ndisc.c:508
 ndisc_send_rs+0x3b0/0x3e0 net/ipv6/ndisc.c:702
 addrconf_rs_timer+0x363/0x540 net/ipv6/addrconf.c:3911
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1421
 expire_timers+0x116/0x240 kernel/time/timer.c:1466
 __run_timers+0x368/0x410 kernel/time/timer.c:1734
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1747
 __do_softirq+0x158/0x2de kernel/softirq.c:558
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0x37/0x70 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x8d/0xb0 arch/x86/kernel/apic/apic.c:1097
 asm_sysvec_apic_timer_interrupt+0x12/0x20
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:551 [inline]
 acpi_idle_enter+0x282/0x300 drivers/acpi/processor_idle.c:687
 cpuidle_enter_state+0x2b4/0x7d0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x1b2/0x250 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 secondary_startup_64_no_verify+0xc4/0xcb

value changed: 0xfc27 -> 0xfc29

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.17.0-rc3-syzkaller-00043-gf4bc5bbb5fef-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/10 06:42 upstream f4bc5bbb5fef 0b33604d .config log report info KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out
ci2-upstream-kcsan-gce 2022/01/09 01:24 upstream 21f35d2ca83e 2ca0d385 .config log report info KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out
ci2-upstream-kcsan-gce 2021/12/31 08:20 upstream 9bad743e8d22 36bd2e48 .config log report info KCSAN: data-race in hsr_register_frame_out / hsr_register_frame_out
* Struck through repros no longer work on HEAD.