bisecting fixing commit since 884d2b845477cd0a18302444dc20fe2d9a01743e building syzkaller on 5d14b1ea9683380c2098648a6b86f95eff7729dd testing commit 884d2b845477cd0a18302444dc20fe2d9a01743e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4e6a8acd4bb0fd2254b1816646a4339a8076fd8126c2a76fb3d24b0796eee82a all runs: crashed: general protection fault in tls_sk_proto_close testing current HEAD 37391cc843eb7a302eed289b3ad745863d2af470 testing commit 37391cc843eb7a302eed289b3ad745863d2af470 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ab1c6e0361a98c3d5b5e0e9e0b5ab87a1597910961ac7eeff21606693f018cbf run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe run #1: crashed: general protection fault in tls_sk_proto_close run #2: crashed: general protection fault in tls_sk_proto_close run #3: crashed: general protection fault in tls_sk_proto_close run #4: crashed: general protection fault in tls_sk_proto_close run #5: crashed: general protection fault in tls_sk_proto_close run #6: crashed: general protection fault in tls_sk_proto_close run #7: crashed: general protection fault in tls_sk_proto_close run #8: crashed: general protection fault in tls_sk_proto_close run #9: crashed: general protection fault in tls_sk_proto_close revisions tested: 2, total time: 26m48.776451548s (build: 20m18.429708915s, test: 5m49.423370348s) the crash still happens on HEAD commit msg: Merge branch 'nexthop-route-deletye-warning' crash: general protection fault in tls_sk_proto_close 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: 4165 Comm: syz-executor238 Tainted: G W 5.17.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:tls_sk_proto_close+0xc8/0xa70 net/tls/tls_main.c:306 Code: c1 ea 03 80 3c 02 00 0f 85 60 08 00 00 49 8d 6c 24 14 4d 8b b7 f8 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 <0f> b6 04 02 48 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 32 06 00 00 RSP: 0018:ffffc90004c1f8c8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 1ffff92000983f1e RCX: 1ffffffff194eea9 RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88807cfae2f8 RBP: 0000000000000014 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed100f9f5c13 R11: 0000000000000008 R12: 0000000000000000 R13: ffff88807cfae768 R14: 7fffffffffffffff R15: ffff88807cfae000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7edceb3c68 CR3: 000000000aa8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tls_sk_proto_close+0x2b2/0xa70 net/tls/tls_main.c:329 inet_release+0xef/0x210 net/ipv4/af_inet.c:428 __sock_release+0xbb/0x270 net/socket.c:650 sock_close+0xf/0x20 net/socket.c:1318 __fput+0x1f5/0x8c0 fs/file_table.c:317 task_work_run+0xc0/0x160 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:37 [inline] do_exit+0x986/0x2470 kernel/exit.c:795 do_group_exit+0xb2/0x2a0 kernel/exit.c:925 get_signal+0x1c12/0x1e50 kernel/signal.c:2904 arch_do_signal_or_restart+0x88/0x1a10 arch/x86/kernel/signal.c:867 exit_to_user_mode_loop kernel/entry/common.c:180 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:215 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f7edce5ea49 Code: Unable to access opcode bytes at RIP 0x7f7edce5ea1f. RSP: 002b:00007f7edcdef318 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f7edcee6418 RCX: 00007f7edce5ea49 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f7edcee6418 RBP: 00007f7edcee6410 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7edceb4064 R13: 00007fffe6701a9f R14: 00007f7edcdef400 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tls_sk_proto_close+0xc8/0xa70 net/tls/tls_main.c:306 Code: c1 ea 03 80 3c 02 00 0f 85 60 08 00 00 49 8d 6c 24 14 4d 8b b7 f8 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 <0f> b6 04 02 48 89 ea 83 e2 07 38 d0 7f 08 84 c0 0f 85 32 06 00 00 RSP: 0018:ffffc90004c1f8c8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 1ffff92000983f1e RCX: 1ffffffff194eea9 RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88807cfae2f8 RBP: 0000000000000014 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed100f9f5c13 R11: 0000000000000008 R12: 0000000000000000 R13: ffff88807cfae768 R14: 7fffffffffffffff R15: ffff88807cfae000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7edceb3c68 CR3: 00000000235c8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 60 08 00 00 jne 0x86d d: 49 8d 6c 24 14 lea 0x14(%r12),%rbp 12: 4d 8b b7 f8 02 00 00 mov 0x2f8(%r15),%r14 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 ea mov %rbp,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 ea mov %rbp,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 32 06 00 00 jne 0x672