================================================================== BUG: KCSAN: data-race in n_tty_receive_char / n_tty_write write to 0xffffc900039d9028 of 8 bytes by task 22958 on cpu 1: commit_echoes drivers/tty/n_tty.c:742 [inline] n_tty_receive_char+0x437/0x6a0 drivers/tty/n_tty.c:1421 n_tty_receive_buf_standard+0x473/0x2f10 drivers/tty/n_tty.c:1590 __receive_buf drivers/tty/n_tty.c:1624 [inline] n_tty_receive_buf_common+0x805/0xbe0 drivers/tty/n_tty.c:1723 n_tty_receive_buf2+0x33/0x40 drivers/tty/n_tty.c:1769 tty_ldisc_receive_buf+0x63/0xf0 drivers/tty/tty_buffer.c:387 paste_selection+0x333/0x490 drivers/tty/vt/selection.c:446 tioclinux+0x3b5/0x460 drivers/tty/vt/vt.c:3434 vt_ioctl+0x75f/0x1880 drivers/tty/vt/vt_ioctl.c:761 tty_ioctl+0x7de/0xb80 drivers/tty/tty_io.c:2792 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:584 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:584 x64_sys_call+0x1816/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc900039d9028 of 8 bytes by task 22957 on cpu 0: process_echoes drivers/tty/n_tty.c:768 [inline] n_tty_write+0x14f/0xb50 drivers/tty/n_tty.c:2363 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write+0x373/0x690 drivers/tty/tty_io.c:1081 tty_write+0x25/0x30 drivers/tty/tty_io.c:1102 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x527/0x960 fs/read_write.c:686 ksys_write+0xda/0x1a0 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:746 x64_sys_call+0x27fe/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000000001ee -> 0x000000000000023f Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 22957 Comm: syz.6.15741 Tainted: G W 6.17.0-rc1-syzkaller-00038-g0cc53520e68b #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================