KCSAN: data-race in __stop_tty / do_con_write (11)

Status: moderation: reported on 2026/09/30 14:32
Subsystems: serial
Labels: race:benign
[Documentation on labels]
Reported-by: syzbot+307a5204e7c9c75f6eea@syzkaller.appspotmail.com
First crash: 5h11m, last: 5h11m
▶ ▼ ✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
0744c3c9 assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in __stop_tty / do_con_write (11) 2026/09/30 14:31 2026/09/30 14:31 2026/09/30 15:20 892a21ec
▶ ▼ Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __stop_tty / do_con_write (2) serial 6 1 1790d 1790d 0/29 auto-closed as invalid on 2021/12/10 00:27
upstream KCSAN: data-race in __stop_tty / do_con_write (3) serial 6 2 1644d 1647d 0/29 auto-closed as invalid on 2022/05/05 09:26
upstream KCSAN: data-race in __stop_tty / do_con_write serial 6 3 1862d 1901d 0/29 auto-closed as invalid on 2021/09/28 23:33
upstream KCSAN: data-race in __stop_tty / do_con_write (9) serial 6 2 924d 945d 0/29 auto-obsoleted due to no activity on 2024/04/23 21:59
upstream KCSAN: data-race in __stop_tty / do_con_write (10) race:benign prio:low serial 6 2 71d 71d 0/29 auto-obsoleted due to no activity on 2026/09/15 14:24
upstream KCSAN: data-race in __stop_tty / do_con_write (8) serial 6 5 1060d 1025d 0/29 auto-obsoleted due to no activity on 2023/12/24 00:05
upstream KCSAN: data-race in __stop_tty / do_con_write (5) serial 6 1 1416d 1416d 0/29 auto-obsoleted due to no activity on 2022/12/19 02:12
upstream KCSAN: data-race in __stop_tty / do_con_write (7) serial 6 7 1203d 1216d 0/29 auto-obsoleted due to no activity on 2023/07/20 09:58
upstream KCSAN: data-race in __stop_tty / do_con_write (6) kernel 6 1 1331d 1331d 0/29 auto-obsoleted due to no activity on 2023/04/04 15:34
upstream KCSAN: data-race in __stop_tty / do_con_write (4) serial 6 1 1468d 1468d 0/29 auto-obsoleted due to no activity on 2022/10/28 19:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __stop_tty / do_con_write

write to 0xffff88811c014594 of 1 bytes by task 5819 on cpu 0:
 __stop_tty+0x36/0x90 drivers/tty/tty_io.c:744
 n_tty_ioctl_helper+0x2d1/0x370 drivers/tty/tty_ioctl.c:951
 n_tty_ioctl+0x101/0x200 drivers/tty/n_tty.c:2496
 tty_ioctl+0x83e/0xb80 drivers/tty/tty_io.c:2774
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x239d/0x2550 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811c014594 of 1 bytes by task 5821 on cpu 1:
 do_con_write+0x1bd5/0x2a90 drivers/tty/vt/vt.c:3305
 con_write+0x27/0x1d0 drivers/tty/vt/vt.c:3661
 process_output_block drivers/tty/n_tty.c:557 [inline]
 n_tty_write+0x7f4/0xb00 drivers/tty/n_tty.c:2366
 iterate_tty_write drivers/tty/tty_io.c:1006 [inline]
 file_tty_write+0x392/0x6a0 drivers/tty/tty_io.c:1054
 tty_write+0x25/0x30 drivers/tty/tty_io.c:1075
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x57f/0x9a0 fs/read_write.c:687
 ksys_write+0xdc/0x1a0 fs/read_write.c:739
 __do_sys_write fs/read_write.c:750 [inline]
 __se_sys_write fs/read_write.c:747 [inline]
 __x64_sys_write+0x40/0x50 fs/read_write.c:747
 x64_sys_call+0x154e/0x2550 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 5821 Comm: syz.2.653 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/30 14:31 upstream 551c722f4080 7808aef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __stop_tty / do_con_write
* Struck through repros no longer work on HEAD.