================================================================== BUG: KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object write to 0xffff888100e02904 of 4 bytes by task 3167 on cpu 1: fsnotify_detach_connector_from_object+0xcc/0x280 fs/notify/mark.c:253 fsnotify_put_mark+0x192/0x3b0 fs/notify/mark.c:316 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:819 [inline] __se_sys_inotify_rm_watch+0x105/0x180 fs/notify/inotify/inotify_user.c:793 __x64_sys_inotify_rm_watch+0x31/0x40 fs/notify/inotify/inotify_user.c:793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888100e02904 of 4 bytes by task 2774 on cpu 0: fsnotify+0x2b9/0x1150 fs/notify/fsnotify.c:532 __fsnotify_parent+0x307/0x480 fs/notify/fsnotify.c:230 fsnotify_parent include/linux/fsnotify.h:77 [inline] fsnotify_file include/linux/fsnotify.h:100 [inline] fsnotify_open include/linux/fsnotify.h:370 [inline] do_dentry_open+0xa5a/0xbd0 fs/open.c:1009 vfs_open+0x4a/0x50 fs/open.c:1087 do_open fs/namei.c:3645 [inline] path_openat+0x1821/0x1d40 fs/namei.c:3802 do_filp_open+0xf6/0x200 fs/namei.c:3829 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1430 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00002008 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2774 Comm: udevd Not tainted 6.8.0-rc7-syzkaller-00017-g29cd507cbec2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ================================================================== blk_print_req_error: 32 callbacks suppressed I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 loop0: unable to read partition table loop0: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 buffer_io_error: 23 callbacks suppressed Buffer I/O error on dev loop1, logical block 0, async page read loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 loop1: unable to read partition table loop1: partition table beyond EOD, truncated loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 loop1: unable to read partition table loop1: partition table beyond EOD, truncated loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 loop1: unable to read partition table loop1: partition table beyond EOD, truncated I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 loop0: unable to read partition table loop0: partition table beyond EOD, truncated I/O error, dev loop1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 loop1: unable to read partition table loop1: partition table beyond EOD, truncated Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 Alternate GPT is invalid, using primary GPT. loop0: p2 p3 p7 loop1: p1 loop1: p1 size 2047 extends beyond EOD, truncated