syzbot


KCSAN: data-race in __follow_mount_rcu.isra.0 / d_delete

Status: auto-closed as invalid on 2020/05/25 23:33
Subsystems: fs
[Documentation on labels]
First crash: 1512d, last: 1501d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __follow_mount_rcu.isra.0 / d_delete

write to 0xffff8881255ff6c0 of 4 bytes by task 7844 on cpu 1:
 d_delete fs/dcache.c:2450 [inline]
 d_delete+0xbc/0xe0 fs/dcache.c:2440
 vfs_unlink+0x391/0x3e0 fs/namei.c:4087
 do_unlinkat+0x33f/0x550 fs/namei.c:4137
 __do_sys_unlink fs/namei.c:4184 [inline]
 __se_sys_unlink fs/namei.c:4182 [inline]
 __x64_sys_unlink+0x38/0x50 fs/namei.c:4182
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881255ff6c0 of 4 bytes by task 4027 on cpu 0:
 managed_dentry_rcu fs/namei.c:1381 [inline]
 __follow_mount_rcu.isra.0+0x5a/0x330 fs/namei.c:1398
 lookup_fast+0x249/0x6e0 fs/namei.c:1700
 walk_component+0x73/0x9a0 fs/namei.c:1911
 lookup_last fs/namei.c:2391 [inline]
 path_lookupat.isra.0+0x129/0x2e0 fs/namei.c:2436
 filename_lookup+0x145/0x2b0 fs/namei.c:2466
 user_path_at_empty+0x47/0x60 fs/namei.c:2746
 do_readlinkat+0x89/0x230 fs/stat.c:409
 __do_sys_readlink fs/stat.c:442 [inline]
 __se_sys_readlink fs/stat.c:439 [inline]
 __x64_sys_readlink+0x4c/0x60 fs/stat.c:439
 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: 0 PID: 4027 Comm: udevd Not tainted 5.6.0-rc1-syzkaller #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
2020/03/16 23:32 https://github.com/google/ktsan.git kcsan 941e0d917bbf 749688d2 .config console log report ci2-upstream-kcsan-gce
2020/03/06 00:10 https://github.com/google/ktsan.git kcsan 766d004d1b85 b655d91b .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.