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 7fb0269720d7d5359bc8349eef908a1c96866b65 testing commit 7fb0269720d7d5359bc8349eef908a1c96866b65 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99a10206e7fed42d7f09156d0bc4e2fcc79aea329e55d16cc6ee5470ac5b0426 all runs: crashed: general protection fault in tls_sk_proto_close revisions tested: 2, total time: 19m43.346819823s (build: 12m23.890878561s, test: 6m44.353496035s) the crash still happens on HEAD commit msg: Merge tag 'for-net-2022-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth 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: 4093 Comm: syz-executor.0 Not tainted 5.18.0-rc7-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:ffffc90002fffc70 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 1ffff920005fff93 RCX: 1ffffffff1e2c74e RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88807d961af8 RBP: 0000000000000014 R08: 0000000000000001 R09: ffffffff8f12799f R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807d961f68 R14: 7fffffffffffffff R15: ffff88807d961800 FS: 00005555560f5400(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f5bf9c028 CR3: 000000006c449000 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 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:294 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f3f5be3badb 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:00007fff75609e90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f3f5be3badb RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007f3f5bf9d960 R08: 0000000000000000 R09: 00007fff75765080 R10: 0000000000000000 R11: 0000000000000293 R12: 00000000000113a7 R13: 00007fff75609f90 R14: 00007f3f5bf9c030 R15: 0000000000000032 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:ffffc90002fffc70 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 1ffff920005fff93 RCX: 1ffffffff1e2c74e RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88807d961af8 RBP: 0000000000000014 R08: 0000000000000001 R09: ffffffff8f12799f R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807d961f68 R14: 7fffffffffffffff R15: ffff88807d961800 FS: 00005555560f5400(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f5bf9c028 CR3: 000000006c449000 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