general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 16816 Comm: syz-executor.5 Not tainted 5.17.0-rc3-syzkaller-00116-gf1baf68e1383 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tls_sk_proto_close+0xd9/0x930 net/tls/tls_main.c:306 Code: 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 5b 57 fc f8 4c 8b 2b 49 8d 5c 24 14 48 89 d8 48 c1 e8 03 48 89 44 24 18 <42> 8a 04 38 84 c0 0f 85 44 07 00 00 48 89 5c 24 10 0f b6 1b 83 e3 RSP: 0018:ffffc90009fe7be0 EFLAGS: 00010203 RAX: 0000000000000002 RBX: 0000000000000014 RCX: ffff88801bb45700 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888023c0f2c0 RBP: ffffc90009fe7cb0 R08: dffffc0000000000 R09: fffffbfff1ffc3d8 R10: fffffbfff1ffc3d8 R11: 0000000000000000 R12: 0000000000000000 R13: 7fffffffffffffff R14: 1ffff11004781f45 R15: dffffc0000000000 FS: 0000555557127400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e122000 CR3: 000000002f566000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tls_sk_proto_close+0x6b1/0x930 net/tls/tls_main.c:329 inet_release+0x16e/0x1f0 net/ipv4/af_inet.c:428 __sock_release net/socket.c:650 [inline] sock_close+0xd8/0x260 net/socket.c:1318 __fput+0x3fc/0x870 fs/file_table.c:313 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f3736daec9b 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:00007ffe2f11eb50 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f3736daec9b RDX: 00007f3736f141d8 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f3736f10960 R08: 0000000000000000 R09: 00007f3736f141e0 R10: 00007ffe2f11ec50 R11: 0000000000000293 R12: 000000000008a935 R13: 00007ffe2f11ec50 R14: 00007f3736f0ef60 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tls_sk_proto_close+0xd9/0x930 net/tls/tls_main.c:306 Code: 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 5b 57 fc f8 4c 8b 2b 49 8d 5c 24 14 48 89 d8 48 c1 e8 03 48 89 44 24 18 <42> 8a 04 38 84 c0 0f 85 44 07 00 00 48 89 5c 24 10 0f b6 1b 83 e3 RSP: 0018:ffffc90009fe7be0 EFLAGS: 00010203 RAX: 0000000000000002 RBX: 0000000000000014 RCX: ffff88801bb45700 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888023c0f2c0 RBP: ffffc90009fe7cb0 R08: dffffc0000000000 R09: fffffbfff1ffc3d8 R10: fffffbfff1ffc3d8 R11: 0000000000000000 R12: 0000000000000000 R13: 7fffffffffffffff R14: 1ffff11004781f45 R15: dffffc0000000000 FS: 0000555557127400(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f07a8dff028 CR3: 000000002f566000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 d8 mov %rbx,%rax 3: 48 c1 e8 03 shr $0x3,%rax 7: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) c: 74 08 je 0x16 e: 48 89 df mov %rbx,%rdi 11: e8 5b 57 fc f8 callq 0xf8fc5771 16: 4c 8b 2b mov (%rbx),%r13 19: 49 8d 5c 24 14 lea 0x14(%r12),%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 18 mov %rax,0x18(%rsp) * 2a: 42 8a 04 38 mov (%rax,%r15,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 44 07 00 00 jne 0x77a 36: 48 89 5c 24 10 mov %rbx,0x10(%rsp) 3b: 0f b6 1b movzbl (%rbx),%ebx 3e: 83 .byte 0x83 3f: e3 .byte 0xe3