general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 1 PID: 10751 Comm: syz-executor.2 Not tainted 5.12.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:cdev_del+0x21/0x90 fs/char_dev.c:596 Code: 84 00 00 00 00 00 0f 1f 00 55 41 56 53 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 aa f3 ad ff 48 8d 7b 60 48 89 f8 48 c1 e8 03 <42> 8a 04 30 84 c0 75 33 8b 6b 60 48 8d 7b 64 48 89 f8 48 c1 e8 03 RSP: 0018:ffffc90015ed7c70 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000000000 RCX: ffff88801d0f8000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000060 RBP: 0000000000000008 R08: ffffffff8459da7c R09: fffffbfff1f992d7 R10: fffffbfff1f992d7 R11: 0000000000000000 R12: ffff888013ba0308 R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff11002774061 FS: 00000000022f3400(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30323000 CR3: 000000002165e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tty_unregister_device+0xed/0x170 drivers/tty/tty_io.c:3343 gsmld_detach_gsm drivers/tty/n_gsm.c:2409 [inline] gsmld_close+0xa0/0x1e0 drivers/tty/n_gsm.c:2478 tty_ldisc_kill drivers/tty/tty_ldisc.c:636 [inline] tty_ldisc_release+0x220/0x580 drivers/tty/tty_ldisc.c:809 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1714 tty_release+0xc5f/0xef0 drivers/tty/tty_io.c:1885 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x1e0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x41926b 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:00007fff45165ca0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 000000000041926b RDX: 0000000000000000 RSI: 0000001b303222f8 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000001b3d R10: 00000000c5b29b41 R11: 0000000000000293 R12: 000000000056c9e0 R13: 000000000056c9e0 R14: 000000000056bf60 R15: 0000000000089c72 Modules linked in: ---[ end trace e78cd2caf09b7321 ]--- RIP: 0010:cdev_del+0x21/0x90 fs/char_dev.c:596 Code: 84 00 00 00 00 00 0f 1f 00 55 41 56 53 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 aa f3 ad ff 48 8d 7b 60 48 89 f8 48 c1 e8 03 <42> 8a 04 30 84 c0 75 33 8b 6b 60 48 8d 7b 64 48 89 f8 48 c1 e8 03 RSP: 0018:ffffc90015ed7c70 EFLAGS: 00010206 RAX: 000000000000000c RBX: 0000000000000000 RCX: ffff88801d0f8000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000060 RBP: 0000000000000008 R08: ffffffff8459da7c R09: fffffbfff1f992d7 R10: fffffbfff1f992d7 R11: 0000000000000000 R12: ffff888013ba0308 R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff11002774061 FS: 00000000022f3400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd23360d40 CR3: 000000002165e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400