syzbot


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

Status: auto-obsoleted due to no activity on 2023/03/16 16:50
Subsystems: fs
[Documentation on labels]
First crash: 478d, last: 478d
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 688d 688d 0/26 auto-closed as invalid on 2022/07/14 18:04
upstream KCSAN: data-race in d_lru_add / lookup_fast (2) fs 2 1574d 1621d 0/26 auto-closed as invalid on 2020/03/16 05:36
upstream KCSAN: data-race in d_lru_add / lookup_fast fs 1 1634d 1634d 0/26 closed as invalid on 2019/11/19 13:54

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

write to 0xffff88810aaace40 of 4 bytes by task 16388 on cpu 0:
 d_lru_add+0x45/0xe0 fs/dcache.c:427
 retain_dentry+0x153/0x190 fs/dcache.c:685
 dput+0x10e/0x1f0 fs/dcache.c:908
 done_path_create fs/namei.c:3856 [inline]
 do_mkdirat+0x109/0x270 fs/namei.c:4064
 __do_sys_mkdir fs/namei.c:4081 [inline]
 __se_sys_mkdir fs/namei.c:4079 [inline]
 __x64_sys_mkdir+0x40/0x50 fs/namei.c:4079
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810aaace40 of 4 bytes by task 16392 on cpu 1:
 d_revalidate fs/namei.c:855 [inline]
 lookup_fast+0xca/0x270 fs/namei.c:1634
 walk_component+0x3f/0x230 fs/namei.c:1989
 lookup_last fs/namei.c:2450 [inline]
 path_lookupat+0x11d/0x2b0 fs/namei.c:2474
 filename_lookup+0x133/0x310 fs/namei.c:2503
 user_path_at_empty+0x3e/0x110 fs/namei.c:2876
 user_path_at include/linux/namei.h:57 [inline]
 do_mount fs/namespace.c:3485 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x24d/0x2d0 fs/namespace.c:3674
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00200000 -> 0x00280040

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16392 Comm: syz-executor.0 Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/05 16:10 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_lru_add / lookup_fast
* Struck through repros no longer work on HEAD.