syzbot


KCSAN: data-race in d_lru_add / lookup_fast

Status: closed as invalid on 2019/11/19 13:54
Subsystems: fs
[Documentation on labels]
First crash: 1604d, last: 1604d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_lru_add / lookup_fast (3) fs 1 658d 658d 0/26 auto-closed as invalid on 2022/07/14 18:04
upstream KCSAN: data-race in d_lru_add / lookup_fast (4) fs 1 448d 448d 0/26 auto-obsoleted due to no activity on 2023/03/16 16:50
upstream KCSAN: data-race in d_lru_add / lookup_fast (2) fs 2 1543d 1590d 0/26 auto-closed as invalid on 2020/03/16 05:36

Sample crash report:
==================================================================
BUG: KCSAN: data-race in d_lru_add / lookup_fast

read to 0xffff888124414d80 of 4 bytes by task 24069 on cpu 1:
 d_is_miss include/linux/dcache.h:394 [inline]
 d_is_negative include/linux/dcache.h:440 [inline]
 lookup_fast+0xdf/0x700 fs/namei.c:1575
 do_last fs/namei.c:3274 [inline]
 path_openat+0x2ac/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888124414d80 of 4 bytes by task 24068 on cpu 0:
 d_lru_add+0x56/0xf0 fs/dcache.c:400
 retain_dentry fs/dcache.c:653 [inline]
 dput+0x417/0x750 fs/dcache.c:854
 path_put fs/namei.c:482 [inline]
 put_link fs/namei.c:877 [inline]
 step_into fs/namei.c:1762 [inline]
 do_last fs/namei.c:3373 [inline]
 path_openat+0x1ec9/0x36e0 fs/namei.c:3525
 do_filp_open+0x11e/0x1b0 fs/namei.c:3555
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 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: 24068 Comm: blkid Not tainted 5.4.0-rc6+ #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/11/06 16:15 https://github.com/google/ktsan.git kcsan 94c006602e13 da505f84 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.