================================================================== BUG: KCSAN: data-race in __fsnotify_recalc_mask / fsnotify read to 0xffff88812ad3f61c of 4 bytes by task 17979 on cpu 0: fsnotify+0x17f/0x7d0 fs/notify/fsnotify.c:348 fsnotify_path include/linux/fsnotify.h:54 [inline] fsnotify_close include/linux/fsnotify.h:290 [inline] __fput+0x3aa/0x520 fs/file_table.c:266 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812ad3f61c of 4 bytes by task 19689 on cpu 1: __fsnotify_recalc_mask+0x152/0x1b0 fs/notify/mark.c:132 fsnotify_recalc_mask.part.0+0x28/0x90 fs/notify/mark.c:147 fsnotify_recalc_mask fs/notify/mark.c:143 [inline] fsnotify_add_mark_locked+0x77d/0x9b0 fs/notify/mark.c:664 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:466 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:590 [inline] inotify_update_watch+0x343/0x3c0 fs/notify/inotify/inotify_user.c:617 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:755 [inline] __se_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:698 [inline] __x64_sys_inotify_add_watch+0x1f8/0x250 fs/notify/inotify/inotify_user.c:698 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 19689 Comm: udevd Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================