================================================================== BUG: KCSAN: data-race in fsnotify_detach_mark / inotify_handle_inode_event write to 0xffff8881038d7d64 of 4 bytes by task 4189 on cpu 0: fsnotify_detach_mark+0xba/0x160 fs/notify/mark.c:554 fsnotify_destroy_mark+0x70/0x150 fs/notify/mark.c:596 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:805 [inline] __se_sys_inotify_rm_watch+0xe8/0x170 fs/notify/inotify/inotify_user.c:786 __x64_sys_inotify_rm_watch+0x31/0x40 fs/notify/inotify/inotify_user.c:786 x64_sys_call+0x1fe9/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:256 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881038d7d64 of 4 bytes by task 4870 on cpu 1: inotify_handle_inode_event+0x34e/0x3d0 fs/notify/inotify/inotify_fsnotify.c:132 fsnotify_handle_inode_event+0x1bd/0x220 fs/notify/fsnotify.c:321 fsnotify_handle_event fs/notify/fsnotify.c:376 [inline] send_to_group fs/notify/fsnotify.c:424 [inline] fsnotify+0x13c9/0x14b0 fs/notify/fsnotify.c:641 __fsnotify_parent+0x2ed/0x330 fs/notify/fsnotify.c:287 fsnotify_parent include/linux/fsnotify.h:96 [inline] fsnotify_path include/linux/fsnotify.h:113 [inline] fsnotify_file include/linux/fsnotify.h:127 [inline] fsnotify_close include/linux/fsnotify.h:482 [inline] __fput+0x1de/0x650 fs/file_table.c:451 ____fput+0x1c/0x30 fs/file_table.c:493 task_work_run+0x12e/0x1a0 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x47f/0x1590 kernel/exit.c:955 do_group_exit+0xff/0x140 kernel/exit.c:1104 get_signal+0xe59/0xf70 kernel/signal.c:3034 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x7a/0x100 kernel/entry/common.c:111 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x1d6/0x200 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000003 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4870 Comm: syz.3.352 Not tainted 6.15.0-syzkaller-11802-g1af80d00e1e0 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================