syzbot


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

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

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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/14 02:06 upstream f0e18b03fcaf 9e8eaa75 .config log report info KCSAN: data-race in __d_instantiate / dput
* Struck through repros no longer work on HEAD.