general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 0 PID: 20293 Comm: syz-executor.1 Not tainted 5.8.0-rc3-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:596 Code: b5 0f 1f 80 00 00 00 00 55 48 89 fd 48 83 ec 08 e8 53 0e b5 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:ffffc90018557c50 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff8880a1eb6500 RCX: ffffffff83e7362f RDX: 000000000000000c RSI: ffffffff81bea8cd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a1eb6508 R13: ffff8880a1fc3008 R14: ffff8880924fb420 R15: ffff8880924fb278 FS: 0000000001d32940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff79f14000 CR3: 00000000a82b2000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_unregister_device drivers/tty/tty_io.c:3193 [inline] tty_unregister_device+0x112/0x1b0 drivers/tty/tty_io.c:3188 gsmld_detach_gsm drivers/tty/n_gsm.c:2411 [inline] gsmld_close+0xaa/0x260 drivers/tty/n_gsm.c:2480 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:489 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:637 tty_ldisc_hangup+0x30b/0x680 drivers/tty/tty_ldisc.c:756 __tty_hangup.part.0+0x403/0x870 drivers/tty/tty_io.c:625 __tty_hangup drivers/tty/tty_io.c:575 [inline] tty_vhangup+0x1d/0x30 drivers/tty/tty_io.c:698 pty_close+0x3f5/0x550 drivers/tty/pty.c:79 tty_release+0x455/0xf60 drivers/tty/tty_io.c:1679 __fput+0x33c/0x880 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:216 [inline] __prepare_exit_to_usermode+0x1e9/0x1f0 arch/x86/entry/common.c:246 do_syscall_64+0x6c/0xe0 arch/x86/entry/common.c:368 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416721 Code: Bad RIP value. RSP: 002b:0000000000c9fbe0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000416721 RDX: 0000000000000000 RSI: 0000000000001946 RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000051df1944 R09: 0000000051df1948 R10: 0000000000c9fcd0 R11: 0000000000000293 R12: 000000000078c900 R13: 000000000078c900 R14: ffffffffffffffff R15: 000000000078bf0c Modules linked in: ---[ end trace 7b2392c3eb92f56e ]--- RIP: 0010:cdev_del+0x22/0x90 fs/char_dev.c:596 Code: b5 0f 1f 80 00 00 00 00 55 48 89 fd 48 83 ec 08 e8 53 0e b5 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:ffffc90018557c50 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffff8880a1eb6500 RCX: ffffffff83e7362f RDX: 000000000000000c RSI: ffffffff81bea8cd RDI: 0000000000000064 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a1eb6508 R13: ffff8880a1fc3008 R14: ffff8880924fb420 R15: ffff8880924fb278 FS: 0000000001d32940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff79f14000 CR3: 00000000a82b2000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400