syzbot


KCSAN: data-race in bcm_connect / bcm_sendmsg

Status: closed as invalid on 2019/11/19 14:44
Subsystems: can
[Documentation on labels]
First crash: 1907d, last: 1907d
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 1511d 1511d 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 (7) can 2 289d 289d 0/28 auto-obsoleted due to no activity on 2024/05/19 00:35
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

read to 0xffff88811cc4fafc of 4 bytes by task 17201 on cpu 0:
 bcm_sendmsg+0x5e/0x272e net/can/bcm.c:1270
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x59d/0x5d0 net/socket.c:2311
 __sys_sendmsg+0xa0/0x160 net/socket.c:2356
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg net/socket.c:2363 [inline]
 __x64_sys_sendmsg+0x51/0x70 net/socket.c:2363
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88811cc4fafc of 4 bytes by task 17127 on cpu 1:
 bcm_connect+0x252/0x2a0 net/can/bcm.c:1564
 __sys_connect+0x1e9/0x250 net/socket.c:1828
 __do_sys_connect net/socket.c:1839 [inline]
 __se_sys_connect net/socket.c:1836 [inline]
 __x64_sys_connect+0x4c/0x60 net/socket.c:1836
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17127 Comm: syz-executor.0 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/09 00:08 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.