================================================================== BUG: KCSAN: data-race in __tty_hangup / tty_hung_up_p read to 0xffff8880a8906128 of 8 bytes by task 26016 on cpu 0: tty_hung_up_p+0x2b/0x60 drivers/tty/tty_io.c:748 n_tty_write+0x1a1/0x9f0 drivers/tty/n_tty.c:2327 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 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff8880a8906128 of 8 bytes by task 26010 on cpu 1: __tty_hangup+0x16a/0x460 drivers/tty/tty_io.c:616 tty_vhangup+0x21/0x30 drivers/tty/tty_io.c:698 pty_close+0x25b/0x2d0 drivers/tty/pty.c:79 tty_release+0x285/0x910 drivers/tty/tty_io.c:1683 __fput+0x1e1/0x520 fs/file_table.c:280 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26010 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================