syzbot


KCSAN: data-race in __process_echoes / n_tty_write (15)

Status: moderation: reported on 2026/03/17 22:47
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+8ac83d5c25e49c3ed920@syzkaller.appspotmail.com
First crash: 3d07h, last: 3d07h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
59599a8c-856a-4419-bd21-f17f0cf28d33 assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in __process_echoes / n_tty_write (15) 2026/03/18 03:26 2026/03/18 03:26 2026/03/18 03:40 f84caa2f84dea47b51a188e8d6267f295e89bbcb
Similar bugs (14)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __process_echoes / n_tty_write (14) serial 6 13 68d 259d 0/29 auto-obsoleted due to no activity on 2026/03/08 20:00
upstream KCSAN: data-race in __process_echoes / n_tty_write (9) serial 6 4 977d 1023d 0/29 auto-obsoleted due to no activity on 2023/08/21 10:01
upstream KCSAN: data-race in __process_echoes / n_tty_write serial 6 3 2042d 2084d 0/29 auto-closed as invalid on 2020/09/20 17:41
upstream KCSAN: data-race in __process_echoes / n_tty_write (3) serial 6 7 1755d 1820d 0/29 auto-closed as invalid on 2021/07/04 10:36
upstream KCSAN: data-race in __process_echoes / n_tty_write (11) serial 6 13 708d 786d 0/29 auto-obsoleted due to no activity on 2024/05/16 20:06
upstream KCSAN: data-race in __process_echoes / n_tty_write (10) serial 6 10 832d 832d 0/29 auto-obsoleted due to no activity on 2024/01/14 04:02
upstream KCSAN: data-race in __process_echoes / n_tty_write (4) serial 6 1 1713d 1713d 0/29 auto-closed as invalid on 2021/08/15 21:06
upstream KCSAN: data-race in __process_echoes / n_tty_write (6) serial 6 41 1264d 1559d 0/29 auto-obsoleted due to no activity on 2022/11/07 20:53
upstream KCSAN: data-race in __process_echoes / n_tty_write (2) serial 6 4 1910d 1929d 0/29 auto-closed as invalid on 2021/01/30 23:25
upstream KCSAN: data-race in __process_echoes / n_tty_write (7) serial 6 2 1208d 1209d 0/29 auto-obsoleted due to no activity on 2023/01/13 20:09
upstream KCSAN: data-race in __process_echoes / n_tty_write (5) serial 6 1 1633d 1633d 0/29 auto-closed as invalid on 2021/11/04 02:47
upstream KCSAN: data-race in __process_echoes / n_tty_write (12) serial 6 2 641d 647d 0/29 auto-obsoleted due to no activity on 2024/07/22 07:47
upstream KCSAN: data-race in __process_echoes / n_tty_write (13) serial 6 4 409d 473d 0/29 auto-obsoleted due to no activity on 2025/04/01 20:34
upstream KCSAN: data-race in __process_echoes / n_tty_write (8) serial 6 3 1071d 1124d 0/29 auto-obsoleted due to no activity on 2023/05/19 15:46

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

write to 0xffffc90000ee1280 of 8 bytes by task 3965 on cpu 1:
 __process_echoes+0x63e/0x6b0 drivers/tty/n_tty.c:726
 flush_echoes drivers/tty/n_tty.c:785 [inline]
 __receive_buf drivers/tty/n_tty.c:1618 [inline]
 n_tty_receive_buf_common+0x918/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:3276 [inline]
 process_scheduled_works+0x513/0xa10 kernel/workqueue.c:3359
 worker_thread+0x58a/0x780 kernel/workqueue.c:3440
 kthread+0x22a/0x280 kernel/kthread.c:436
 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 0xffffc90000ee1280 of 8 bytes by task 13649 on cpu 0:
 process_echoes drivers/tty/n_tty.c:762 [inline]
 n_tty_write+0x188/0xc20 drivers/tty/n_tty.c:2352
 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: 0x000000000000001c -> 0x0000000000000027

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 13649 Comm: syz.1.4136 Not tainted syzkaller #0 PREEMPT(full) 
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/17 22:46 upstream f0caa1d49cc0 c8810548 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __process_echoes / n_tty_write
* Struck through repros no longer work on HEAD.