syzbot


KCSAN: data-race in complete_walk / shrink_dentry_list

Status: auto-closed as invalid on 2022/01/31 08:56
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 345d, last: 345d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in complete_walk / shrink_dentry_list

write to 0xffff888135e98000 of 4 bytes by task 3224 on cpu 1:
 shrink_dentry_list+0x127/0x540 fs/dcache.c:423
 shrink_dcache_sb+0x188/0x2d0 fs/dcache.c:1296
 reconfigure_super+0x146/0x540 fs/super.c:891
 do_remount fs/namespace.c:2650 [inline]
 path_mount+0x13f9/0x1c40 fs/namespace.c:3310
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 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 0xffff888135e98000 of 4 bytes by task 3222 on cpu 0:
 complete_walk+0x143/0x1e0 fs/namei.c:911
 path_lookupat+0x17c/0x3d0 fs/namei.c:2456
 filename_lookup+0x130/0x310 fs/namei.c:2478
 user_path_at_empty+0x3e/0x110 fs/namei.c:2801
 user_path_at include/linux/namei.h:57 [inline]
 do_mount fs/namespace.c:3328 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x217/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 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: 0x00290400 -> 0x00210000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3222 Comm: syz-executor.2 Not tainted 5.16.0-rc7-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 2021/12/27 08:50 upstream fc74e0a40e4f e4f103c4 .config log report info KCSAN: data-race in complete_walk / shrink_dentry_list
* Struck through repros no longer work on HEAD.