================================================================== BUG: KCSAN: data-race in fsnotify_detach_mark / inotify_handle_inode_event write to 0xffff8881042134a4 of 4 bytes by task 17868 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+0x17a/0x6d0 fs/file_table.c:450 ____fput+0x1c/0x30 fs/file_table.c:478 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 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 0xffff8881042134a4 of 4 bytes by task 17879 on cpu 1: inotify_handle_inode_event+0x2c2/0x310 fs/notify/inotify/inotify_fsnotify.c:132 fsnotify_handle_inode_event+0x18e/0x1f0 fs/notify/fsnotify.c:298 fsnotify_handle_event fs/notify/fsnotify.c:353 [inline] send_to_group fs/notify/fsnotify.c:401 [inline] fsnotify+0x10ae/0x1190 fs/notify/fsnotify.c:610 __fsnotify_parent+0x285/0x380 fs/notify/fsnotify.c:264 fsnotify_parent include/linux/fsnotify.h:96 [inline] fsnotify_file include/linux/fsnotify.h:131 [inline] fsnotify_close include/linux/fsnotify.h:412 [inline] __fput+0x5a5/0x6d0 fs/file_table.c:436 ____fput+0x1c/0x30 fs/file_table.c:478 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 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 value changed: 0x00000023 -> 0x00000020 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 17879 Comm: syz.1.4874 Not tainted 6.13.0-rc2-syzkaller-00036-g231825b2e1ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================