================================================================== BUG: KCSAN: data-race in n_tty_lookahead_flow_ctrl / tty_set_termios write to 0xffff888148803922 of 1 bytes by task 9745 on cpu 1: unset_locked_termios drivers/tty/tty_ioctl.c:237 [inline] tty_set_termios+0x4d3/0x8a0 drivers/tty/tty_ioctl.c:358 set_termios+0x251/0x280 drivers/tty/tty_ioctl.c:517 tty_mode_ioctl+0x405/0x470 n_tty_ioctl_helper+0x83/0x340 drivers/tty/tty_ioctl.c:980 n_tty_ioctl+0xfc/0x1f0 drivers/tty/n_tty.c:2483 tty_ioctl+0x6e9/0x940 drivers/tty/tty_io.c:2780 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888148803922 of 1 bytes by task 1847 on cpu 0: n_tty_is_char_flow_ctrl drivers/tty/n_tty.c:1230 [inline] n_tty_receive_char_flow_ctrl drivers/tty/n_tty.c:1251 [inline] n_tty_lookahead_flow_ctrl+0x1bd/0x2f0 drivers/tty/n_tty.c:1499 tty_port_default_lookahead_buf+0x81/0xb0 drivers/tty/tty_port.c:61 lookahead_bufs drivers/tty/tty_buffer.c:498 [inline] flush_to_ldisc+0x33e/0x470 drivers/tty/tty_buffer.c:568 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 value changed: 0x13 -> 0x7a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1847 Comm: kworker/u4:6 Not tainted 6.1.0-rc7-syzkaller-00012-gca57f02295f1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound flush_to_ldisc ==================================================================