================================================================== BUG: KCSAN: data-race in inotify_handle_inode_event / inotify_remove_from_idr write to 0xffff88814006a7c8 of 4 bytes by task 4504 on cpu 0: inotify_remove_from_idr+0x15c/0x320 fs/notify/inotify/inotify_user.c:496 inotify_ignored_and_remove_idr+0x30/0x60 fs/notify/inotify/inotify_user.c:517 inotify_freeing_mark+0x19/0x20 fs/notify/inotify/inotify_fsnotify.c:133 fsnotify_free_mark fs/notify/mark.c:449 [inline] fsnotify_destroy_mark+0xbc/0xd0 fs/notify/mark.c:458 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:804 [inline] __se_sys_inotify_rm_watch+0xf7/0x170 fs/notify/inotify/inotify_user.c:781 __x64_sys_inotify_rm_watch+0x2d/0x40 fs/notify/inotify/inotify_user.c:781 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88814006a7c8 of 4 bytes by task 23763 on cpu 1: inotify_handle_inode_event+0x199/0x2e0 fs/notify/inotify/inotify_fsnotify.c:113 fsnotify_handle_inode_event fs/notify/fsnotify.c:264 [inline] fsnotify_handle_event fs/notify/fsnotify.c:323 [inline] send_to_group fs/notify/fsnotify.c:377 [inline] fsnotify+0x136d/0x15f0 fs/notify/fsnotify.c:564 __fsnotify_parent+0x33a/0x490 fs/notify/fsnotify.c:230 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:99 [inline] fsnotify_close include/linux/fsnotify.h:341 [inline] __fput+0x1d7/0x520 fs/file_table.c:303 ____fput+0x11/0x20 fs/file_table.c:350 task_work_run+0x8e/0x110 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:183 [inline] exit_to_user_mode_prepare+0x122/0x140 kernel/entry/common.c:215 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:308 do_syscall_64+0x37/0x50 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00005c50 -> 0xffffffff Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 23763 Comm: syz-executor.5 Not tainted 5.17.0-syzkaller-13410-g74164d284b29-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================