general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 PID: 27995 Comm: syz-executor.2 Not tainted 5.18.0-rc3-syzkaller-00196-g45ab9400e73f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tls_sk_proto_close+0xe9/0x970 net/tls/tls_main.c:306 Code: c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 2f 2d fd f8 4c 8b 2b 48 8b 44 24 30 48 8d 58 14 48 89 d8 48 c1 e8 03 48 89 44 24 38 <42> 8a 04 30 84 c0 0f 85 77 07 00 00 48 89 5c 24 28 0f b6 1b 83 e3 RSP: 0018:ffffc90004617bc0 EFLAGS: 00010203 RAX: 0000000000000002 RBX: 0000000000000014 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88808381e000 RBP: ffffc90004617cb0 R08: ffffffff88d9bd00 R09: fffffbfff1f61e0d R10: fffffbfff1f61e0d R11: 1ffffffff1f61e0c R12: dffffc0000000000 R13: 7fffffffffffffff R14: dffffc0000000000 R15: ffff88801e6b0908 FS: 0000555556303400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e524000 CR3: 000000006817a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tls_sk_proto_close+0x6f2/0x970 net/tls/tls_main.c:329 inet_release+0x184/0x1e0 net/ipv4/af_inet.c:428 __sock_release net/socket.c:650 [inline] sock_close+0xd7/0x260 net/socket.c:1318 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f722de3bd2b 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:00007ffe0ebc1dd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f722de3bd2b RDX: 00007f722dfa2900 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f722df9d960 R08: 0000000000000000 R09: 00007f722dfa2908 R10: 00007ffe0ebc1ed0 R11: 0000000000000293 R12: 00000000001561a8 R13: 00007ffe0ebc1ed0 R14: 00007f722df9bf60 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tls_sk_proto_close+0xe9/0x970 net/tls/tls_main.c:306 Code: c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 2f 2d fd f8 4c 8b 2b 48 8b 44 24 30 48 8d 58 14 48 89 d8 48 c1 e8 03 48 89 44 24 38 <42> 8a 04 30 84 c0 0f 85 77 07 00 00 48 89 5c 24 28 0f b6 1b 83 e3 RSP: 0018:ffffc90004617bc0 EFLAGS: 00010203 RAX: 0000000000000002 RBX: 0000000000000014 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88808381e000 RBP: ffffc90004617cb0 R08: ffffffff88d9bd00 R09: fffffbfff1f61e0d R10: fffffbfff1f61e0d R11: 1ffffffff1f61e0c R12: dffffc0000000000 R13: 7fffffffffffffff R14: dffffc0000000000 R15: ffff88801e6b0908 FS: 0000555556303400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f29859691b8 CR3: 000000006817a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 e8 03 shr $0x3,%eax 3: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 8: 74 08 je 0x12 a: 48 89 df mov %rbx,%rdi d: e8 2f 2d fd f8 callq 0xf8fd2d41 12: 4c 8b 2b mov (%rbx),%r13 15: 48 8b 44 24 30 mov 0x30(%rsp),%rax 1a: 48 8d 58 14 lea 0x14(%rax),%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 38 mov %rax,0x38(%rsp) * 2a: 42 8a 04 30 mov (%rax,%r14,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 77 07 00 00 jne 0x7ad 36: 48 89 5c 24 28 mov %rbx,0x28(%rsp) 3b: 0f b6 1b movzbl (%rbx),%ebx 3e: 83 .byte 0x83 3f: e3 .byte 0xe3