================================================================== BUG: KCSAN: data-race in commit_echoes / process_echoes read to 0xffffc90002583028 of 8 bytes by task 7663 on cpu 1: process_echoes+0x3f/0x100 drivers/tty/n_tty.c:806 n_tty_write+0x132/0x9f0 drivers/tty/n_tty.c:2319 do_tty_write drivers/tty/tty_io.c:962 [inline] tty_write+0x2fb/0x4e0 drivers/tty/tty_io.c:1046 __vfs_write+0x67/0xc0 fs/read_write.c:494 __kernel_write+0xb8/0x240 fs/read_write.c:515 write_pipe_buf+0xb6/0xf0 fs/splice.c:809 splice_from_pipe_feed fs/splice.c:512 [inline] __splice_from_pipe+0x295/0x4a0 fs/splice.c:636 splice_from_pipe+0xbb/0x100 fs/splice.c:671 default_file_splice_write+0x45/0x90 fs/splice.c:821 do_splice_from fs/splice.c:863 [inline] direct_splice_actor+0xa0/0xc0 fs/splice.c:1037 splice_direct_to_actor+0x22b/0x540 fs/splice.c:992 do_splice_direct+0x161/0x1e0 fs/splice.c:1080 do_sendfile+0x384/0x7f0 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64 fs/read_write.c:1511 [inline] __x64_sys_sendfile64+0x12a/0x140 fs/read_write.c:1511 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffffc90002583028 of 8 bytes by task 8088 on cpu 0: commit_echoes+0x5c/0x170 drivers/tty/n_tty.c:780 n_tty_receive_char_fast drivers/tty/n_tty.c:1449 [inline] n_tty_receive_buf_fast drivers/tty/n_tty.c:1609 [inline] __receive_buf drivers/tty/n_tty.c:1644 [inline] n_tty_receive_buf_common+0x1741/0x1b00 drivers/tty/n_tty.c:1742 n_tty_receive_buf2+0x3d/0x60 drivers/tty/n_tty.c:1777 tty_ldisc_receive_buf+0x71/0xf0 drivers/tty/tty_buffer.c:461 tty_port_default_receive_buf+0x87/0xd0 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x1d5/0x260 drivers/tty/tty_buffer.c:533 process_one_work+0x3d4/0x890 kernel/workqueue.c:2264 worker_thread+0xa0/0x800 kernel/workqueue.c:2410 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8088 Comm: kworker/u4:3 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc ==================================================================