================================================================== BUG: KCSAN: data-race in n_tty_write / tty_set_termios write to 0xffff888135294114 of 4 bytes by task 24961 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+0x5a1/0x690 n_tty_ioctl_helper+0x83/0x450 drivers/tty/tty_ioctl.c:903 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2383 tty_ioctl+0xaf7/0x1130 drivers/tty/tty_io.c:2787 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/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888135294114 of 4 bytes by task 24947 on cpu 0: n_tty_write+0x87/0xaf0 drivers/tty/n_tty.c:2227 do_tty_write drivers/tty/tty_io.c:1024 [inline] file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1095 tty_write+0x24/0x30 drivers/tty/tty_io.c:1116 call_write_iter include/linux/fs.h:2074 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x7f5/0x950 fs/read_write.c:590 ksys_write+0xd9/0x190 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+0x3e/0x50 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00008a3b -> 0xfffffffe Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 24947 Comm: syz-executor.5 Not tainted 5.17.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================