syzbot


KCSAN: data-race in d_lru_add / step_into (2)

Status: auto-obsoleted due to no activity on 2023/12/05 18:48
Subsystems: fs
[Documentation on labels]
First crash: 183d, last: 183d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in d_lru_add / step_into (3) fs 1 132d 132d 0/26 auto-obsoleted due to no activity on 2024/01/25 14:18
upstream KCSAN: data-race in d_lru_add / step_into fs 2 596d 626d 0/26 auto-obsoleted due to no activity on 2022/10/18 18:24
upstream KCSAN: data-race in d_lru_add / step_into (4) fs 1 84d 84d 0/26 auto-obsoleted due to no activity on 2024/03/13 17:08

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

write to 0xffff88813b123540 of 4 bytes by task 22526 on cpu 0:
 d_lru_add+0x45/0xe0 fs/dcache.c:427
 retain_dentry+0x157/0x190 fs/dcache.c:685
 dput+0x108/0x1f0 fs/dcache.c:908
 done_path_create fs/namei.c:3925 [inline]
 do_mkdirat+0x139/0x2a0 fs/namei.c:4132
 __do_sys_mkdir fs/namei.c:4149 [inline]
 __se_sys_mkdir fs/namei.c:4147 [inline]
 __x64_sys_mkdir+0x44/0x50 fs/namei.c:4147
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88813b123540 of 4 bytes by task 22527 on cpu 1:
 __d_entry_type include/linux/dcache.h:386 [inline]
 d_is_symlink include/linux/dcache.h:416 [inline]
 step_into+0x12f/0x800 fs/namei.c:1845
 walk_component+0x164/0x230 fs/namei.c:2008
 lookup_last fs/namei.c:2459 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2483
 filename_lookup+0x126/0x300 fs/namei.c:2512
 user_path_at_empty+0x42/0x110 fs/namei.c:2911
 user_path_at include/linux/namei.h:57 [inline]
 do_mount fs/namespace.c:3674 [inline]
 __do_sys_mount fs/namespace.c:3886 [inline]
 __se_sys_mount+0x24b/0x2d0 fs/namespace.c:3863
 __x64_sys_mount+0x67/0x80 fs/namespace.c:3863
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00200000 -> 0x00280040

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 22527 Comm: syz-executor.4 Not tainted 6.6.0-syzkaller-03860-g5a6a09e97199 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/31 18:44 upstream 5a6a09e97199 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in d_lru_add / step_into
* Struck through repros no longer work on HEAD.