syzbot


KCSAN: data-race in bcm_connect / bcm_sendmsg (7)

Status: auto-obsoleted due to no activity on 2024/05/19 00:35
Subsystems: can
[Documentation on labels]
First crash: 289d, last: 289d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg (3) can 1 1510d 1510d 0/28 auto-closed as invalid on 2021/01/13 02:26
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg (6) can 1 525d 525d 0/28 auto-obsoleted due to no activity on 2023/09/26 01:45
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg can 1 1907d 1907d 0/28 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg (4) can 1 1080d 1078d 0/28 auto-closed as invalid on 2022/03/19 14:46
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg (5) can 47 583d 1023d 0/28 auto-obsoleted due to no activity on 2023/07/29 11:47
upstream KCSAN: data-race in bcm_connect / bcm_sendmsg (2) can 1 1715d 1715d 0/28 closed as invalid on 2020/06/18 14:13

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

write to 0xffff888110de0300 of 4 bytes by task 28245 on cpu 0:
 bcm_connect+0x205/0x2b0 net/can/bcm.c:1683
 __sys_connect_file net/socket.c:2048 [inline]
 __sys_connect+0x1a9/0x1c0 net/socket.c:2065
 __do_sys_connect net/socket.c:2075 [inline]
 __se_sys_connect net/socket.c:2072 [inline]
 __x64_sys_connect+0x41/0x50 net/socket.c:2072
 x64_sys_call+0x2929/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:43
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888110de0300 of 4 bytes by task 28246 on cpu 1:
 bcm_sendmsg+0x6b/0x470 net/can/bcm.c:1345
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 ____sys_sendmsg+0x312/0x410 net/socket.c:2584
 ___sys_sendmsg net/socket.c:2638 [inline]
 __sys_sendmsg+0x1e9/0x280 net/socket.c:2667
 __do_sys_sendmsg net/socket.c:2676 [inline]
 __se_sys_sendmsg net/socket.c:2674 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2674
 x64_sys_call+0xae9/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28246 Comm: syz-executor.2 Tainted: G        W          6.9.0-rc3-syzkaller-00355-g7efd0a74039f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 00:26 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_connect / bcm_sendmsg
2024/04/13 03:39 upstream 5939d45155bb c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in bcm_connect / bcm_sendmsg
* Struck through repros no longer work on HEAD.