------------[ cut here ]------------ kernel BUG at drivers/tty/tty_ldisc.c:684! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 9106 Comm: syz-executor6 Not tainted 4.16.0+ #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tty_ldisc_reinit+0x236/0x2b0 drivers/tty/tty_ldisc.c:684 RSP: 0018:ffff8801c8fe7660 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8801b1e273c0 RCX: ffffffff83547cb6 RDX: 0000000000040000 RSI: ffffc900070e1000 RDI: 0000000000000286 RBP: ffff8801c8fe7688 R08: 1ffff100391fce8c R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: fffffffffffffff4 R13: ffff8801b1e27820 R14: 0000000000000000 R15: ffff8801d9026450 FS: 00007fbf7e3a6700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b9bc21000 CR3: 00000001d916b002 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_reopen+0x1a3/0x220 drivers/tty/tty_io.c:1272 tty_open_by_driver drivers/tty/tty_io.c:1953 [inline] tty_open+0x877/0xaa0 drivers/tty/tty_io.c:2007 chrdev_open+0x257/0x730 fs/char_dev.c:417 do_dentry_open+0x772/0xd70 fs/open.c:752 vfs_open+0x107/0x220 fs/open.c:866 dentry_open+0x9a/0x1f0 fs/open.c:883 ptm_open_peer+0x20b/0x2f0 drivers/tty/pty.c:639 tty_ioctl+0x517/0x1620 drivers/tty/tty_io.c:2639 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x4552d9 RSP: 002b:00007fbf7e3a5c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbf7e3a66d4 RCX: 00000000004552d9 RDX: 0000000020000000 RSI: 0000000000005441 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016 R13: 00000000000002fa R14: 00000000006f7810 R15: 0000000000000002 Code: 02 00 0f 85 84 00 00 00 48 c7 83 b0 00 00 00 00 00 00 00 e9 0c fe ff ff e8 38 ac 1c fe 45 85 f6 0f 85 f9 fd ff ff e8 2a ac 1c fe <0f> 0b 4c 89 ef e8 d0 98 53 fe e9 43 fe ff ff 4c 89 ef e8 c3 98 RIP: tty_ldisc_reinit+0x236/0x2b0 drivers/tty/tty_ldisc.c:684 RSP: ffff8801c8fe7660 ---[ end trace ac5f62e3207150d9 ]---