================================================================== BUG: KCSAN: data-race in inotify_handle_event / inotify_remove_from_idr write to 0xffff88812ac9c7c8 of 4 bytes by task 19127 on cpu 0: inotify_remove_from_idr+0x15b/0x320 fs/notify/inotify/inotify_user.c:473 inotify_ignored_and_remove_idr+0x75/0xb0 fs/notify/inotify/inotify_user.c:498 inotify_freeing_mark+0x19/0x20 fs/notify/inotify/inotify_fsnotify.c:141 fsnotify_free_mark fs/notify/mark.c:427 [inline] fsnotify_destroy_mark+0xbc/0xd0 fs/notify/mark.c:436 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:785 [inline] __se_sys_inotify_rm_watch+0xf7/0x170 fs/notify/inotify/inotify_user.c:762 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:762 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812ac9c7c8 of 4 bytes by task 16231 on cpu 1: inotify_handle_event+0x21a/0x360 fs/notify/inotify/inotify_fsnotify.c:121 send_to_group fs/notify/fsnotify.c:227 [inline] fsnotify+0x7d1/0x9e0 fs/notify/fsnotify.c:366 fsnotify_file include/linux/fsnotify.h:78 [inline] fsnotify_close include/linux/fsnotify.h:281 [inline] __fput+0x13f/0x460 fs/file_table.c:267 ____fput+0x11/0x20 fs/file_table.c:314 task_work_run+0x8e/0x110 kernel/task_work.c:135 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:239 [inline] __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:269 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16231 Comm: syz-executor.4 Not tainted 5.8.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================