================================================================== 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 ret_from_fork+0x1f/0x30 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 entry_SYSCALL_64_after_hwframe+0x44/0xae 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