================================================================== BUG: KCSAN: data-race in fsnotify / fsnotify_put_mark write to 0xffff8881026cc60c of 4 bytes by task 1807 on cpu 1: fsnotify_detach_connector_from_object fs/notify/mark.c:215 [inline] fsnotify_put_mark+0x2b9/0x6d0 fs/notify/mark.c:274 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:807 [inline] __se_sys_inotify_rm_watch+0xff/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+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881026cc60c of 4 bytes by task 1834 on cpu 0: fsnotify+0x2b9/0x1680 fs/notify/fsnotify.c:526 __fsnotify_parent+0x30b/0x470 fs/notify/fsnotify.c:230 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:99 [inline] fsnotify_perm+0x32d/0x370 include/linux/fsnotify.h:124 security_file_open+0x85/0x90 security/security.c:1655 do_dentry_open+0x232/0x830 fs/open.c:811 vfs_open+0x43/0x50 fs/open.c:958 do_open fs/namei.c:3476 [inline] path_openat+0x16cf/0x1b30 fs/namei.c:3609 do_filp_open+0x105/0x220 fs/namei.c:3636 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213 do_sys_open fs/open.c:1229 [inline] __do_sys_openat fs/open.c:1245 [inline] __se_sys_openat fs/open.c:1240 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1240 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+0x44/0xae value changed: 0x00002008 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1834 Comm: syz-executor.2 Tainted: G W 5.18.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================