================================================================== BUG: KCSAN: data-race in n_tty_receive_buf_common / n_tty_receive_buf_common write to 0xffffc90001d95018 of 8 bytes by task 32706 on cpu 1: add_echo_byte drivers/tty/n_tty.c:846 [inline] echo_char drivers/tty/n_tty.c:949 [inline] n_tty_receive_char_fast drivers/tty/n_tty.c:1449 [inline] n_tty_receive_buf_fast drivers/tty/n_tty.c:1610 [inline] __receive_buf drivers/tty/n_tty.c:1645 [inline] n_tty_receive_buf_common+0x1320/0x1e20 drivers/tty/n_tty.c:1744 n_tty_receive_buf+0x2b/0x40 drivers/tty/n_tty.c:1773 tiocsti drivers/tty/tty_io.c:2211 [inline] tty_ioctl+0x91a/0x10c0 drivers/tty/tty_io.c:2591 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffc90001d95018 of 8 bytes by task 27359 on cpu 0: flush_echoes drivers/tty/n_tty.c:829 [inline] __receive_buf drivers/tty/n_tty.c:1649 [inline] n_tty_receive_buf_common+0x1b87/0x1e20 drivers/tty/n_tty.c:1744 n_tty_receive_buf2+0x2e/0x40 drivers/tty/n_tty.c:1779 tty_ldisc_receive_buf+0x61/0xf0 drivers/tty/tty_buffer.c:461 tty_port_default_receive_buf+0x54/0x80 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x1c5/0x2c0 drivers/tty/tty_buffer.c:533 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x616/0xa70 kernel/workqueue.c:2421 kthread+0x20b/0x230 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 27359 Comm: kworker/u4:7 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc ==================================================================