================================================================== BUG: KCSAN: data-race in n_tty_receive_buf_common / n_tty_write write to 0xffffc900016c5020 of 8 bytes by task 12453 on cpu 1: process_echoes drivers/tty/n_tty.c:766 [inline] n_tty_write+0x1d6/0xb60 drivers/tty/n_tty.c:2352 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write+0x37e/0x680 drivers/tty/tty_io.c:1081 tty_write+0x25/0x30 drivers/tty/tty_io.c:1102 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x57d/0x9b0 fs/read_write.c:688 ksys_write+0xdc/0x1a0 fs/read_write.c:740 __do_sys_write fs/read_write.c:751 [inline] __se_sys_write fs/read_write.c:748 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:748 x64_sys_call+0x27e1/0x3020 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc900016c5020 of 8 bytes by task 7613 on cpu 0: flush_echoes drivers/tty/n_tty.c:780 [inline] __receive_buf drivers/tty/n_tty.c:1618 [inline] n_tty_receive_buf_common+0x8b2/0xc70 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+0x13a/0x330 drivers/tty/tty_buffer.c:502 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x4d4/0x9a0 kernel/workqueue.c:3397 worker_thread+0x569/0x750 kernel/workqueue.c:3478 kthread+0x221/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 value changed: 0x00000000000021e2 -> 0x00000000000021e4 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 7613 Comm: kworker/u8:11 Tainted: G W syzkaller #0 PREEMPT(lazy) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: events_unbound flush_to_ldisc ==================================================================