bisecting fixing commit since afae3cc2da100ead3cd6ef4bb1fb8bc9d4b817c5 building syzkaller on c090b4da255257841173fb4eb18c19d69b293180 testing commit afae3cc2da100ead3cd6ef4bb1fb8bc9d4b817c5 with gcc (GCC) 10.2.1 20210217 kernel signature: 22ca839755a40e9211e8674a5036607211d67268338c3f8bec129d4629342d55 run #0: crashed: general protection fault in reuseport_add_sock run #1: crashed: general protection fault in reuseport_add_sock run #2: crashed: general protection fault in reuseport_add_sock run #3: crashed: general protection fault in reuseport_add_sock run #4: crashed: general protection fault in reuseport_add_sock run #5: crashed: general protection fault in reuseport_add_sock run #6: crashed: general protection fault in reuseport_add_sock run #7: crashed: general protection fault in reuseport_add_sock run #8: crashed: general protection fault in reuseport_add_sock run #9: crashed: general protection fault in reuseport_add_sock run #10: crashed: general protection fault in reuseport_add_sock run #11: crashed: general protection fault in reuseport_add_sock run #12: crashed: general protection fault in reuseport_add_sock run #13: crashed: general protection fault in reuseport_add_sock run #14: crashed: general protection fault in reuseport_add_sock run #15: crashed: general protection fault in reuseport_add_sock run #16: crashed: general protection fault in reuseport_add_sock run #17: crashed: general protection fault in reuseport_add_sock run #18: crashed: KASAN: use-after-free Write in reuseport_alloc run #19: crashed: general protection fault in reuseport_add_sock testing current HEAD 8176f8c0f095c9df44994a33f19b55e7c847df7f testing commit 8176f8c0f095c9df44994a33f19b55e7c847df7f with gcc (GCC) 10.2.1 20210217 kernel signature: facd80e15baeda255d7998a1215034637756930d9f85d5872e7b28be80b6c8a5 run #0: crashed: general protection fault in sctp_bind_addrs_check run #1: crashed: general protection fault in reuseport_add_sock run #2: crashed: general protection fault in reuseport_add_sock run #3: crashed: general protection fault in reuseport_add_sock run #4: crashed: general protection fault in reuseport_add_sock run #5: crashed: general protection fault in reuseport_add_sock run #6: crashed: general protection fault in reuseport_add_sock run #7: crashed: general protection fault in reuseport_add_sock run #8: crashed: general protection fault in reuseport_add_sock run #9: crashed: general protection fault in reuseport_add_sock revisions tested: 2, total time: 25m43.696577843s (build: 10m57.342119181s, test: 14m11.330355484s) the crash still happens on HEAD commit msg: isdn: remove extra spaces in the header file crash: general protection fault in reuseport_add_sock 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: 22518 Comm: syz-executor.2 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:reuseport_add_sock+0x125/0x9c0 net/core/sock_reuseport.c:161 Code: 08 84 d2 0f 85 a6 05 00 00 66 41 83 7f 12 01 0f 85 ac 05 00 00 4c 8d 6d 12 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 57 RSP: 0018:ffffc90003d4fcc8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000002 RSI: ffffffff88aaef60 RDI: ffffffff88fc3400 RBP: 0000000000000000 R08: ffff88803c537b98 R09: 0000000000000003 R10: fffff520007a9f77 R11: 0000000000000000 R12: ffff88803c537700 R13: 0000000000000012 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007ff7eafed700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000518bf0 CR3: 000000002010c000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sctp_hash_endpoint net/sctp/input.c:750 [inline] sctp_hash_endpoint+0x40c/0x500 net/sctp/input.c:778 sctp_listen_start net/sctp/socket.c:8390 [inline] sctp_inet_listen+0x5e8/0x7c0 net/sctp/socket.c:8445 __sys_listen+0x14d/0x200 net/socket.c:1671 __do_sys_listen net/socket.c:1680 [inline] __se_sys_listen net/socket.c:1678 [inline] __x64_sys_listen+0x4b/0x70 net/socket.c:1678 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465a49 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff7eafed188 EFLAGS: 00000246 ORIG_RAX: 0000000000000032 RAX: ffffffffffffffda RBX: 000000000055bf40 RCX: 0000000000465a49 RDX: 0000000000000000 RSI: 0000000000000050 RDI: 0000000000000004 RBP: 00000000004af682 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf40 R13: 00007ffec4fb502f R14: 00007ff7eafed300 R15: 0000000000022000 Modules linked in: ---[ end trace 94208903ec9d59e0 ]--- RIP: 0010:reuseport_add_sock+0x125/0x9c0 net/core/sock_reuseport.c:161 Code: 08 84 d2 0f 85 a6 05 00 00 66 41 83 7f 12 01 0f 85 ac 05 00 00 4c 8d 6d 12 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <0f> b6 14 02 4c 89 e8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 57 RSP: 0018:ffffc90003d4fcc8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000002 RSI: ffffffff88aaef60 RDI: ffffffff88fc3400 RBP: 0000000000000000 R08: ffff88803c537b98 R09: 0000000000000003 R10: fffff520007a9f77 R11: 0000000000000000 R12: ffff88803c537700 R13: 0000000000000012 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007ff7eafed700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000518bf0 CR3: 000000002010c000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400