syzbot


KCSAN: data-race in can_send / can_stat_update (2)

Status: auto-closed as invalid on 2022/08/01 07:44
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 242d, last: 158d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in can_send / can_stat_update (3) 5 68d 109d 0/24 auto-obsoleted due to no activity on 2022/10/31 01:22
upstream KCSAN: data-race in can_send / can_stat_update 5 1011d 1072d 0/24 auto-closed as invalid on 2020/05/06 02:35

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

read to 0xffff8881229d1e70 of 8 bytes by interrupt on cpu 1:
 can_stat_update+0x4cc/0x6f0 net/can/proc.c:157
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1474
 expire_timers+0x116/0x240 kernel/time/timer.c:1519
 __run_timers+0x350/0x400 kernel/time/timer.c:1790
 run_timer_softirq+0x2e/0x60 kernel/time/timer.c:1803
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read-write to 0xffff8881229d1e70 of 8 bytes by interrupt on cpu 0:
 can_send+0x484/0x500 net/can/af_can.c:291
 bcm_can_tx+0x2f0/0x3e0 net/can/bcm.c:300
 bcm_tx_timeout_handler+0xce/0x250
 __run_hrtimer+0x132/0x420 kernel/time/hrtimer.c:1685
 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline]
 hrtimer_run_softirq+0x1e9/0x480 kernel/time/hrtimer.c:1766
 __do_softirq+0x158/0x2e3 kernel/softirq.c:571
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:934
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000002355 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13 Comm: ksoftirqd/0 Tainted: G        W         5.19.0-rc4-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/27 07:42 upstream 03c765b0e3b4 a371c43c .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/06/21 19:45 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/06/16 21:13 upstream 48a23ec6ff2b 1719ee24 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/06/15 11:24 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/05/26 21:20 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/05/12 13:40 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/05/08 14:34 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/05/07 04:38 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/05/06 04:47 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in can_send / can_stat_update
ci2-upstream-kcsan-gce 2022/04/04 13:23 upstream 09bb8856d4a7 79a2a8fc .config log report info KCSAN: data-race in can_send / can_stat_update
* Struck through repros no longer work on HEAD.