syzbot


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

Status: auto-closed as invalid on 2020/09/11 06:18
Subsystems: serial
[Documentation on labels]
First crash: 1369d, last: 1369d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (4) serial 3 1077d 1124d 0/26 auto-closed as invalid on 2021/06/30 05:54
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (10) serial 3 334d 380d 0/26 auto-obsoleted due to no activity on 2023/07/13 04:28
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (8) serial 1 845d 845d 0/26 auto-closed as invalid on 2022/02/17 20:31
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (9) serial 1 677d 677d 0/26 auto-closed as invalid on 2022/08/03 23:21
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (6) serial 1 935d 935d 0/26 auto-closed as invalid on 2021/11/19 04:32
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p serial 4 1599d 1618d 0/26 auto-closed as invalid on 2020/02/29 07:50
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (11) serial 2 32d 42d 0/26 moderation: reported on 2024/03/26 05:32
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (3) serial 1 1187d 1187d 0/26 auto-closed as invalid on 2021/03/12 04:16
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (7) serial 1 894d 894d 0/26 auto-closed as invalid on 2021/12/30 10:24
upstream KCSAN: data-race in __tty_hangup / tty_hung_up_p (5) serial 1 1025d 1025d 0/26 auto-closed as invalid on 2021/08/21 03:58

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

write to 0xffff88812ace5b28 of 8 bytes by task 530 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_user_mode_loop kernel/entry/common.c:139 [inline]
 exit_to_user_mode_prepare+0x1bb/0x220 kernel/entry/common.c:166
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:241
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812ace5b28 of 8 bytes by task 536 on cpu 1:
 tty_hung_up_p+0x1c/0x40 drivers/tty/tty_io.c:748
 n_tty_write+0x292/0xae0 drivers/tty/n_tty.c:2327
 do_tty_write drivers/tty/tty_io.c:962 [inline]
 tty_write+0x3fc/0x5e0 drivers/tty/tty_io.c:1046
 vfs_write+0x1d6/0x690 fs/read_write.c:576
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 536 Comm: syz-executor.1 Not tainted 5.8.0-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/08/07 06:15 upstream d6efb3ac3e6c cb436c69 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.