================================================================== BUG: KCSAN: data-race in n_tty_write / tty_set_termios write to 0xffff8881008a8d14 of 4 bytes by task 1039 on cpu 1: unset_locked_termios drivers/tty/tty_ioctl.c:233 [inline] tty_set_termios+0x1d3/0x8b0 drivers/tty/tty_ioctl.c:355 set_termios+0x384/0x3c0 drivers/tty/tty_ioctl.c:438 tty_mode_ioctl+0x5ad/0x6a0 n_tty_ioctl_helper+0x89/0x4c0 drivers/tty/tty_ioctl.c:907 n_tty_ioctl+0x102/0x200 drivers/tty/n_tty.c:2421 tty_ioctl+0xaf9/0x11a0 drivers/tty/tty_io.c:2814 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881008a8d14 of 4 bytes by task 5897 on cpu 0: n_tty_write+0x87/0xaf0 drivers/tty/n_tty.c:2265 do_tty_write drivers/tty/tty_io.c:1038 [inline] file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1110 tty_write+0x24/0x30 drivers/tty/tty_io.c:1131 call_write_iter include/linux/fs.h:2163 [inline] do_iter_readv_writev+0x2de/0x380 fs/read_write.c:729 do_iter_write+0x192/0x5c0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x210/0x440 fs/read_write.c:971 __do_sys_writev fs/read_write.c:1044 [inline] __se_sys_writev fs/read_write.c:1041 [inline] __x64_sys_writev+0x41/0x50 fs/read_write.c:1041 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00008201 -> 0x00008a3b Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5897 Comm: syz-executor.5 Not tainted 5.15.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================