syzbot


KCSAN: data-race in bcm_can_tx / bcm_tx_setup (3)

Status: auto-obsoleted due to no activity on 2023/08/06 10:49
Subsystems: can
[Documentation on labels]
Reported-by: syzbot+e1786f049e71693263bf@syzkaller.appspotmail.com
First crash: 418d, last: 292d
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly can report (Jul 2023) 0 (1) 2023/07/10 09:35
[syzbot] [can?] KCSAN: data-race in bcm_can_tx / bcm_tx_setup (3) 4 (5) 2023/05/11 17:56
[syzbot] Monthly can report (May 2023) 0 (1) 2023/05/10 13:56
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bcm_can_tx / bcm_tx_setup (2) can 8 527d 608d 0/26 auto-obsoleted due to no activity on 2022/12/14 13:23
upstream KCSAN: data-race in bcm_can_tx / bcm_tx_setup can 4 649d 678d 0/26 auto-closed as invalid on 2022/08/14 14:16

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

write to 0xffff888171079910 of 4 bytes by task 6174 on cpu 1:
 bcm_tx_setup+0x698/0xd30 net/can/bcm.c:995
 bcm_sendmsg+0x38b/0x470 net/can/bcm.c:1355
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494
 ___sys_sendmsg net/socket.c:2548 [inline]
 __sys_sendmsg+0x1e9/0x270 net/socket.c:2577
 __do_sys_sendmsg net/socket.c:2586 [inline]
 __se_sys_sendmsg net/socket.c:2584 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888171079910 of 4 bytes by interrupt on cpu 0:
 bcm_can_tx+0x38a/0x410
 bcm_tx_timeout_handler+0xdb/0x260
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752
 hrtimer_run_softirq+0xd6/0x120 kernel/time/hrtimer.c:1769
 __do_softirq+0xc1/0x265 kernel/softirq.c:553
 run_ksoftirqd+0x17/0x20 kernel/softirq.c:921
 smpboot_thread_fn+0x30a/0x4a0 kernel/smpboot.c:164
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000009 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14 Comm: ksoftirqd/0 Tainted: G        W          6.4.0-syzkaller-10096-gdfab92f27c60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/02 10:49 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/06/18 07:56 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/05/16 11:45 upstream f1fcbaa18b28 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/05/02 20:20 upstream 865fdb08197e 52d40fd2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/05/01 14:33 upstream 58390c8ce1bd 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/04/25 04:36 upstream 1a0beef98b58 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/04/15 12:49 upstream 7a934f4bd7d6 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/04/12 10:14 upstream e62252bc55b6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/04/05 04:46 upstream 76f598ba7d8e 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2023/02/26 21:25 upstream 2fcd07b7ccd5 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
* Struck through repros no longer work on HEAD.