================================================================== BUG: KCSAN: data-race in inotify_handle_event / inotify_remove_from_idr write to 0xffff88812b7e7728 of 4 bytes by task 7748 on cpu 1: inotify_remove_from_idr+0xf8/0x310 fs/notify/inotify/inotify_user.c:473 inotify_ignored_and_remove_idr+0x98/0xe0 fs/notify/inotify/inotify_user.c:498 inotify_freeing_mark+0x23/0x30 fs/notify/inotify/inotify_fsnotify.c:143 fsnotify_free_mark+0x9f/0xe0 fs/notify/mark.c:423 fsnotify_destroy_mark+0x3c/0x50 fs/notify/mark.c:432 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:787 [inline] __se_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:762 [inline] __x64_sys_inotify_rm_watch+0xc4/0x120 fs/notify/inotify/inotify_user.c:762 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812b7e7728 of 4 bytes by task 18466 on cpu 0: inotify_handle_event+0x21f/0x3f1 fs/notify/inotify/inotify_fsnotify.c:123 send_to_group fs/notify/fsnotify.c:234 [inline] fsnotify+0x55d/0x7d0 fs/notify/fsnotify.c:372 fsnotify_path include/linux/fsnotify.h:54 [inline] fsnotify_close include/linux/fsnotify.h:290 [inline] __fput+0x38a/0x4f0 fs/file_table.c:266 ____fput+0x1b/0x30 fs/file_table.c:313 task_work_run+0xf5/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2ae/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+0x36e/0x390 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 18466 Comm: syz-executor.5 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================