syzbot


KCSAN: data-race in setattr_copy / vfs_write (2)

Status: auto-closed as invalid on 2021/07/27 10:55
Subsystems: ext4
[Documentation on labels]
First crash: 1010d, last: 1010d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in setattr_copy / vfs_write ext4 1 1076d 1076d 0/26 auto-closed as invalid on 2021/05/23 06:39
upstream KCSAN: data-race in setattr_copy / vfs_write (3) ext4 1 780d 780d 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 0xffff8881067fd5f0 of 2 bytes by task 13908 on cpu 0:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 ext4_setattr+0x5ea/0xec0 fs/ext4/inode.c:5513
 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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881067fd5f0 of 2 bytes by task 13893 on cpu 1:
 file_end_write include/linux/fs.h:3047 [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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x8000 -> 0x8088

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13893 Comm: syz-executor.3 Not tainted 5.13.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/06/22 10:52 upstream a96bfed64c89 aba2b2fb .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.