================================================================== BUG: KCSAN: data-race in n_tty_write / tty_set_termios read-write to 0xffff888118c66d14 of 4 bytes by task 5945 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+0x365/0x4e0 drivers/tty/tty_ioctl.c:520 tty_mode_ioctl+0x391/0x5d0 n_tty_ioctl_helper+0x8d/0x240 drivers/tty/tty_ioctl.c:986 n_tty_ioctl+0xfd/0x200 drivers/tty/n_tty.c:2521 tty_ioctl+0x886/0xbe0 drivers/tty/tty_io.c:2812 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x1581/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888118c66d14 of 4 bytes by task 5944 on cpu 1: n_tty_write+0xa0/0xb90 drivers/tty/n_tty.c:2366 iterate_tty_write drivers/tty/tty_io.c:1021 [inline] file_tty_write+0x386/0x690 drivers/tty/tty_io.c:1096 tty_write+0x28/0x30 drivers/tty/tty_io.c:1117 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x78f/0x900 fs/read_write.c:590 ksys_write+0xeb/0x1b0 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:652 x64_sys_call+0x27ef/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00008a3b -> 0x0000001f Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 5944 Comm: syz-executor.2 Not tainted 6.10.0-rc4-syzkaller-00330-g7c16f0a4ed1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ==================================================================