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 CPU: 0 PID: 16902 Comm: syz-executor0 Not tainted 4.19.0-rc8+ #72 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:reset_buffer_flags drivers/tty/n_tty.c:321 [inline] RIP: 0010:n_tty_flush_buffer+0x64/0x260 drivers/tty/n_tty.c:359 Code: 80 3c 02 00 0f 85 d0 01 00 00 49 8b 9c 24 70 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 60 22 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9c 01 00 00 48 c7 83 60 22 00 00 00 00 00 00 48 RSP: 0018:ffff8801c6f37780 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 000000000000044c RSI: 0000000000000000 RDI: 0000000000002260 RBP: ffff8801c6f37798 R08: ffff8801b9734af0 R09: 0000000000000002 R10: ffff8801b9734ad0 R11: 2c77dc48a4aa5556 R12: ffff8801ba822980 R13: ffff8801ba822bb8 R14: 0000000000000000 R15: ffff8801c6f377e8 FS: 00007f0847168700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001b13e80 CR3: 00000001d303c000 CR4: 00000000001406f0 Call Trace: set_termios+0x390/0x7d0 drivers/tty/tty_ioctl.c:404 tty_mode_ioctl+0x268/0xb40 drivers/tty/tty_ioctl.c:745 n_tty_ioctl_helper+0x54/0x3b0 drivers/tty/tty_ioctl.c:940 n_tty_ioctl+0x54/0x360 drivers/tty/n_tty.c:2450 tty_ioctl+0x5ad/0x1820 drivers/tty/tty_io.c:2660 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0847167c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000020000000 RSI: 0000000000005404 RDI: 0000000000000005 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f08471686d4 R13: 00000000004c0da4 R14: 00000000004d17d0 R15: 00000000ffffffff Modules linked in: ---[ end trace 37af29c317948c3e ]--- RIP: 0010:reset_buffer_flags drivers/tty/n_tty.c:321 [inline] RIP: 0010:n_tty_flush_buffer+0x64/0x260 drivers/tty/n_tty.c:359 Code: 80 3c 02 00 0f 85 d0 01 00 00 49 8b 9c 24 70 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 60 22 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 9c 01 00 00 48 c7 83 60 22 00 00 00 00 00 00 48 RSP: 0018:ffff8801c6f37780 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 000000000000044c RSI: 0000000000000000 RDI: 0000000000002260 RBP: ffff8801c6f37798 R08: ffff8801b9734af0 R09: 0000000000000002 R10: ffff8801b9734ad0 R11: 2c77dc48a4aa5556 R12: ffff8801ba822980 R13: ffff8801ba822bb8 R14: 0000000000000000 R15: ffff8801c6f377e8 FS: 00007f0847168700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001b13e80 CR3: 00000001d303c000 CR4: 00000000001406f0