syzbot


KCSAN: data-race in do_fcntl / vfs_write

Status: auto-closed as invalid on 2021/05/29 09:52
Subsystems: fs
[Documentation on labels]
First crash: 1126d, last: 1090d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_fcntl / vfs_write (2) fs 1 652d 652d 0/26 auto-closed as invalid on 2022/08/10 02:31

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_fcntl / vfs_write

write to 0xffff88812c9e5d40 of 4 bytes by task 12540 on cpu 1:
 setfl fs/fcntl.c:81 [inline]
 do_fcntl+0xbce/0xc30 fs/fcntl.c:355
 __do_sys_fcntl fs/fcntl.c:471 [inline]
 __se_sys_fcntl+0xc6/0x180 fs/fcntl.c:456
 __x64_sys_fcntl+0x3f/0x50 fs/fcntl.c:456
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812c9e5d40 of 4 bytes by task 12541 on cpu 0:
 iocb_flags include/linux/fs.h:3359 [inline]
 init_sync_kiocb include/linux/fs.h:2144 [inline]
 new_sync_write fs/read_write.c:514 [inline]
 vfs_write+0x2e8/0x770 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 12541 Comm: syz-executor.1 Not tainted 5.12.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/24 09:45 upstream 8db5efb83fa9 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_fcntl / vfs_write
2021/03/27 03:53 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_fcntl / vfs_write
2021/03/19 11:08 upstream 8b12a62a4e3e 2af9d324 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_fcntl / vfs_write
* Struck through repros no longer work on HEAD.