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

Status: auto-closed as invalid on 2022/02/12 13:06
First crash: 328d, last: 328d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in may_open / setattr_copy 1 431d 431d 0/24 auto-closed as invalid on 2021/11/01 17:23

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

write to 0xffff88813927b178 of 2 bytes by task 21 on cpu 1:
 setattr_copy+0x1af/0x1c0 fs/attr.c:247
 shmem_setattr+0xb0/0x450 mm/shmem.c:1124
 notify_change+0x8a3/0xac0 fs/attr.c:410
 handle_remove drivers/base/devtmpfs.c:333 [inline]
 handle drivers/base/devtmpfs.c:382 [inline]
 devtmpfs_work_loop+0x845/0x930 drivers/base/devtmpfs.c:395
 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:437
 kthread+0x2c7/0x2e0 kernel/kthread.c:327

read to 0xffff88813927b178 of 2 bytes by task 6319 on cpu 0:
 may_open+0x42/0x2f0 fs/namei.c:3025
 do_open fs/namei.c:3424 [inline]
 path_openat+0x1728/0x1eb0 fs/namei.c:3559
 do_filp_open+0x105/0x220 fs/namei.c:3586
 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212
 do_sys_open fs/open.c:1228 [inline]
 __do_sys_openat fs/open.c:1244 [inline]
 __se_sys_openat fs/open.c:1239 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1239
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80

value changed: 0x6180 -> 0x6000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6319 Comm: udevd Not tainted 5.16.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
udevd[6319]: inotify_add_watch(7, /dev/loop0, 10) failed: No such file or directory

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/08 12:59 upstream d1587f7bfe9a 2ca0d385 .config log report info KCSAN: data-race in may_open / setattr_copy
* Struck through repros no longer work on HEAD.