================================================================== BUG: KCSAN: data-race in n_tty_flush_buffer / n_tty_lookahead_flow_ctrl read-write to 0xffffc90003951270 of 8 bytes by task 8256 on cpu 1: n_tty_lookahead_flow_ctrl+0x48/0x130 drivers/tty/n_tty.c:1507 tty_port_default_lookahead_buf+0x87/0xb0 drivers/tty/tty_port.c:59 lookahead_bufs drivers/tty/tty_buffer.c:427 [inline] flush_to_ldisc+0x30c/0x400 drivers/tty/tty_buffer.c:497 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706 worker_thread+0x525/0x730 kernel/workqueue.c:2787 kthread+0x1d7/0x210 kernel/kthread.c:388 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243 write to 0xffffc90003951270 of 8 bytes by task 20930 on cpu 0: reset_buffer_flags drivers/tty/n_tty.c:328 [inline] n_tty_flush_buffer+0x9f/0x180 drivers/tty/n_tty.c:359 tty_ldisc_hangup+0x6e/0x360 drivers/tty/tty_ldisc.c:693 __tty_hangup+0x3c6/0x530 drivers/tty/tty_io.c:630 tty_vhangup+0x17/0x20 drivers/tty/tty_io.c:700 pty_close+0x262/0x280 drivers/tty/pty.c:79 tty_release+0x204/0x930 drivers/tty/tty_io.c:1760 __fput+0x299/0x630 fs/file_table.c:376 ____fput+0x15/0x20 fs/file_table.c:404 task_work_run+0x135/0x1a0 kernel/task_work.c:180 get_signal+0xf04/0x10a0 kernel/signal.c:2669 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x58/0x120 kernel/entry/common.c:212 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000000000022bf -> 0x00000000000030bf Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 20930 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ==================================================================