================================================================== BUG: KCSAN: data-race in __fsnotify_update_child_dentry_flags / setattr_copy write to 0xffff888107caec48 of 2 bytes by task 21 on cpu 1: setattr_copy+0x355/0x370 fs/attr.c:320 shmem_setattr+0xc1/0x490 mm/shmem.c:1130 notify_change+0xa5c/0xad0 fs/attr.c:482 handle_remove drivers/base/devtmpfs.c:344 [inline] handle drivers/base/devtmpfs.c:393 [inline] devtmpfs_work_loop+0x849/0x930 drivers/base/devtmpfs.c:406 devtmpfsd+0x3f/0x40 drivers/base/devtmpfs.c:448 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff888107caec48 of 2 bytes by task 16247 on cpu 0: __fsnotify_update_child_dentry_flags+0x1e/0x200 fs/notify/fsnotify.c:111 fsnotify_recalc_mask fs/notify/mark.c:194 [inline] fsnotify_add_mark_locked+0xb45/0xc60 fs/notify/mark.c:730 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:787 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:621 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:648 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:787 [inline] __se_sys_inotify_add_watch+0x65c/0x810 fs/notify/inotify/inotify_user.c:730 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:730 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x61b0 -> 0x6000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16247 Comm: udevd Not tainted 6.2.0-rc4-syzkaller-00350-gedc00350d205-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 ==================================================================