syzbot


KCSAN: data-race in lookup_fast / retain_dentry (4)

Status: auto-closed as invalid on 2021/03/27 05:59
Subsystems: fs
[Documentation on labels]
First crash: 1211d, last: 1160d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in lookup_fast / retain_dentry (5) fs 1 1111d 1111d 0/26 auto-closed as invalid on 2021/05/17 09:51
upstream KCSAN: data-race in lookup_fast / retain_dentry fs 2 1344d 1356d 0/26 auto-closed as invalid on 2020/09/23 11:25
upstream KCSAN: data-race in lookup_fast / retain_dentry (2) fs 1 1306d 1306d 0/26 auto-closed as invalid on 2020/10/31 17:53
upstream KCSAN: data-race in lookup_fast / retain_dentry (3) fs 2 1250d 1234d 0/26 auto-closed as invalid on 2020/12/27 03:33

Sample crash report:
loop1: detected capacity change from 244 to 0
==================================================================
BUG: KCSAN: data-race in lookup_fast / retain_dentry

write to 0xffff88800ac253c0 of 4 bytes by task 22997 on cpu 1:
 retain_dentry+0x1de/0x260 fs/dcache.c:659
 dput+0x10e/0x420 fs/dcache.c:880
 path_put+0x1b/0x30 fs/namei.c:496
 do_mount fs/namespace.c:3225 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x247/0x2e0 fs/namespace.c:3409
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3409
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88800ac253c0 of 4 bytes by task 22989 on cpu 0:
 d_revalidate fs/namei.c:767 [inline]
 lookup_fast+0x15f/0x370 fs/namei.c:1493
 walk_component+0x5c/0x350 fs/namei.c:1857
 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_mount fs/namespace.c:3221 [inline]
 __do_sys_mount fs/namespace.c:3432 [inline]
 __se_sys_mount+0x209/0x2e0 fs/namespace.c:3409
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3409
 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: 0 PID: 22989 Comm: syz-executor.1 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/20 05:53 upstream f40ddce88593 f689d40a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lookup_fast / retain_dentry
2021/02/08 00:39 upstream b75dba7f472c 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lookup_fast / retain_dentry
2021/01/28 07:41 upstream 76c057c84d28 eefc07f2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in lookup_fast / retain_dentry
2020/12/30 15:40 upstream 139711f033f6 ecb8c012 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.