------------[ cut here ]------------ kernel BUG at net/sctp/auth.c:401! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 28267 Comm: syz-executor.5 Not tainted 5.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:sctp_auth_asoc_init_active_key.part.0+0x39b/0x550 net/sctp/auth.c:401 Code: 8b 1b 4c 39 eb 0f 85 d1 fe ff ff 45 31 e4 e8 0c 5e 1d f9 44 89 e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 f5 5d 1d f9 <0f> 0b e8 ee 5d 1d f9 48 8b 44 24 08 48 c1 e8 03 42 80 3c 20 00 0f RSP: 0018:ffffc900177c7c28 EFLAGS: 00010216 RAX: 000000000000011f RBX: ffff8880303609c8 RCX: ffffc90013fa9000 RDX: 0000000000040000 RSI: ffffffff88582c8b RDI: ffff8880303609ea RBP: ffff888030360000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff885852e6 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880303609c8 R15: 0000000000000000 FS: 00007f307af80700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004bfbd0 CR3: 0000000026764000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sctp_auth_asoc_init_active_key net/sctp/auth.c:392 [inline] sctp_auth_set_key+0x631/0x860 net/sctp/auth.c:864 sctp_setsockopt_auth_key net/sctp/socket.c:3643 [inline] sctp_setsockopt+0x4bbc/0xa880 net/sctp/socket.c:4686 __sys_setsockopt+0x2db/0x610 net/socket.c:2169 __do_sys_setsockopt net/socket.c:2180 [inline] __se_sys_setsockopt net/socket.c:2177 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2177 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 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:00007f307af80188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000017 RSI: 0000000000000084 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000009 R09: 0000000000000000 R10: 0000000020000040 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffce709f27f R14: 00007f307af80300 R15: 0000000000022000 Modules linked in: ---[ end trace 4e0304bfd3070eb2 ]--- RIP: 0010:sctp_auth_asoc_init_active_key.part.0+0x39b/0x550 net/sctp/auth.c:401 Code: 8b 1b 4c 39 eb 0f 85 d1 fe ff ff 45 31 e4 e8 0c 5e 1d f9 44 89 e0 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 f5 5d 1d f9 <0f> 0b e8 ee 5d 1d f9 48 8b 44 24 08 48 c1 e8 03 42 80 3c 20 00 0f RSP: 0018:ffffc900177c7c28 EFLAGS: 00010216 RAX: 000000000000011f RBX: ffff8880303609c8 RCX: ffffc90013fa9000 RDX: 0000000000040000 RSI: ffffffff88582c8b RDI: ffff8880303609ea RBP: ffff888030360000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff885852e6 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880303609c8 R15: 0000000000000000 FS: 00007f307af80700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005451f8 CR3: 0000000026764000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400