general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 20390 Comm: syz-executor.3 Not tainted 4.19.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 43 7d 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:ffff88804663fcd8 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff8880af79a100 RCX: ffffffff83c2aecf RDX: 000000000000000c RSI: ffffffff81a653cd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880af79a108 R13: ffff8880af2a8488 R14: ffff8880982181c0 R15: ffff8880a00a9328 FS: 0000000002bb1940(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32822000 CR3: 000000009e59c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 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_release+0xf5/0x440 drivers/tty/tty_ldisc.c:806 tty_release_struct+0x20/0xe0 drivers/tty/tty_io.c:1611 tty_release+0xc70/0x1210 drivers/tty/tty_io.c:1784 __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:0x417b71 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 a4 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffce2abd570 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000417b71 RDX: 0000001b32820000 RSI: 0000000080000000 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00000000000006b4 R09: 00000000d73986b8 R10: 00007ffce2abd650 R11: 0000000000000293 R12: 000000000119ca00 R13: 000000000119ca00 R14: 00000000000003e8 R15: 000000000119bf8c Modules linked in: ---[ end trace 4199ced3d19c944a ]--- 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 43 7d 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:ffff88804663fcd8 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff8880af79a100 RCX: ffffffff83c2aecf RDX: 000000000000000c RSI: ffffffff81a653cd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880af79a108 R13: ffff8880af2a8488 R14: ffff8880982181c0 R15: ffff8880a00a9328 FS: 0000000002bb1940(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000016b9e60 CR3: 000000009e59c000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400