syzbot


KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object

Status: closed as invalid on 2019/11/19 14:44
Subsystems: fs
[Documentation on labels]
First crash: 2164d, last: 2162d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object (2) fs 6 44 1941d 2111d 0/29 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object (4) fs 6 1 521d 521d 0/29 auto-obsoleted due to no activity on 2024/06/12 06:08
upstream KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object (3) fs 6 957 552d 673d 0/29 auto-obsoleted due to no activity on 2024/05/05 06:09

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fsnotify / fsnotify_detach_connector_from_object

write to 0xffff888124712554 of 4 bytes by task 8015 on cpu 0:
 fsnotify_detach_connector_from_object+0xb8/0x210 fs/notify/mark.c:184
 fsnotify_put_mark+0x2e9/0x3b0 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+0xd7/0x130 fs/notify/inotify/inotify_user.c:762
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888124712554 of 4 bytes by task 9607 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_perm include/linux/fsnotify.h:85 [inline]
 security_file_permission+0x1c7/0x280 security/security.c:1379
 rw_verify_area+0xe1/0x250 fs/read_write.c:399
 do_sendfile+0x10e/0x7f0 fs/read_write.c:1420
 __do_sys_sendfile64 fs/read_write.c:1525 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511
 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: 1 PID: 9607 Comm: syz-executor.0 Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/10 01:56 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
2019/11/07 23:28 https://github.com/google/ktsan.git kcsan 94c006602e13 f39aff9e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.