syzbot


KCSAN: data-race in __fput / __tty_hangup (2)

Status: auto-closed as invalid on 2022/06/29 01:31
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 195d, last: 195d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fput / __tty_hangup (3) 2 140d 158d 0/24 auto-closed as invalid on 2022/08/23 04:41
upstream KCSAN: data-race in __fput / __tty_hangup 1 862d 862d 0/24 auto-closed as invalid on 2020/08/31 10:07

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

write to 0xffff888123c3ea28 of 8 bytes by task 20243 on cpu 1:
 __tty_hangup+0x22a/0x5b0 drivers/tty/tty_io.c:628
 tty_vhangup+0x13/0x20 drivers/tty/tty_io.c:707
 pty_close+0x25e/0x280 drivers/tty/pty.c:79
 tty_release+0x255/0x9d0 drivers/tty/tty_io.c:1758
 __fput+0x292/0x510 fs/file_table.c:317
 ____fput+0x11/0x20 fs/file_table.c:350
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 get_signal+0xeca/0x1020 kernel/signal.c:2652
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffff888123c3ea28 of 8 bytes by task 20244 on cpu 0:
 __fput+0x263/0x510 fs/file_table.c:316
 ____fput+0x11/0x20 fs/file_table.c:350
 task_work_run+0x8e/0x110 kernel/task_work.c:177
 get_signal+0xeca/0x1020 kernel/signal.c:2652
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0xffffffff84eb7350 -> 0xffffffff84eb7248

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20244 Comm: syz-executor.3 Not tainted 5.18.0-syzkaller-01444-g0350785b0a09-dirty #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/05/25 01:25 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in __fput / __tty_hangup
* Struck through repros no longer work on HEAD.