syzbot


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

Status: auto-obsoleted due to no activity on 2024/01/25 14:18
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+269e445f9ac92c4b8708@syzkaller.appspotmail.com
First crash: 132d, last: 132d
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 (2) fs 1 183d 183d 0/26 auto-obsoleted due to no activity on 2023/12/05 18:48
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 0xffff888150b6e600 of 4 bytes by task 18596 on cpu 1:
 d_lru_add+0x45/0xe0 fs/dcache.c:427
 retain_dentry+0x157/0x190 fs/dcache.c:685
 dput+0x108/0x1f0 fs/dcache.c:908
 path_put fs/namei.c:562 [inline]
 put_link fs/namei.c:1028 [inline]
 pick_link+0x53b/0x7b0 fs/namei.c:1823
 step_into+0x71b/0x800 fs/namei.c:1872
 open_last_lookups fs/namei.c:3569 [inline]
 path_openat+0x10da/0x1d70 fs/namei.c:3776
 do_filp_open+0xf6/0x200 fs/namei.c:3809
 do_sys_openat2+0xab/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1463
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888150b6e600 of 4 bytes by task 18567 on cpu 0:
 __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
 open_last_lookups fs/namei.c:3569 [inline]
 path_openat+0x10da/0x1d70 fs/namei.c:3776
 do_filp_open+0xf6/0x200 fs/namei.c:3809
 do_sys_openat2+0xab/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1463
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0060000c -> 0x0068004c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18567 Comm: syz-executor.2 Not tainted 6.7.0-rc6-syzkaller-00078-ga4aebe936554 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/21 14:18 upstream a4aebe936554 4f9530a3 .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.