================================================================== BUG: KCSAN: data-race in n_tty_check_unthrottle / n_tty_receive_buf_common write to 0xffff8881249f01e8 of 4 bytes by task 3997 on cpu 1: tty_set_flow_change drivers/tty/tty.h:54 [inline] n_tty_check_unthrottle+0xd7/0x1c0 drivers/tty/n_tty.c:290 n_tty_read+0xe95/0x1180 drivers/tty/n_tty.c:2288 iterate_tty_read drivers/tty/tty_io.c:861 [inline] tty_read+0x152/0x460 drivers/tty/tty_io.c:936 do_iter_read+0x4ac/0x7c0 fs/read_write.c:795 vfs_readv fs/read_write.c:915 [inline] do_readv+0x176/0x2b0 fs/read_write.c:952 __do_sys_readv fs/read_write.c:1043 [inline] __se_sys_readv fs/read_write.c:1040 [inline] __x64_sys_readv+0x45/0x50 fs/read_write.c:1040 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff8881249f01e8 of 4 bytes by task 3993 on cpu 0: n_tty_receive_buf_common+0xaf4/0xbd0 n_tty_receive_buf+0x2f/0x40 drivers/tty/n_tty.c:1750 tiocsti+0x177/0x1d0 drivers/tty/tty_io.c:2301 tty_ioctl+0x415/0xbc0 drivers/tty/tty_io.c:2700 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3993 Comm: syz-executor.1 Not tainted 6.5.0-rc4-syzkaller-00227-g024ff300db33 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 ==================================================================