syzbot


KCSAN: data-race in __fput / __tty_hangup

Status: auto-closed as invalid on 2020/08/31 10:07
Subsystems: serial
[Documentation on labels]
First crash: 1536d, last: 1536d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __fput / __tty_hangup (3) serial 2 814d 832d 0/28 auto-closed as invalid on 2022/08/23 04:41
upstream KCSAN: data-race in __fput / __tty_hangup (4) serial 6 6d14h 538d 1/28 upstream: reported on 2023/04/21 08:18
upstream KCSAN: data-race in __fput / __tty_hangup (2) serial 1 869d 869d 0/28 auto-closed as invalid on 2022/06/29 01:31

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

write to 0xffff888124a6e828 of 8 bytes by task 10825 on cpu 0:
 __tty_hangup+0x23a/0x610 drivers/tty/tty_io.c:616
 tty_vhangup+0x13/0x20 drivers/tty/tty_io.c:698
 pty_close+0x298/0x2c0 drivers/tty/pty.c:79
 tty_release+0x255/0xa00 drivers/tty/tty_io.c:1679
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:135
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:239 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888124a6e828 of 8 bytes by task 10826 on cpu 1:
 __fput+0x1b6/0x460 fs/file_table.c:280
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:135
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:239 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:269
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:352
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10826 Comm: syz-executor.3 Not tainted 5.8.0-rc7-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
2020/07/27 10:01 upstream 92ed30191993 cb93dc6a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.