syzbot


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

Status: auto-closed as invalid on 2021/05/08 13:36
Subsystems: fs
[Documentation on labels]
First crash: 1118d, last: 1117d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dput / select_collect (2) fs 11 1172d 1235d 0/26 auto-closed as invalid on 2021/03/15 09:22
upstream KCSAN: data-race in dput / select_collect fs 2 1378d 1391d 0/26 auto-closed as invalid on 2020/08/20 15:05

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

write to 0xffff88800997fcc0 of 4 bytes by task 8415 on cpu 1:
 d_lru_del fs/dcache.c:410 [inline]
 select_collect+0xaf/0x2b0 fs/dcache.c:1538
 d_walk+0x298/0x4b0 fs/dcache.c:1359
 shrink_dcache_parent+0x85/0x3f0 fs/dcache.c:1598
 d_invalidate+0x6e/0x1a0 fs/dcache.c:1710
 proc_invalidate_siblings_dcache+0x1e3/0x2d0 fs/proc/inode.c:150
 proc_flush_pid+0x16/0x20 fs/proc/base.c:3325
 release_task+0xa9f/0xb90 kernel/exit.c:222
 wait_task_zombie kernel/exit.c:1107 [inline]
 wait_consider_task+0x104f/0x18e0 kernel/exit.c:1334
 do_wait_thread kernel/exit.c:1397 [inline]
 do_wait+0x1b1/0x4e0 kernel/exit.c:1468
 kernel_wait4+0x13c/0x1a0 kernel/exit.c:1630
 __do_sys_wait4 kernel/exit.c:1658 [inline]
 __se_sys_wait4 kernel/exit.c:1654 [inline]
 __x64_sys_wait4+0x7a/0x100 kernel/exit.c:1654
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88800997fcc0 of 4 bytes by task 25469 on cpu 0:
 fast_dput fs/dcache.c:747 [inline]
 dput+0x34/0x430 fs/dcache.c:873
 proc_invalidate_siblings_dcache+0x1eb/0x2d0 fs/proc/inode.c:151
 proc_flush_pid+0x16/0x20 fs/proc/base.c:3325
 release_task+0xa9f/0xb90 kernel/exit.c:222
 exit_notify kernel/exit.c:699 [inline]
 do_exit+0xe8a/0x15e0 kernel/exit.c:845
 do_group_exit+0xce/0x180 kernel/exit.c:922
 get_signal+0xf93/0x1510 kernel/signal.c:2781
 arch_do_signal_or_restart+0x2a/0x270 arch/x86/kernel/signal.c:789
 handle_signal_work kernel/entry/common.c:147 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x11a/0x1b0 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:301
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25469 Comm: syz-executor.4 Tainted: G        W         5.12.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/03 13:32 upstream d93a0d43e3d0 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / select_collect
2021/04/03 12:45 upstream 0a84c2e440f7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dput / select_collect
* Struck through repros no longer work on HEAD.