syzbot


KCSAN: data-race in __fsnotify_parent / d_set_mounted

Status: closed as invalid on 2019/11/19 13:44
Subsystems: fs
[Documentation on labels]
First crash: 1641d, last: 1641d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fsnotify_parent / d_set_mounted (4) fs 1 1176d 1176d 0/26 auto-closed as invalid on 2021/03/08 11:29
upstream KCSAN: data-race in __fsnotify_parent / d_set_mounted (2) fs 1 1576d 1576d 0/26 auto-closed as invalid on 2020/03/08 18:14
upstream KCSAN: data-race in __fsnotify_parent / d_set_mounted (3) fs 1 1245d 1232d 0/26 auto-closed as invalid on 2020/12/30 05:51

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __fsnotify_parent / d_set_mounted

write to 0xffff888125df6840 of 4 bytes by task 12582 on cpu 1:
 d_set_mounted+0x19d/0x1c0 fs/dcache.c:1438
 get_mountpoint+0x13d/0x2d0 fs/namespace.c:724
 lock_mount+0xa0/0x1a0 fs/namespace.c:2142
 do_add_mount+0x30/0x1e0 fs/namespace.c:2706
 do_new_mount_fc fs/namespace.c:2767 [inline]
 do_new_mount fs/namespace.c:2825 [inline]
 do_mount+0x130f/0x15a0 fs/namespace.c:3143
 ksys_mount+0xe8/0x160 fs/namespace.c:3352
 __do_sys_mount fs/namespace.c:3366 [inline]
 __se_sys_mount fs/namespace.c:3363 [inline]
 __x64_sys_mount+0x70/0x90 fs/namespace.c:3363
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888125df6840 of 4 bytes by task 12588 on cpu 0:
 __fsnotify_parent+0x55/0x230 fs/notify/fsnotify.c:151
 fsnotify_parent include/linux/fsnotify.h:40 [inline]
 fsnotify_path include/linux/fsnotify.h:50 [inline]
 fsnotify_modify include/linux/fsnotify.h:256 [inline]
 vfs_write fs/read_write.c:560 [inline]
 vfs_write+0x33e/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 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: 12588 Comm: syz-executor.3 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/26 02:39 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.