syzbot


KCSAN: data-race in do_sys_openat2 / setattr_copy

Status: auto-closed as invalid on 2022/02/24 21:49
Subsystems: fs
[Documentation on labels]
First crash: 837d, last: 837d

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

write to 0xffff888135dae968 of 2 bytes by task 2077 on cpu 0:
 setattr_copy+0x238/0x250 fs/attr.c:247
 shmem_setattr+0xb0/0x450 mm/shmem.c:1111
 notify_change+0x924/0xbf0 fs/attr.c:410
 chmod_common+0x13c/0x270 fs/open.c:582
 do_fchmodat fs/open.c:621 [inline]
 __do_sys_chmod fs/open.c:639 [inline]
 __se_sys_chmod fs/open.c:637 [inline]
 __x64_sys_chmod+0x9b/0x120 fs/open.c:637
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888135dae968 of 2 bytes by task 1823 on cpu 1:
 fsnotify_parent include/linux/fsnotify.h:65 [inline]
 fsnotify_file include/linux/fsnotify.h:99 [inline]
 fsnotify_open include/linux/fsnotify.h:293 [inline]
 do_sys_openat2+0x190/0x2b0 fs/open.c:1219
 do_sys_open fs/open.c:1230 [inline]
 __do_sys_openat fs/open.c:1246 [inline]
 __se_sys_openat fs/open.c:1241 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1241
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x6180 -> 0x61b0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1823 Comm: syz-executor.0 Not tainted 5.16.0-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
2022/01/20 21:48 upstream fa2e1ba3e9e3 b838eb76 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_sys_openat2 / setattr_copy
* Struck through repros no longer work on HEAD.