binder: 3388:3393 ioctl c0306201 20008fd0 returned -22 binder: 3388:3404 BC_CLEAR_DEATH_NOTIFICATION death notification not active 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: CPU: 0 PID: 3409 Comm: syz-executor1 Not tainted 4.14.77+ #21 task: ffff88019e8aaf00 task.stack: ffff88019daf8000 RIP: 0010:reset_buffer_flags+0x21/0x150 drivers/tty/n_tty.c:323 RSP: 0018:ffff88019daff8e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 00000000000000f1 RDX: 000000000000044c RSI: ffffc9000171a000 RDI: 0000000000002260 RBP: ffff8801a18b8000 R08: 0000000000006751 R09: ffffffff9faf8128 R10: ffff88019e8ab780 R11: 0000000000000001 R12: ffff8801a18b8238 R13: ffff88019daff938 R14: ffff8801c7af8dc0 R15: 000000000000000b FS: 00007f31ecb22700(0000) GS:ffff8801dba00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000072c000 CR3: 00000001ca492001 CR4: 00000000001606b0 DR0: 00000000200001c0 DR1: 00000000200001c0 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: n_tty_flush_buffer+0x49/0xeb drivers/tty/n_tty.c:361 set_termios+0x259/0x440 drivers/tty/tty_ioctl.c:403 tty_mode_ioctl+0x238/0x920 drivers/tty/tty_ioctl.c:744 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:2659 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684 binder: 3427:3428 BC_FREE_BUFFER u0000000000000000 no match binder: 3427:3428 ioctl 4c06 3 returned -22 binder: 3427:3428 BC_FREE_BUFFER u0000000000000000 no match binder: 3427:3428 ioctl 4c06 5 returned -22 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:0x457569 RSP: 002b:00007f31ecb21c78 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: 00007f31ecb226d4 R13: 00000000004c0da4 R14: 00000000004d17d0 R15: 00000000ffffffff Code: 41 ff 5b 5d e9 81 b6 5e ff 90 53 48 89 fb e8 77 b6 5e ff 48 8d bb 60 22 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 0f 01 00 00 48 c7 83 60 22 00 00 00 00 00 00 RIP: reset_buffer_flags+0x21/0x150 drivers/tty/n_tty.c:323 RSP: ffff88019daff8e0 ---[ end trace 1419565ee3096f36 ]---