syzbot


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

Status: auto-obsoleted due to no activity on 2022/12/14 13:23
Subsystems: can
[Documentation on labels]
First crash: 847d, last: 766d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bcm_can_tx / bcm_tx_setup (4) can 1 194d 194d 0/28 auto-obsoleted due to no activity on 2024/07/08 15:23
upstream KCSAN: data-race in bcm_can_tx / bcm_tx_setup (3) can 10 531d 599d 0/28 auto-obsoleted due to no activity on 2023/08/06 10:49
upstream KCSAN: data-race in bcm_can_tx / bcm_tx_setup can 4 888d 917d 0/28 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 0xffff88813ad9cb10 of 4 bytes by task 546 on cpu 0:
 bcm_tx_setup+0x745/0xdf0 net/can/bcm.c:997
 bcm_sendmsg+0x17f/0x400 net/can/bcm.c:1351
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2482
 ___sys_sendmsg net/socket.c:2536 [inline]
 __sys_sendmsg+0x19a/0x230 net/socket.c:2565
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2572
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813ad9cb10 of 4 bytes by interrupt on cpu 1:
 bcm_can_tx+0x32c/0x3f0 net/can/bcm.c:306
 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+0xf2/0x2c7 kernel/softirq.c:571
 __irq_exit_rcu kernel/softirq.c:650 [inline]
 irq_exit_rcu+0x41/0x70 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1107
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649

value changed: 0x0000008d -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1434 Comm: udevd Not tainted 6.1.0-rc4-syzkaller-00015-gf141df371335-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/09 13:13 upstream f141df371335 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/10/24 21:10 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/10/23 22:42 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/10/10 08:40 upstream 4899a36f91a9 aea5da89 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/10/02 04:29 upstream ffb4d94b4314 feb56351 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/09/16 14:42 upstream 3245cb65fd91 dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/08/22 05:51 upstream e3f259d33c0e 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
2022/08/20 13:48 upstream 50cd95ac4654 26a13b38 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bcm_can_tx / bcm_tx_setup
* Struck through repros no longer work on HEAD.