syzbot


KCSAN: data-race in __d_instantiate / path_openat (2)

Status: moderation: reported on 2025/11/01 01:40
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+63e0988e071251a5d8e9@syzkaller.appspotmail.com
First crash: 37d, last: 37d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_instantiate / path_openat fs 6 1 189d 189d 0/29 auto-obsoleted due to no activity on 2025/07/28 17:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __d_instantiate / path_openat

write to 0xffff888106e58c30 of 8 bytes by task 4039 on cpu 1:
 __d_set_inode_and_type fs/dcache.c:406 [inline]
 __d_instantiate+0x1f8/0x3b0 fs/dcache.c:1936
 d_instantiate+0x59/0x80 fs/dcache.c:1963
 shmem_mknod+0x153/0x180 mm/shmem.c:3864
 shmem_create+0x34/0x50 mm/shmem.c:3917
 lookup_open fs/namei.c:3796 [inline]
 open_last_lookups fs/namei.c:3895 [inline]
 path_openat+0x1105/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_creat fs/open.c:1530 [inline]
 __se_sys_creat fs/open.c:1524 [inline]
 __x64_sys_creat+0x65/0x90 fs/open.c:1524
 x64_sys_call+0x2da3/0x3000 arch/x86/include/generated/asm/syscalls_64.h:86
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888106e58c30 of 8 bytes by task 4040 on cpu 0:
 lookup_fast_for_open fs/namei.c:3839 [inline]
 open_last_lookups fs/namei.c:3866 [inline]
 path_openat+0x45e/0x2170 fs/namei.c:4131
 do_filp_open+0x109/0x230 fs/namei.c:4161
 do_sys_openat2+0xa6/0x110 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_creat fs/open.c:1530 [inline]
 __se_sys_creat fs/open.c:1524 [inline]
 __x64_sys_creat+0x65/0x90 fs/open.c:1524
 x64_sys_call+0x2da3/0x3000 arch/x86/include/generated/asm/syscalls_64.h:86
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000000 -> 0xffff888129d67aa0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4040 Comm: syz.4.23246 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/01 01:40 upstream 58fdd8484c05 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / path_openat
* Struck through repros no longer work on HEAD.