================================================================== BUG: KCSAN: data-race in __fsnotify_recalc_mask / fsnotify read to 0xffff88812a3f9bac of 4 bytes by task 7970 on cpu 1: fsnotify+0x17f/0x7d0 fs/notify/fsnotify.c:348 fsnotify_path include/linux/fsnotify.h:54 [inline] fsnotify_path include/linux/fsnotify.h:47 [inline] fsnotify_open include/linux/fsnotify.h:273 [inline] do_sys_open+0x4a2/0x4f0 fs/open.c:1102 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1110 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88812a3f9bac of 4 bytes by task 7607 on cpu 0: __fsnotify_recalc_mask+0x152/0x1b0 fs/notify/mark.c:132 fsnotify_recalc_mask.part.0+0x28/0x90 fs/notify/mark.c:147 fsnotify_recalc_mask fs/notify/mark.c:143 [inline] fsnotify_add_mark_locked+0x77d/0x9b0 fs/notify/mark.c:664 fsnotify_add_inode_mark_locked include/linux/fsnotify_backend.h:466 [inline] inotify_new_watch fs/notify/inotify/inotify_user.c:590 [inline] inotify_update_watch+0x343/0x3c0 fs/notify/inotify/inotify_user.c:617 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:755 [inline] __se_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:698 [inline] __x64_sys_inotify_add_watch+0x1f8/0x250 fs/notify/inotify/inotify_user.c:698 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7607 Comm: udevd Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================