==================================================================
BUG: KCSAN: data-race in fsnotify_detach_mark / inotify_handle_inode_event

write to 0xffff8881525c7ef4 of 4 bytes by task 28565 on cpu 0:
 fsnotify_detach_mark+0xba/0x160 fs/notify/mark.c:547
 fsnotify_clear_marks_by_group+0x30c/0x4d0 fs/notify/mark.c:913
 fsnotify_destroy_group+0x55/0x190 fs/notify/group.c:61
 inotify_release+0x1f/0x30 fs/notify/inotify/inotify_user.c:308
 __fput+0x2ac/0x640 fs/file_table.c:464
 ____fput+0x1c/0x30 fs/file_table.c:492
 task_work_run+0x13a/0x1a0 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218
 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881525c7ef4 of 4 bytes by task 28570 on cpu 1:
 inotify_handle_inode_event+0x313/0x3c0 fs/notify/inotify/inotify_fsnotify.c:132
 fsnotify_handle_inode_event+0x1bd/0x220 fs/notify/fsnotify.c:316
 fsnotify_handle_event fs/notify/fsnotify.c:345 [inline]
 send_to_group fs/notify/fsnotify.c:419 [inline]
 fsnotify+0x105a/0x1260 fs/notify/fsnotify.c:628
 __fsnotify_parent+0x2aa/0x340 fs/notify/fsnotify.c:282
 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_open include/linux/fsnotify.h:466 [inline]
 vfs_open+0x1a0/0x1e0 fs/open.c:1093
 do_open fs/namei.c:3830 [inline]
 path_openat+0x1ae0/0x1fc0 fs/namei.c:3989
 do_filp_open+0x107/0x230 fs/namei.c:4016
 do_sys_openat2+0xab/0x120 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_openat fs/open.c:1459 [inline]
 __se_sys_openat fs/open.c:1454 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1454
 x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000033 -> 0x00000030

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 28570 Comm: syz.7.20578 Tainted: G        W          6.14.0-rc7-syzkaller-00069-g81e4f8d68c66 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
==================================================================