================================================================== BUG: KCSAN: data-race in fsnotify / fsnotify_recalc_mask write to 0xffff88810279c35c of 4 bytes by task 5479 on cpu 0: __fsnotify_recalc_mask fs/notify/mark.c:132 [inline] fsnotify_recalc_mask+0x1a5/0x210 fs/notify/mark.c:147 fsnotify_add_mark_locked+0xb12/0xc30 fs/notify/mark.c:696 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:656 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:609 [inline] inotify_update_watch fs/notify/inotify/inotify_user.c:636 [inline] __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:774 [inline] __se_sys_inotify_add_watch+0x538/0x680 fs/notify/inotify/inotify_user.c:717 __x64_sys_inotify_add_watch+0x3f/0x50 fs/notify/inotify/inotify_user.c:717 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 0xffff88810279c35c of 4 bytes by task 6116 on cpu 1: 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_open include/linux/fsnotify.h:330 [inline] do_sys_openat2+0x23a/0x2a0 fs/open.c:1218 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: 0x00000000 -> 0x00002008 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 6116 Comm: syz-executor.5 Not tainted 5.18.0-rc5-syzkaller-00178-g30c8e80f7932-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================