syzbot


KCSAN: data-race in __d_drop / dput

Status: auto-closed as invalid on 2022/02/10 17:36
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 335d, last: 335d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __d_drop / dput (3) 2 214d 223d 0/24 auto-closed as invalid on 2022/06/11 11:25
upstream KCSAN: data-race in __d_drop / dput (2) 1 298d 298d 0/24 auto-closed as invalid on 2022/03/19 02:06
upstream KCSAN: data-race in __d_drop / dput (4) 1 108d 108d 0/24 auto-closed as invalid on 2022/09/25 01:35

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

write to 0xffff8881339ac490 of 8 bytes by task 9528 on cpu 0:
 __d_drop+0x16a/0x250 fs/dcache.c:483
 __dentry_kill+0x12f/0x450 fs/dcache.c:577
 shrink_dentry_list+0x478/0x540 fs/dcache.c:1176
 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 0xffff8881339ac490 of 8 bytes by task 1827 on cpu 1:
 hlist_bl_unhashed include/linux/list_bl.h:54 [inline]
 d_unhashed include/linux/dcache.h:342 [inline]
 fast_dput fs/dcache.c:812 [inline]
 dput+0xae/0x430 fs/dcache.c:875
 __fput+0x3e4/0x520 fs/file_table.c:293
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0x8e/0x110 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x160/0x190 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300
 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff8882377ea738 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1827 Comm: syz-executor.1 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 17:27 upstream 75acfdb6fd92 6acc789a .config log report info KCSAN: data-race in __d_drop / dput
* Struck through repros no longer work on HEAD.