syzbot


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

Status: auto-closed as invalid on 2022/08/01 07:44
Subsystems: can
[Documentation on labels]
First crash: 1029d, last: 945d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in can_send / can_stat_update (6) can 1 305d 305d 0/28 auto-obsoleted due to no activity on 2024/05/02 11:39
upstream KCSAN: data-race in can_send / can_stat_update (3) can 5 855d 896d 0/28 auto-obsoleted due to no activity on 2022/10/31 01:22
upstream KCSAN: data-race in can_send / can_stat_update (4) can 1 815d 815d 0/28 auto-obsoleted due to no activity on 2022/12/10 01:25
upstream KCSAN: data-race in can_send / can_stat_update can 5 1797d 1859d 0/28 auto-closed as invalid on 2020/05/06 02:35
upstream KCSAN: data-race in can_send / can_stat_update (5) can 2 606d 611d 0/28 auto-obsoleted due to no activity on 2023/07/06 21:19
upstream KCSAN: data-race in can_send / can_stat_update (7) can 3 182d 215d 0/28 auto-obsoleted due to no activity on 2024/09/02 17:29

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