syzbot


KCSAN: data-race in __fput / shrink_dentry_list

Status: auto-closed as invalid on 2021/08/23 14:36
Subsystems: fs
[Documentation on labels]
First crash: 1004d, last: 1004d

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

write to 0xffff8881302c6900 of 4 bytes by task 1000 on cpu 0:
 shrink_dentry_list+0x127/0x340 fs/dcache.c:423
 shrink_dcache_sb+0x188/0x2d0 fs/dcache.c:1296
 reconfigure_super+0x2aa/0x4f0 fs/super.c:889
 do_remount fs/namespace.c:2639 [inline]
 path_mount+0x1442/0x1ce0 fs/namespace.c:3227
 do_mount fs/namespace.c:3248 [inline]
 __do_sys_mount fs/namespace.c:3456 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3433
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3433
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881302c6900 of 4 bytes by task 1004 on cpu 1:
 fsnotify_parent include/linux/fsnotify.h:60 [inline]
 fsnotify_file include/linux/fsnotify.h:90 [inline]
 fsnotify_close include/linux/fsnotify.h:279 [inline]
 __fput+0x12d/0x4e0 fs/file_table.c:266
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 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+0x156/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00280440 -> 0x00200040

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1004 Comm: modprobe Not tainted 5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/19 14:28 upstream 2734d6c1b1a0 e6a17580 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __fput / shrink_dentry_list
* Struck through repros no longer work on HEAD.