================================================================== BUG: KCSAN: data-race in __fsnotify_parent / fsnotify_recalc_mask write to 0xffff88810192228c of 4 bytes by task 21199 on cpu 0: __fsnotify_recalc_mask fs/notify/mark.c:132 [inline] fsnotify_recalc_mask+0x17d/0x200 fs/notify/mark.c:147 fsnotify_add_mark_locked+0x80b/0xa10 fs/notify/mark.c:665 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:548 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:596 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:623 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:761 [inline] __se_sys_inotify_add_watch+0x537/0x670 fs/notify/inotify/inotify_user.c:704 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:704 do_syscall_64+0x44/0x80 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88810192228c of 4 bytes by task 1770 on cpu 1: fsnotify_event_needs_parent fs/notify/fsnotify.c:163 [inline] __fsnotify_parent+0x11d/0x430 fs/notify/fsnotify.c:204 fsnotify_parent include/linux/fsnotify.h:68 [inline] fsnotify_file include/linux/fsnotify.h:90 [inline] fsnotify_close include/linux/fsnotify.h:279 [inline] __fput+0x1a9/0x4e0 fs/file_table.c:266 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302 do_syscall_64+0x50/0x80 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000 -> 0x0000a008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1770 Comm: syz-executor.3 Not tainted 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================