syzbot


KCSAN: data-race in retain_dentry / step_into (3)

Status: auto-closed as invalid on 2021/03/09 12:32
Subsystems: fs
[Documentation on labels]
First crash: 1190d, last: 1170d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in retain_dentry / step_into (4) fs 5 1094d 1134d 0/26 auto-closed as invalid on 2021/05/24 08:11
upstream KCSAN: data-race in retain_dentry / step_into (2) fs 3 1231d 1227d 0/26 auto-closed as invalid on 2021/01/07 06:50
upstream KCSAN: data-race in retain_dentry / step_into fs 4 1340d 1376d 0/26 auto-closed as invalid on 2020/09/20 21:41

Sample crash report:
==================================================================
BUG: KCSAN: data-race in retain_dentry / step_into

write to 0xffff88810759d000 of 4 bytes by task 11367 on cpu 0:
 retain_dentry+0x1de/0x260 fs/dcache.c:659
 dput+0x10e/0x420 fs/dcache.c:880
 path_put+0x1b/0x30 fs/namei.c:496
 do_faccessat+0x3e2/0x500 fs/open.c:457
 __do_sys_access fs/open.c:482 [inline]
 __se_sys_access fs/open.c:480 [inline]
 __x64_sys_access+0x33/0x40 fs/open.c:480
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810759d000 of 4 bytes by task 11365 on cpu 1:
 __follow_mount_rcu fs/namei.c:1316 [inline]
 handle_mounts fs/namei.c:1373 [inline]
 step_into+0xec/0xeb0 fs/namei.c:1691
 walk_component+0x190/0x350 fs/namei.c:1867
 lookup_last fs/namei.c:2312 [inline]
 path_lookupat+0x12d/0x560 fs/namei.c:2336
 filename_lookup+0xf2/0x380 fs/namei.c:2369
 user_path_at_empty+0x3b/0x50 fs/namei.c:2649
 user_path_at include/linux/namei.h:59 [inline]
 do_faccessat+0x260/0x500 fs/open.c:423
 __do_sys_access fs/open.c:482 [inline]
 __se_sys_access fs/open.c:480 [inline]
 __x64_sys_access+0x33/0x40 fs/open.c:480
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11365 Comm: systemd-sysctl Not tainted 5.11.0-rc6-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
2021/02/02 12:26 upstream 88bb507a74ea 19e09687 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in retain_dentry / step_into
2021/01/13 20:50 upstream 65f0d2414b70 a945f0a3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.