KCSAN: data-race in n_tty_receive_char / n_tty_write (14)

Status: moderation: reported on 2026/10/17 05:59
Subsystems: serial
Labels: race:benign prio:low
[Documentation on labels]
Reported-by: syzbot+ca627b18cfeab9ce9163@syzkaller.appspotmail.com
First crash: 45d, last: 7d15h
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
4c297ae6 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KCSAN: data-race in n_tty_receive_char / n_tty_write (14) 2026/10/19 00:00 2026/10/19 00:00 2026/10/19 00:23 432c0077
16a1a784 assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in n_tty_receive_char / n_tty_write (14) 2026/10/17 05:59 2026/10/17 05:59 2026/10/17 06:37 432c0077
▶ ▼ Similar bugs (13)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (4) serial 6 1 1326d 1326d 0/30 auto-obsoleted due to no activity on 2023/05/20 17:17
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (10) serial 6 7 590d 632d 0/30 auto-obsoleted due to no activity on 2025/06/15 15:33
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (13) race:benign prio:high serial 6 1 102d 102d 0/30 auto-obsoleted due to no activity on 2026/10/16 13:45
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (6) serial 6 28 957d 1090d 0/30 auto-obsoleted due to no activity on 2024/05/23 04:54
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (11) serial 6 11 386d 513d 0/30 auto-obsoleted due to no activity on 2026/01/05 01:20
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (12) serial 6 1 320d 320d 0/30 auto-obsoleted due to no activity on 2026/03/11 21:58
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (9) serial 6 3 690d 723d 0/30 auto-obsoleted due to no activity on 2025/03/07 19:30
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (3) serial 6 5 1384d 1426d 0/30 auto-obsoleted due to no activity on 2023/03/30 21:01
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (7) serial 6 6 817d 912d 0/30 auto-obsoleted due to no activity on 2024/10/10 09:15
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (2) serial 6 13 1473d 1614d 0/30 auto-obsoleted due to no activity on 2022/12/30 17:18
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (8) serial 6 1 774d 774d 0/30 auto-obsoleted due to no activity on 2024/11/22 07:31
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write serial 6 25 1649d 1913d 0/30 auto-closed as invalid on 2022/06/30 23:55
upstream KCSAN: data-race in n_tty_receive_char / n_tty_write (5) serial 6 3 1251d 1275d 0/30 auto-obsoleted due to no activity on 2023/08/03 17:30

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_receive_char / n_tty_write

read to 0xffffc90002e7f028 of 8 bytes by task 11613 on cpu 0:
 process_echoes drivers/tty/n_tty.c:762 [inline]
 n_tty_write+0x177/0xb90 drivers/tty/n_tty.c:2352
 iterate_tty_write drivers/tty/tty_io.c:1008 [inline]
 file_tty_write+0x3c5/0x730 drivers/tty/tty_io.c:1056
 tty_write+0x25/0x30 drivers/tty/tty_io.c:1077
 iter_file_splice_write+0x6a6/0xa80 fs/splice.c:660
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0x153/0x270 fs/splice.c:1114
 splice_direct_to_actor+0x2f5/0x680 fs/splice.c:1023
 do_splice_direct_actor fs/splice.c:1157 [inline]
 do_splice_direct+0x119/0x1a0 fs/splice.c:1183
 do_sendfile+0x37d/0x640 fs/read_write.c:1351
 __do_sys_sendfile64 fs/read_write.c:1412 [inline]
 __se_sys_sendfile64 fs/read_write.c:1398 [inline]
 __x64_sys_sendfile64+0x105/0x150 fs/read_write.c:1398
 x64_sys_call+0x1015/0x2550 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffffc90002e7f028 of 8 bytes by task 771 on cpu 1:
 commit_echoes drivers/tty/n_tty.c:738 [inline]
 n_tty_receive_char+0x44e/0x6d0 drivers/tty/n_tty.c:1413
 n_tty_receive_buf_standard+0x579/0x3c80 drivers/tty/n_tty.c:1582
 __receive_buf drivers/tty/n_tty.c:1616 [inline]
 n_tty_receive_buf_common+0x833/0xc30 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:394
 tty_port_default_receive_buf+0x59/0x90 drivers/tty/tty_port.c:37
 receive_buf drivers/tty/tty_buffer.c:452 [inline]
 flush_to_ldisc+0x14c/0x350 drivers/tty/tty_buffer.c:502
 process_one_work kernel/workqueue.c:3495 [inline]
 process_scheduled_works+0x582/0xab0 kernel/workqueue.c:3578
 worker_thread+0x56c/0x770 kernel/workqueue.c:3659
 kthread+0x248/0x2a0 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 771 Comm: kworker/u8:13 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: ttyS-serial_8250 flush_to_ldisc
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/24 06:13 upstream 8d7fe9885c62 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
2026/10/17 05:59 upstream 70dd4ee72eb2 432c0077 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_receive_char / n_tty_write
* Struck through repros no longer work on HEAD.