general protection fault, probably for non-canonical address 0xdffffc000000044c: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x0000000000002260-0x0000000000002267] CPU: 1 PID: 995 Comm: kworker/u4:4 Not tainted 5.16.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc RIP: 0010:n_tty_receive_buf_common+0x237/0x81d0 drivers/tty/n_tty.c:1653 Code: 00 48 89 84 24 90 01 00 00 4c 89 f3 4c 89 b4 24 30 01 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 ca ca 3d fd 48 8b 9c 24 88 01 00 RSP: 0018:ffffc90004b57988 EFLAGS: 00010202 RAX: 000000000000044c RBX: 0000000000002260 RCX: ffffffff81654bf0 RDX: ffff88801c3cd700 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff84929e61 R09: ffffed100fcb2651 R10: ffffed100fcb2651 R11: 0000000000000000 R12: ffff88801d09c820 R13: dffffc0000000000 R14: 0000000000002260 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe46a839090 CR3: 0000000075868000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_port_default_receive_buf+0x6a/0x90 drivers/tty/tty_port.c:39 receive_buf drivers/tty/tty_buffer.c:491 [inline] flush_to_ldisc+0x2f2/0x580 drivers/tty/tty_buffer.c:543 process_one_work+0x853/0x1140 kernel/workqueue.c:2298 worker_thread+0xac1/0x1320 kernel/workqueue.c:2445 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Modules linked in: ---[ end trace 41d25228b7de739d ]--- RIP: 0010:n_tty_receive_buf_common+0x237/0x81d0 drivers/tty/n_tty.c:1653 Code: 00 48 89 84 24 90 01 00 00 4c 89 f3 4c 89 b4 24 30 01 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 ca ca 3d fd 48 8b 9c 24 88 01 00 RSP: 0018:ffffc90004b57988 EFLAGS: 00010202 RAX: 000000000000044c RBX: 0000000000002260 RCX: ffffffff81654bf0 RDX: ffff88801c3cd700 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff84929e61 R09: ffffed100fcb2651 R10: ffffed100fcb2651 R11: 0000000000000000 R12: ffff88801d09c820 R13: dffffc0000000000 R14: 0000000000002260 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe46a839090 CR3: 0000000075868000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 48 89 add %cl,-0x77(%rax) 3: 84 24 90 test %ah,(%rax,%rdx,4) 6: 01 00 add %eax,(%rax) 8: 00 4c 89 f3 add %cl,-0xd(%rcx,%rcx,4) c: 4c 89 b4 24 30 01 00 mov %r14,0x130(%rsp) 13: 00 14: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 1b: 00 00 00 1e: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 ca ca 3d fd callq 0xfd3dcb03 39: 48 rex.W 3a: 8b .byte 0x8b 3b: 9c pushfq 3c: 24 88 and $0x88,%al 3e: 01 00 add %eax,(%rax)