================================================================== BUG: KCSAN: data-race in __fsnotify_parent / fsnotify_recalc_mask write to 0xffff88810d3e7f2c of 4 bytes by task 10763 on cpu 1: __fsnotify_recalc_mask fs/notify/mark.c:132 [inline] fsnotify_recalc_mask+0x17d/0x1e0 fs/notify/mark.c:147 fsnotify_add_mark_locked+0x77a/0x950 fs/notify/mark.c:668 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:541 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:592 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:619 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:757 [inline] __se_sys_inotify_add_watch+0x527/0x660 fs/notify/inotify/inotify_user.c:700 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:700 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88810d3e7f2c of 4 bytes by task 8461 on cpu 0: fsnotify_event_needs_parent fs/notify/fsnotify.c:156 [inline] __fsnotify_parent+0x132/0x460 fs/notify/fsnotify.c:196 fsnotify_parent include/linux/fsnotify.h:68 [inline] fsnotify_file include/linux/fsnotify.h:90 [inline] fsnotify_perm+0x296/0x2d0 include/linux/fsnotify.h:115 security_file_open+0x85/0x90 security/security.c:1579 do_dentry_open+0x22d/0x870 fs/open.c:804 vfs_open+0x43/0x50 fs/open.c:931 do_open fs/namei.c:3252 [inline] path_openat+0x1844/0x20a0 fs/namei.c:3369 do_filp_open+0xbd/0x1d0 fs/namei.c:3396 do_sys_openat2+0xa3/0x240 fs/open.c:1168 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0xe2/0x110 fs/open.c:1188 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8461 Comm: syz-executor.4 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================