R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe3db390bf R14: 00007f13f9994300 R15: 0000000000022000 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: 1 PID: 22635 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:cdev_del+0x22/0x90 fs/char_dev.c:602 Code: cf 0f 1f 80 00 00 00 00 55 48 89 fd 48 83 ec 08 e8 b3 dc be ff 48 8d 7d 64 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 4f 48 RSP: 0018:ffff888091bbfc50 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff888238852e00 RCX: ffffffff83b8674f RDX: 000000000000000c RSI: ffffffff81a3a8bd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff888238852e08 R13: ffff8882388fb6c8 R14: ffff88804f810ee8 R15: ffff8880af279800 FS: 000055555635e400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f422000 CR3: 000000009175d000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000100000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_unregister_device drivers/tty/tty_io.c:3054 [inline] tty_unregister_device+0x112/0x1b0 drivers/tty/tty_io.c:3049 gsmld_detach_gsm drivers/tty/n_gsm.c:2289 [inline] gsmld_close+0xaa/0x1f0 drivers/tty/n_gsm.c:2358 tty_ldisc_close+0xa2/0xd0 drivers/tty/tty_ldisc.c:493 tty_ldisc_kill drivers/tty/tty_ldisc.c:639 [inline] tty_ldisc_hangup+0x2a1/0x700 drivers/tty/tty_ldisc.c:757 __tty_hangup.part.0+0x359/0x780 drivers/tty/tty_io.c:623 __tty_hangup drivers/tty/tty_io.c:573 [inline] tty_vhangup+0x1d/0x30 drivers/tty/tty_io.c:696 pty_close+0x3a1/0x4f0 drivers/tty/pty.c:79 tty_release+0x45e/0x1210 drivers/tty/tty_io.c:1678 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f17e704237b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffe0109e8d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f17e704237b RDX: 0000001b2f920000 RSI: 0000001b2f9228d8 RDI: 0000000000000003 RBP: 00007f17e71b2980 R08: 0000000000000000 R09: 0000000047d6f7bf R10: 0002cf91a4baccaa R11: 0000000000000293 R12: 0000000000148e0f R13: 00007ffe0109e9d0 R14: 00007ffe0109e9f0 R15: 0000000000000032 Modules linked in: FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ---[ end trace 3f2f441adea35c65 ]--- RIP: 0010:cdev_del+0x22/0x90 fs/char_dev.c:602 CPU: 1 PID: 23064 Comm: syz-executor.1 Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node_trace+0x244/0x3b0 mm/slab.c:3666 Code: cf 0f 1f 80 00 00 00 00 55 48 89 fd 48 83 ec 08 e8 b3 dc be ff 48 8d 7d 64 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 4f 48 kmalloc_node include/linux/slab.h:553 [inline] kzalloc_node include/linux/slab.h:720 [inline] __get_vm_area_node+0x128/0x3a0 mm/vmalloc.c:1394 __vmalloc_node_range mm/vmalloc.c:1748 [inline] __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags mm/vmalloc.c:1818 [inline] vzalloc+0xe6/0x1a0 mm/vmalloc.c:1857 n_tty_open+0x16/0x160 drivers/tty/n_tty.c:1912 tty_ldisc_open+0x81/0xc0 drivers/tty/tty_ldisc.c:469 tty_ldisc_failto+0x13b/0x1a0 drivers/tty/tty_ldisc.c:515 tty_ldisc_restore drivers/tty/tty_ldisc.c:532 [inline] tty_set_ldisc+0x4db/0x650 drivers/tty/tty_ldisc.c:598 tiocsetd drivers/tty/tty_io.c:2359 [inline] tty_ioctl+0xb4b/0x1630 drivers/tty/tty_io.c:2603 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f13fb4215a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 0018:ffff888091bbfc50 EFLAGS: 00010207 RSP: 002b:00007f13f9994168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f13fb541f80 RCX: 00007f13fb4215a9 RDX: 0000000020000040 RSI: 0000000000005423 RDI: 0000000000000004 RBP: 00007f13f99941d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe3db390bf R14: 00007f13f9994300 R15: 0000000000022000 RAX: dffffc0000000000 RBX: ffff888238852e00 RCX: ffffffff83b8674f RDX: 000000000000000c RSI: ffffffff81a3a8bd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff888238852e08 R13: ffff8882388fb6c8 R14: ffff88804f810ee8 R15: ffff8880af279800 FS: 000055555635e400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc945ecff8 CR3: 000000009175d000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000100000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: cf iret 1: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 8: 55 push %rbp 9: 48 89 fd mov %rdi,%rbp c: 48 83 ec 08 sub $0x8,%rsp 10: e8 b3 dc be ff callq 0xffbedcc8 15: 48 8d 7d 64 lea 0x64(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 04 jl 0x3f 3b: 84 d2 test %dl,%dl 3d: 75 4f jne 0x8e 3f: 48 rex.W