================================================================== BUG: KCSAN: data-race in n_tty_write / tty_set_termios read-write to 0xffff88813163fd14 of 4 bytes by task 8785 on cpu 0: unset_locked_termios drivers/tty/tty_ioctl.c:217 [inline] tty_set_termios+0x1a2/0x8b0 drivers/tty/tty_ioctl.c:340 set_termios+0x364/0x4f0 drivers/tty/tty_ioctl.c:520 tty_mode_ioctl+0x394/0x5d0 drivers/tty/tty_ioctl.c:-1 n_tty_ioctl_helper+0x8d/0x240 drivers/tty/tty_ioctl.c:986 n_tty_ioctl+0xfd/0x210 drivers/tty/n_tty.c:2509 tty_ioctl+0x878/0xbd0 drivers/tty/tty_io.c:2811 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x168d/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88813163fd14 of 4 bytes by task 8781 on cpu 1: n_tty_write+0xa3/0xb20 drivers/tty/n_tty.c:2354 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x382/0x6a0 drivers/tty/tty_io.c:1090 tty_write+0x28/0x30 drivers/tty/tty_io.c:1111 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x79b/0x950 fs/read_write.c:684 ksys_write+0xeb/0x1b0 fs/read_write.c:736 __do_sys_write fs/read_write.c:747 [inline] __se_sys_write fs/read_write.c:744 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:744 x64_sys_call+0x2a45/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00008a3b -> 0x00000006 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 8781 Comm: syz.9.1724 Not tainted 6.15.0-rc1-syzkaller-00246-g900241a5cc15 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================