================================================================== BUG: KCSAN: data-race in inotify_handle_inode_event / inotify_remove_from_idr write to 0xffff888101794278 of 4 bytes by task 10964 on cpu 0: inotify_remove_from_idr+0x15b/0x310 fs/notify/inotify/inotify_user.c:484 inotify_ignored_and_remove_idr+0x30/0x60 fs/notify/inotify/inotify_user.c:505 inotify_freeing_mark+0x19/0x20 fs/notify/inotify/inotify_fsnotify.c:132 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:792 [inline] __se_sys_inotify_rm_watch+0xf7/0x170 fs/notify/inotify/inotify_user.c:769 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:769 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888101794278 of 4 bytes by task 8453 on cpu 1: inotify_handle_inode_event+0x1a0/0x2e0 fs/notify/inotify/inotify_fsnotify.c:112 fsnotify_handle_inode_event fs/notify/fsnotify.c:263 [inline] fsnotify_handle_event fs/notify/fsnotify.c:310 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1040/0x1190 fs/notify/fsnotify.c:541 __fsnotify_parent+0x2f3/0x430 fs/notify/fsnotify.c:232 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+0x191/0x4e0 fs/file_table.c:266 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0x8e/0x110 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x16b/0x1a0 kernel/entry/common.c:201 __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+0x45/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8453 Comm: syz-executor.0 Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================