================================================================== BUG: KCSAN: data-race in __tty_hangup / tty_hung_up_p write to 0xffff8881037e2128 of 8 bytes by task 29430 on cpu 0: __tty_hangup+0x1e2/0x510 drivers/tty/tty_io.c:622 tty_vhangup drivers/tty/tty_io.c:701 [inline] tty_ioctl+0x604/0xbc0 drivers/tty/tty_io.c:2717 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xc9/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 read to 0xffff8881037e2128 of 8 bytes by task 29429 on cpu 1: tty_hung_up_p+0x20/0x40 drivers/tty/tty_io.c:746 n_tty_poll+0x3e5/0x490 drivers/tty/n_tty.c:2437 tty_poll+0x7b/0xf0 drivers/tty/tty_io.c:2207 vfs_poll include/linux/poll.h:88 [inline] do_pollfd fs/select.c:873 [inline] do_poll fs/select.c:921 [inline] do_sys_poll+0x630/0xbe0 fs/select.c:1015 __do_sys_ppoll fs/select.c:1121 [inline] __se_sys_ppoll+0x1af/0x1f0 fs/select.c:1101 __x64_sys_ppoll+0x67/0x80 fs/select.c:1101 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: 0xffffffff857702a8 -> 0xffffffff84e92340 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 29429 Comm: syz-executor.4 Not tainted 6.3.0-rc7-syzkaller-00189-g2caeeb9d4a1b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================