================================================================== BUG: KCSAN: data-race in n_tty_write / tty_set_termios write to 0xffff888119026508 of 44 bytes by task 28829 on cpu 1: tty_set_termios+0xc0/0x8c0 drivers/tty/tty_ioctl.c:335 set_termios+0x35b/0x4e0 drivers/tty/tty_ioctl.c:516 tty_mode_ioctl+0x379/0x5c0 drivers/tty/tty_ioctl.c:-1 n_tty_ioctl_helper+0x91/0x210 drivers/tty/tty_ioctl.c:982 n_tty_ioctl+0x101/0x200 drivers/tty/n_tty.c:2509 tty_ioctl+0x845/0xb80 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xce/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 0xffff888119026514 of 4 bytes by task 28828 on cpu 0: n_tty_write+0x9f/0xb50 drivers/tty/n_tty.c:2354 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write+0x370/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+0x52a/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: 0x00008a3b -> 0x00000760 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 28828 Comm: syz.2.7490 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================