syzbot


KCSAN: data-race in ____sys_sendmsg / fasync_insert_entry

Status: closed as invalid on 2020/06/18 14:13
Subsystems: fs
[Documentation on labels]
First crash: 1411d, last: 1411d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ____sys_sendmsg / fasync_insert_entry (2) fs 1 1359d 1359d 0/26 auto-closed as invalid on 2020/09/03 03:37
upstream KCSAN: data-race in ____sys_sendmsg / fasync_insert_entry (3) fs 1 1071d 1071d 0/26 auto-closed as invalid on 2021/06/18 13:34
upstream KCSAN: data-race in ____sys_sendmsg / fasync_insert_entry (4) fs 1 367d 367d 0/26 auto-obsoleted due to no activity on 2023/05/23 09:14

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ____sys_sendmsg / fasync_insert_entry

write to 0xffff88811f978240 of 4 bytes by task 16438 on cpu 1:
 fasync_insert_entry+0x12d/0x1b0 fs/fcntl.c:939
 fasync_add_entry fs/fcntl.c:966 [inline]
 fasync_helper+0x79/0xd6 fs/fcntl.c:984
 sock_fasync+0x74/0x100 net/socket.c:1308
 ioctl_fioasync fs/ioctl.c:593 [inline]
 do_vfs_ioctl+0x392/0xd00 fs/ioctl.c:696
 ksys_ioctl+0xb2/0x150 fs/ioctl.c:761
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x47/0x60 fs/ioctl.c:770
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811f978240 of 4 bytes by task 16434 on cpu 0:
 ____sys_sendmsg+0x16d/0x4c0 net/socket.c:2347
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416
 __sys_sendmmsg+0x10e/0x310 net/socket.c:2506
 __do_sys_sendmmsg net/socket.c:2535 [inline]
 __se_sys_sendmmsg net/socket.c:2532 [inline]
 __x64_sys_sendmmsg+0x60/0x80 net/socket.c:2532
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16434 Comm: syz-executor.2 Not tainted 5.7.0-rc1-syzkaller #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
2020/06/07 23:17 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 7751efd0 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.