syzbot


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

Status: auto-closed as invalid on 2022/02/16 22:40
Subsystems: fs
[Documentation on labels]
First crash: 878d, last: 834d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dput / shrink_dentry_list (2) fs 1 1190d 1190d 0/26 auto-closed as invalid on 2021/02/25 05:57
upstream KCSAN: data-race in dput / shrink_dentry_list fs 1 1234d 1234d 0/26 auto-closed as invalid on 2021/01/12 13:00
upstream KCSAN: data-race in dput / shrink_dentry_list (4) fs 1 575d 575d 0/26 auto-obsoleted due to no activity on 2022/11/02 13:46

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

write to 0xffff888134583840 of 4 bytes by task 32684 on cpu 0:
 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:2656 [inline]
 path_mount+0x13f9/0x1c40 fs/namespace.c:3316
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3522
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3522
 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 0xffff888134583840 of 4 bytes by task 32701 on cpu 1:
 fast_dput fs/dcache.c:749 [inline]
 dput+0x34/0x430 fs/dcache.c:875
 path_put+0x1b/0x30 fs/namei.c:557
 free_fs_struct fs/fs_struct.c:91 [inline]
 exit_fs+0xb3/0xe0 fs/fs_struct.c:108
 do_exit+0x637/0x17a0 kernel/exit.c:828
 do_group_exit+0xce/0x180 kernel/exit.c:929
 get_signal+0xfc3/0x1550 kernel/signal.c:2852
 arch_do_signal_or_restart+0x8c/0x2e0 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x113/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: 0x00280400 -> 0x00200000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 32701 Comm: syz-executor.5 Tainted: G        W         5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/12 22:37 upstream daadb3bd0e8d 44d1319a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / shrink_dentry_list
2022/01/05 23:37 upstream 49ef78e59b07 6acc789a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / shrink_dentry_list
2022/01/04 04:35 upstream c9e6606c7fe9 7f723fbe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / shrink_dentry_list
2021/12/12 04:03 upstream 6f513529296f 49ca1f59 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / shrink_dentry_list
2021/11/30 00:16 upstream d58071a8a76d d0830353 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / shrink_dentry_list
* Struck through repros no longer work on HEAD.