syzbot


KCSAN: data-race in setattr_copy / vfs_write

Status: auto-closed as invalid on 2021/05/23 06:39
Subsystems: ext4
[Documentation on labels]
First crash: 1104d, last: 1104d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in setattr_copy / vfs_write (2) ext4 1 1038d 1038d 0/26 auto-closed as invalid on 2021/07/27 10:55
upstream KCSAN: data-race in setattr_copy / vfs_write (3) ext4 1 808d 808d 0/26 auto-closed as invalid on 2022/03/14 15:19

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

write to 0xffff888105f115f8 of 2 bytes by task 28083 on cpu 1:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 ext4_setattr+0x5ea/0xec0 fs/ext4/inode.c:5515
 notify_change+0x8a3/0xa80 fs/attr.c:398
 chmod_common+0x11c/0x250 fs/open.c:585
 vfs_fchmod fs/open.c:601 [inline]
 __do_sys_fchmod fs/open.c:610 [inline]
 __se_sys_fchmod fs/open.c:604 [inline]
 __x64_sys_fchmod+0xac/0xf0 fs/open.c:604
 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888105f115f8 of 2 bytes by task 28078 on cpu 0:
 file_end_write include/linux/fs.h:2903 [inline]
 vfs_write+0x4ae/0x770 fs/read_write.c:613
 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: 28078 Comm: syz-executor.2 Tainted: G        W         5.12.0-rc7-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
2021/04/18 06:38 upstream 194cf4825638 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in setattr_copy / vfs_write
* Struck through repros no longer work on HEAD.