================================================================== BUG: KCSAN: data-race in inotify_handle_inode_event / inotify_remove_from_idr write to 0xffff888104a2eb88 of 4 bytes by task 6486 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+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888104a2eb88 of 4 bytes by task 1826 on cpu 1: inotify_handle_inode_event+0x199/0x2e0 fs/notify/inotify/inotify_fsnotify.c:113 fsnotify_handle_inode_event fs/notify/fsnotify.c:266 [inline] fsnotify_handle_event fs/notify/fsnotify.c:325 [inline] send_to_group fs/notify/fsnotify.c:379 [inline] fsnotify+0x14f6/0x1650 fs/notify/fsnotify.c:564 __fsnotify_parent+0x33a/0x490 fs/notify/fsnotify.c:232 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 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000132cf -> 0xffffffff Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1826 Comm: syz-executor.2 Not tainted 5.17.0-rc7-syzkaller-00205-g79b00034e9dc-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================