================================================================== BUG: KCSAN: data-race in n_tty_flush_buffer / n_tty_lookahead_flow_ctrl read-write to 0xffffc90002eed270 of 8 bytes by task 368 on cpu 1: n_tty_lookahead_flow_ctrl+0x52/0x2d0 drivers/tty/n_tty.c:1483 tty_port_default_lookahead_buf+0x91/0xc0 drivers/tty/tty_port.c:59 lookahead_bufs drivers/tty/tty_buffer.c:435 [inline] flush_to_ldisc+0x279/0x320 drivers/tty/tty_buffer.c:505 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0x53f/0xa20 kernel/workqueue.c:3578 worker_thread+0x56c/0x770 kernel/workqueue.c:3659 kthread+0x223/0x270 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 write to 0xffffc90002eed270 of 8 bytes by task 19255 on cpu 0: reset_buffer_flags drivers/tty/n_tty.c:322 [inline] n_tty_flush_buffer+0xa8/0x180 drivers/tty/n_tty.c:350 tty_ldisc_hangup+0x77/0x480 drivers/tty/tty_ldisc.c:699 __tty_hangup+0x37e/0x520 drivers/tty/tty_io.c:621 tty_vhangup+0x17/0x20 drivers/tty/tty_io.c:693 pty_close+0x266/0x290 drivers/tty/pty.c:77 tty_release+0x1e7/0xaf0 drivers/tty/tty_io.c:1720 __fput+0x286/0x610 fs/file_table.c:512 ____fput+0x1c/0x30 fs/file_table.c:541 task_work_run+0x133/0x190 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:70 [inline] exit_to_user_mode_loop+0x1e4/0x8c0 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x216/0x380 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000ab3 -> 0x00000000000018b3 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 19255 Comm: syz.2.12303 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================