================================================================== BUG: KCSAN: data-race in n_tty_write / tty_reopen write to 0xffff88813720d5a8 of 4 bytes by task 3437 on cpu 1: tty_reopen+0x114/0x1c0 drivers/tty/tty_io.c:1376 tty_open_by_driver drivers/tty/tty_io.c:2092 [inline] tty_open+0x8e4/0xb40 drivers/tty/tty_io.c:2146 chrdev_open+0x362/0x3d0 fs/char_dev.c:414 do_dentry_open+0x52c/0x860 fs/open.c:822 vfs_open+0x43/0x50 fs/open.c:957 do_open fs/namei.c:3426 [inline] path_openat+0x17b8/0x1eb0 fs/namei.c:3559 do_filp_open+0x105/0x220 fs/namei.c:3586 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_openat fs/open.c:1244 [inline] __se_sys_openat fs/open.c:1239 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88813720d5a8 of 4 bytes by task 3436 on cpu 0: n_tty_write+0x2e8/0xaf0 drivers/tty/n_tty.c:2282 do_tty_write drivers/tty/tty_io.c:1038 [inline] file_tty_write+0x409/0x660 drivers/tty/tty_io.c:1110 tty_write+0x24/0x30 drivers/tty/tty_io.c:1131 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x7f5/0x950 fs/read_write.c:590 ksys_write+0xd9/0x190 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00000001 -> 0x00000002 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3436 Comm: syz-executor.0 Not tainted 5.16.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================