kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: pts pts6: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) CPU: 1 PID: 28667 Comm: syz-executor5 Not tainted 4.14.74+ #17 task: ffff88019d011780 task.stack: ffff880199fd8000 RIP: 0010:n_tty_set_termios+0x291/0xcb0 drivers/tty/n_tty.c:1802 RSP: 0018:ffff880199fdf7f8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000181 RDX: 000000000000000b RSI: ffffc90001f7e000 RDI: ffff880199fdf884 RBP: ffff88019a5cb300 R08: 0000000000000001 R09: 0000000000000000 R10: ffff88019d012000 R11: 0000000000000001 R12: ffff88019a5cb6b4 R13: 0000000000000001 R14: 000000000000005d R15: ffff880199fdf878 FS: 00007fea1508a700(0000) GS:ffff8801d7700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff11ddb5270 CR3: 00000001c1a26003 CR4: 00000000001606a0 DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: tty_set_termios+0x5fd/0x860 drivers/tty/tty_ioctl.c:340 set_termios+0x2bf/0x440 drivers/tty/tty_ioctl.c:413 tty_mode_ioctl+0x6ad/0x920 drivers/tty/tty_ioctl.c:776 n_tty_ioctl_helper+0x3f/0x350 drivers/tty/tty_ioctl.c:939 n_tty_ioctl+0x43/0x2e0 drivers/tty/n_tty.c:2452 tty_ioctl+0x551/0x13e0 drivers/tty/tty_io.c:2654 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457579 RSP: 002b:00007fea15089c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579 RDX: 0000000020000040 RSI: 0000000000005408 RDI: 0000000000000007 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fea1508a6d4 R13: 00000000004c0d8f R14: 00000000004d1788 R15: 00000000ffffffff Code: d2 0f 85 14 09 00 00 44 8b ad b4 03 00 00 e8 17 8f 5e ff 4c 89 f2 41 d1 ed 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 41 83 e5 01 <0f> b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 f1 07 00 RIP: n_tty_set_termios+0x291/0xcb0 drivers/tty/n_tty.c:1802 RSP: ffff880199fdf7f8 ---[ end trace 3125e99a33ce3848 ]---