================================================================== BUG: KCSAN: data-race in __fsnotify_parent / fsnotify_recalc_mask write to 0xffff888101bda58c of 4 bytes by task 12048 on cpu 1: __fsnotify_recalc_mask fs/notify/mark.c:132 [inline] fsnotify_recalc_mask+0x17d/0x200 fs/notify/mark.c:147 fsnotify_add_mark_locked+0xa57/0xc70 fs/notify/mark.c:694 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:548 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:601 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:628 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:766 [inline] __se_sys_inotify_add_watch+0x548/0x680 fs/notify/inotify/inotify_user.c:709 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:709 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888101bda58c of 4 bytes by task 517 on cpu 0: fsnotify_event_needs_parent fs/notify/fsnotify.c:163 [inline] __fsnotify_parent+0x12e/0x440 fs/notify/fsnotify.c:204 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:99 [inline] fsnotify_perm+0x330/0x370 include/linux/fsnotify.h:124 security_file_open+0x85/0x90 security/security.c:1638 do_dentry_open+0x232/0x860 fs/open.c:809 vfs_open+0x43/0x50 fs/open.c:945 do_open fs/namei.c:3428 [inline] path_openat+0x17c3/0x1ec0 fs/namei.c:3561 do_filp_open+0x105/0x220 fs/namei.c:3588 do_sys_openat2+0xb5/0x2b0 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000000 -> 0x0000a008 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 517 Comm: syz-executor.1 Not tainted 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================