================================================================== BUG: KCSAN: data-race in fsnotify / fsnotify_detach_mark write to 0xffff888103a35a44 of 4 bytes by task 16709 on cpu 0: fsnotify_detach_mark+0xdd/0x180 fs/notify/mark.c:455 fsnotify_clear_marks_by_group+0x3f8/0x5d0 fs/notify/mark.c:823 fsnotify_destroy_group+0x51/0x180 fs/notify/group.c:61 inotify_release+0x21/0x30 fs/notify/inotify/inotify_user.c:309 __fput+0x245/0x570 fs/file_table.c:320 ____fput+0x11/0x20 fs/file_table.c:348 task_work_run+0xde/0x110 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888103a35a44 of 4 bytes by task 16736 on cpu 1: send_to_group fs/notify/fsnotify.c:338 [inline] fsnotify+0xa4e/0x1550 fs/notify/fsnotify.c:570 __fsnotify_parent+0x3f0/0x470 fs/notify/fsnotify.c:230 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:99 [inline] fsnotify_modify include/linux/fsnotify.h:317 [inline] do_iter_write+0x622/0x750 fs/read_write.c:865 vfs_iter_write+0x4c/0x70 fs/read_write.c:902 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686 do_splice_from fs/splice.c:764 [inline] direct_splice_actor+0x80/0xa0 fs/splice.c:931 splice_direct_to_actor+0x305/0x620 fs/splice.c:886 do_splice_direct+0xfb/0x180 fs/splice.c:974 do_sendfile+0x3bf/0x910 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1309 [inline] __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000013 -> 0x00000010 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 16736 Comm: syz-executor.0 Not tainted 6.1.0-rc8-syzkaller-00152-g3ecc37918c80-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ==================================================================