RBP: 00007ffc559005e0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000000000 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: 7839 Comm: syz-executor017 Not tainted 4.19.88-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cdev_del+0x28/0xa0 fs/char_dev.c:602 Code: 00 00 55 48 89 e5 41 54 49 89 fc 48 83 ec 08 e8 4e c6 bd ff 49 8d 7c 24 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 55 49 RSP: 0018:ffff88808ec7fb10 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff888219266f00 RCX: ffffffff83a82d06 RDX: 000000000000000c RSI: ffffffff81ad7cf2 RDI: 0000000000000064 RBP: ffff88808ec7fb20 R08: ffff88807e2100c0 R09: ffff88807e210988 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000008 R14: ffff8882192ea948 R15: ffff8880a40b14a8 FS: 0000000001dc9880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000049f6d0 CR3: 00000000999d2000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_unregister_device drivers/tty/tty_io.c:3049 [inline] tty_unregister_device+0x117/0x1b0 drivers/tty/tty_io.c:3044 gsmld_detach_gsm drivers/tty/n_gsm.c:2285 [inline] gsmld_close+0xb2/0x188 drivers/tty/n_gsm.c:2354 tty_ldisc_close.isra.0+0xaf/0xe0 drivers/tty/tty_ldisc.c:486 tty_ldisc_kill+0x4b/0xc0 drivers/tty/tty_ldisc.c:632 tty_ldisc_release+0xc6/0x280 drivers/tty/tty_ldisc.c:799 tty_release_struct+0x1b/0x50 drivers/tty/tty_io.c:1611 tty_release+0xbcb/0xe90 drivers/tty/tty_io.c:1784 __fput+0x2dd/0x8b0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x145/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x994/0x3080 kernel/exit.c:876 do_group_exit+0x135/0x370 kernel/exit.c:979 __do_sys_exit_group kernel/exit.c:990 [inline] __se_sys_exit_group kernel/exit.c:988 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:988 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x43ff18 Code: ff 74 5f 89 d8 4c 8d 4c 24 30 4c 8d 05 79 bf 00 00 f7 d8 b9 00 04 00 00 ba 01 00 00 00 89 44 24 08 48 8d 84 24 30 08 00 00 be <00> 04 00 00 48 89 ef 48 89 04 24 31 c0 e8 46 b0 fc ff e9 58 ff ff RSP: 002b:00007ffc55900588 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ff18 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00000000004bfc50 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006d21a0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 42473496a43055c8 ]--- RIP: 0010:cdev_del+0x28/0xa0 fs/char_dev.c:602 Code: 00 00 55 48 89 e5 41 54 49 89 fc 48 83 ec 08 e8 4e c6 bd ff 49 8d 7c 24 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 55 49 RSP: 0018:ffff88808ec7fb10 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff888219266f00 RCX: ffffffff83a82d06 RDX: 000000000000000c RSI: ffffffff81ad7cf2 RDI: 0000000000000064 RBP: ffff88808ec7fb20 R08: ffff88807e2100c0 R09: ffff88807e210988 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000008 R14: ffff8882192ea948 R15: ffff8880a40b14a8 FS: 0000000001dc9880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000049f6d0 CR3: 00000000999d2000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400