syzbot


KCSAN: data-race in __uart_start / stop_tty

Status: moderation: reported on 2026/03/02 22:53
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+19879f025d7d926ac30f@syzkaller.appspotmail.com
First crash: 15d, last: 15d
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
5b715f7b-b483-4fe6-b33b-0ac624b28f75 assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in __uart_start / stop_tty 2026/03/02 22:52 2026/03/02 22:52 2026/03/02 23:02 305c0ec5cd886e2d13738e28e1b2df9b0ec20fc9

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __uart_start / stop_tty

write to 0xffff88810b29d5bc of 1 bytes by task 40 on cpu 0:
 __stop_tty drivers/tty/tty_io.c:744 [inline]
 stop_tty+0x4d/0xe0 drivers/tty/tty_io.c:766
 n_tty_receive_char_flow_ctrl drivers/tty/n_tty.c:1230 [inline]
 n_tty_receive_char_special drivers/tty/n_tty.c:1335 [inline]
 n_tty_receive_buf_standard+0x691/0x3f60 drivers/tty/n_tty.c:1580
 __receive_buf drivers/tty/n_tty.c:1616 [inline]
 n_tty_receive_buf_common+0x7f3/0xc10 drivers/tty/n_tty.c:1715
 n_tty_receive_buf2+0x33/0x40 drivers/tty/n_tty.c:1759
 tty_ldisc_receive_buf+0x66/0xf0 drivers/tty/tty_buffer.c:387
 tty_port_default_receive_buf+0x59/0x90 drivers/tty/tty_port.c:37
 receive_buf drivers/tty/tty_buffer.c:445 [inline]
 flush_to_ldisc+0x148/0x340 drivers/tty/tty_buffer.c:495
 process_one_work kernel/workqueue.c:3275 [inline]
 process_scheduled_works+0x4de/0x9e0 kernel/workqueue.c:3358
 worker_thread+0x581/0x770 kernel/workqueue.c:3439
 kthread+0x22a/0x280 kernel/kthread.c:467
 ret_from_fork+0x150/0x360 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read to 0xffff88810b29d5bc of 1 bytes by task 12008 on cpu 1:
 uart_tx_stopped include/linux/serial_core.h:1149 [inline]
 __uart_start+0x8a/0x2d0 drivers/tty/serial/serial_core.c:143
 uart_start+0x58/0x1e0 drivers/tty/serial/serial_core.c:173
 uart_flush_chars+0x15/0x20 drivers/tty/serial/serial_core.c:607
 n_tty_write+0x9e6/0xc20 drivers/tty/n_tty.c:2382
 iterate_tty_write drivers/tty/tty_io.c:1006 [inline]
 file_tty_write+0x378/0x690 drivers/tty/tty_io.c:1081
 tty_write+0x25/0x30 drivers/tty/tty_io.c:1102
 iter_file_splice_write+0x6c4/0xa80 fs/splice.c:736
 do_splice_from fs/splice.c:936 [inline]
 direct_splice_actor+0x156/0x2a0 fs/splice.c:1159
 splice_direct_to_actor+0x311/0x670 fs/splice.c:1103
 do_splice_direct_actor fs/splice.c:1202 [inline]
 do_splice_direct+0x119/0x1a0 fs/splice.c:1228
 do_sendfile+0x382/0x650 fs/read_write.c:1372
 __do_sys_sendfile64 fs/read_write.c:1433 [inline]
 __se_sys_sendfile64 fs/read_write.c:1419 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1419
 x64_sys_call+0x2dc4/0x3020 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x12c/0x370 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 12008 Comm: syz.0.2495 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/03/02 22:52 upstream 11439c4635ed b9dd6534 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __uart_start / stop_tty
* Struck through repros no longer work on HEAD.