syzbot


KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (5)

Status: moderation: reported on 2026/02/01 03:27
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+0479f67e520e4910d370@syzkaller.appspotmail.com
First crash: 18h35m, last: 18h35m
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (4) serial 6 1 668d 668d 0/29 auto-obsoleted due to no activity on 2024/05/09 07:47
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (3) serial 6 1 741d 741d 0/29 auto-obsoleted due to no activity on 2024/02/26 02:18
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios (2) serial 6 1 918d 918d 0/29 auto-obsoleted due to no activity on 2023/09/02 17:23
upstream KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios serial 6 52 1100d 1271d 0/29 auto-obsoleted due to no activity on 2023/04/08 10:34

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios

write to 0xffff88811a7e6508 of 44 bytes by task 4948 on cpu 1:
 tty_set_termios+0xc0/0x910 drivers/tty/tty_ioctl.c:335
 set_termios+0x373/0x4f0 drivers/tty/tty_ioctl.c:516
 tty_mode_ioctl+0x37f/0x5b0 drivers/tty/tty_ioctl.c:-1
 n_tty_ioctl_helper+0x87/0x370 drivers/tty/tty_ioctl.c:982
 n_tty_ioctl+0x101/0x230 drivers/tty/n_tty.c:2496
 tty_ioctl+0x83e/0xb80 drivers/tty/tty_io.c:2801
 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+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff88811a7e6521 of 1 bytes by task 37 on cpu 0:
 n_tty_is_char_flow_ctrl drivers/tty/n_tty.c:1196 [inline]
 n_tty_receive_char_flow_ctrl drivers/tty/n_tty.c:1217 [inline]
 n_tty_lookahead_flow_ctrl+0x126/0x300 drivers/tty/n_tty.c:1492
 tty_port_default_lookahead_buf+0x91/0xc0 drivers/tty/tty_port.c:59
 lookahead_bufs drivers/tty/tty_buffer.c:428 [inline]
 flush_to_ldisc+0x288/0x340 drivers/tty/tty_buffer.c:498
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0x4cd/0x9d0 kernel/workqueue.c:3340
 worker_thread+0x6bc/0x8b0 kernel/workqueue.c:3421
 kthread+0x488/0x510 kernel/kthread.c:463
 ret_from_fork+0x148/0x280 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

value changed: 0x58 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 37 Comm: kworker/u8:2 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Workqueue: events_unbound flush_to_ldisc
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/01 03:26 upstream ad9a728a3388 6b8752f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios
* Struck through repros no longer work on HEAD.