syzbot


KCSAN: data-race in __d_instantiate / dput (3)

Status: auto-closed as invalid on 2022/04/18 02:14
Subsystems: fs
[Documentation on labels]
First crash: 774d, last: 774d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_instantiate / dput fs 1 879d 879d 0/26 auto-closed as invalid on 2022/01/02 23:30
upstream KCSAN: data-race in __d_instantiate / dput (6) fs 1 127d 127d 0/26 auto-obsoleted due to no activity on 2024/01/24 06:42
upstream KCSAN: data-race in __d_instantiate / dput (5) fs 1 222d 222d 0/26 auto-obsoleted due to no activity on 2023/10/22 00:51
upstream KCSAN: data-race in __d_instantiate / dput (2) fs 1 840d 840d 0/26 auto-closed as invalid on 2022/02/10 13:46
upstream KCSAN: data-race in __d_instantiate / dput (4) fs 2 411d 444d 0/26 auto-obsoleted due to no activity on 2023/04/17 20:38

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

write to 0xffff888133be2e40 of 4 bytes by task 17823 on cpu 0:
 __d_instantiate+0x2ca/0x3a0 fs/dcache.c:2010
 d_instantiate+0x55/0x80 fs/dcache.c:2035
 shmem_symlink+0x338/0x390 mm/shmem.c:3060
 vfs_symlink+0x18a/0x280 fs/namei.c:4299
 do_symlinkat+0x104/0x380 fs/namei.c:4328
 __do_sys_symlink fs/namei.c:4350 [inline]
 __se_sys_symlink fs/namei.c:4348 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4348
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888133be2e40 of 4 bytes by task 1438 on cpu 1:
 fast_dput fs/dcache.c:774 [inline]
 dput+0x34/0x430 fs/dcache.c:900
 handle_mounts fs/namei.c:1552 [inline]
 step_into+0x468/0xf70 fs/namei.c:1850
 walk_component+0x1a1/0x360 fs/namei.c:2026
 lookup_last fs/namei.c:2475 [inline]
 path_lookupat+0x12d/0x3d0 fs/namei.c:2499
 filename_lookup+0x130/0x310 fs/namei.c:2528
 user_path_at_empty+0x3e/0x110 fs/namei.c:2851
 do_readlinkat+0x97/0x210 fs/stat.c:443
 __do_sys_readlink fs/stat.c:476 [inline]
 __se_sys_readlink fs/stat.c:473 [inline]
 __x64_sys_readlink+0x43/0x50 fs/stat.c:473
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000008 -> 0x00600008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1438 Comm: udevd Not tainted 5.17.0-rc7-syzkaller-00241-gf0e18b03fcaf-dirty #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
2022/03/14 02:06 upstream f0e18b03fcaf 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __d_instantiate / dput
* Struck through repros no longer work on HEAD.