syzbot


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

Status: auto-closed as invalid on 2022/02/10 13:46
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 330d, last: 330d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_instantiate / dput 1 369d 369d 0/24 auto-closed as invalid on 2022/01/02 23:30
upstream KCSAN: data-race in __d_instantiate / dput (3) 1 264d 264d 0/24 auto-closed as invalid on 2022/04/18 02:14

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

write to 0xffff8881327a5480 of 4 bytes by task 2034 on cpu 0:
 __d_instantiate+0x2ca/0x3a0 fs/dcache.c:1985
 d_instantiate+0x55/0x80 fs/dcache.c:2010
 shmem_symlink+0x338/0x390 mm/shmem.c:3075
 vfs_symlink+0x241/0x330 fs/namei.c:4248
 do_symlinkat+0x104/0x380 fs/namei.c:4277
 __do_sys_symlink fs/namei.c:4299 [inline]
 __se_sys_symlink fs/namei.c:4297 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4297
 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 0xffff8881327a5480 of 4 bytes by task 1438 on cpu 1:
 fast_dput fs/dcache.c:749 [inline]
 dput+0x34/0x430 fs/dcache.c:875
 handle_mounts fs/namei.c:1502 [inline]
 step_into+0x468/0xee0 fs/namei.c:1800
 walk_component+0x1a1/0x360 fs/namei.c:1976
 lookup_last fs/namei.c:2425 [inline]
 path_lookupat+0x12d/0x3d0 fs/namei.c:2449
 filename_lookup+0x130/0x310 fs/namei.c:2478
 user_path_at_empty+0x3e/0x110 fs/namei.c:2801
 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.16.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/01/06 13:42 upstream 75acfdb6fd92 6acc789a .config log report info KCSAN: data-race in __d_instantiate / dput
* Struck through repros no longer work on HEAD.