syzbot


KCSAN: data-race in n_tty_flush_buffer / n_tty_poll (2)

Status: moderation: reported on 2026/01/16 01:45
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+4530758e86e7cf7b73ae@syzkaller.appspotmail.com
First crash: 49d, last: 5d21h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
e18f6be9-df08-43e8-891f-62b8295ed117 assessment-kcsan Benign: ✅  Confident: ✅  KCSAN: data-race in n_tty_flush_buffer / n_tty_poll (2) 2026/01/16 01:44 2026/01/16 01:44 2026/01/16 01:48 a9d6a79219801d2130df3b1a792c57f0e5428e9f
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in n_tty_flush_buffer / n_tty_poll serial 6 3 107d 189d 0/29 auto-obsoleted due to no activity on 2026/01/13 13:06

Sample crash report:
==================================================================
BUG: KCSAN: data-race in n_tty_flush_buffer / n_tty_poll

read to 0xffffc900107e5260 of 8 bytes by task 4019 on cpu 1:
 input_available_p drivers/tty/n_tty.c:1913 [inline]
 n_tty_poll+0x2a8/0x450 drivers/tty/n_tty.c:2444
 tty_poll+0x79/0xf0 drivers/tty/tty_io.c:2199
 vfs_poll include/linux/poll.h:82 [inline]
 do_pollfd fs/select.c:866 [inline]
 do_poll fs/select.c:909 [inline]
 do_sys_poll+0x698/0xc10 fs/select.c:1004
 __do_sys_poll fs/select.c:1066 [inline]
 __se_sys_poll fs/select.c:1054 [inline]
 __x64_sys_poll+0x12c/0x230 fs/select.c:1054
 x64_sys_call+0x2891/0x3020 arch/x86/include/generated/asm/syscalls_64.h:8
 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

write to 0xffffc900107e5260 of 16 bytes by task 4011 on cpu 0:
 reset_buffer_flags drivers/tty/n_tty.c:316 [inline]
 n_tty_flush_buffer+0x61/0x1d0 drivers/tty/n_tty.c:350
 tty_ldisc_hangup+0x77/0x480 drivers/tty/tty_ldisc.c:699
 __tty_hangup+0x3c2/0x540 drivers/tty/tty_io.c:621
 tty_vhangup+0x17/0x20 drivers/tty/tty_io.c:691
 pty_close+0x2c5/0x2f0 drivers/tty/pty.c:77
 tty_release+0x1ff/0xb10 drivers/tty/tty_io.c:1745
 __fput+0x29b/0x650 fs/file_table.c:469
 ____fput+0x1c/0x30 fs/file_table.c:497
 task_work_run+0x130/0x1a0 kernel/task_work.c:233
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 __exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
 exit_to_user_mode_loop+0x1f4/0x6f0 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline]
 do_syscall_64+0x249/0x370 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 4011 Comm: syz.0.221 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/28 08:40 upstream 4d349ee5c778 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_flush_buffer / n_tty_poll
2026/01/16 01:44 upstream 603c05a1639f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in n_tty_flush_buffer / n_tty_poll
* Struck through repros no longer work on HEAD.