================================================================== BUG: KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object write to 0xffff88812b276e84 of 4 bytes by task 18779 on cpu 0: fsnotify_detach_connector_from_object+0xa8/0x1f0 fs/notify/mark.c:184 fsnotify_put_mark+0x340/0x420 fs/notify/mark.c:250 __do_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:790 [inline] __se_sys_inotify_rm_watch fs/notify/inotify/inotify_user.c:762 [inline] __x64_sys_inotify_rm_watch+0xcf/0x120 fs/notify/inotify/inotify_user.c:762 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88812b276e84 of 4 bytes by task 7866 on cpu 1: fsnotify+0x182/0x7d0 fs/notify/fsnotify.c:352 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_openat2+0x5de/0x620 fs/open.c:1154 do_sys_open+0xa2/0x110 fs/open.c:1165 ksys_open include/linux/syscalls.h:1386 [inline] __do_sys_open fs/open.c:1171 [inline] __se_sys_open fs/open.c:1169 [inline] __x64_sys_open+0x50/0x60 fs/open.c:1169 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7866 Comm: syz-executor.4 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7866 Comm: syz-executor.4 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x11d/0x187 lib/dump_stack.c:118 panic+0x210/0x640 kernel/panic.c:221 kcsan_report.cold+0xc/0xf kernel/kcsan/report.c:599 kcsan_setup_watchpoint+0x3fb/0x440 kernel/kcsan/core.c:507 fsnotify+0x182/0x7d0 fs/notify/fsnotify.c:352 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_openat2+0x5de/0x620 fs/open.c:1154 do_sys_open+0xa2/0x110 fs/open.c:1165 ksys_open include/linux/syscalls.h:1386 [inline] __do_sys_open fs/open.c:1171 [inline] __se_sys_open fs/open.c:1169 [inline] __x64_sys_open+0x50/0x60 fs/open.c:1169 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4165c0 Code: 05 48 3d 01 f0 ff ff 0f 83 2d 19 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 3d cd 1e 87 00 00 75 14 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 04 19 00 00 c3 48 83 ec 08 e8 0a fa ff ff RSP: 002b:00007fff8131b598 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00000000002d5044 RCX: 00000000004165c0 RDX: 00007fff8131b62a RSI: 0000000000000002 RDI: 00007fff8131b620 RBP: 00000000000069b0 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8131b5d0 R14: 00000000002d5044 R15: 00007fff8131b5e0 Kernel Offset: disabled Rebooting in 86400 seconds..