Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] CPU: 1 UID: 0 PID: 9212 Comm: syz.3.816 Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:sctp_copy_local_addr_list+0x2bc/0x5a0 net/sctp/protocol.c:142 Code: 20 00 0f 85 ac 02 00 00 48 8b 1b 4c 39 fb 0f 84 98 01 00 00 e8 e5 d5 3c f7 48 8d 7b 3d 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 20 38 d0 7f 08 84 c0 0f 85 86 02 00 00 44 0f b6 6b 3d RSP: 0018:ffffc900032f75c0 EFLAGS: 00010206 RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffffc9000cc29000 RDX: 0000000000000005 RSI: ffffffff8a5c796b RDI: 000000000000003d RBP: ffffc900032f76a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888061dbae08 FS: 00007f92728966c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000003af3a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sctp_copy_one_addr net/sctp/bind_addr.c:466 [inline] sctp_bind_addr_copy+0xe0/0x530 net/sctp/bind_addr.c:56 sctp_connect_new_asoc+0x1d8/0x790 net/sctp/socket.c:1095 sctp_sendmsg_new_asoc net/sctp/socket.c:1693 [inline] sctp_sendmsg+0x162a/0x1f10 net/sctp/socket.c:2004 inet_sendmsg+0x119/0x140 net/ipv4/af_inet.c:851 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg net/socket.c:726 [inline] ____sys_sendmsg+0x907/0xb40 net/socket.c:2583 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2637 __sys_sendmmsg+0x201/0x420 net/socket.c:2726 __do_sys_sendmmsg net/socket.c:2753 [inline] __se_sys_sendmmsg net/socket.c:2750 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2750 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9271985d29 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9272896038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f9271b75fa0 RCX: 00007f9271985d29 RDX: 0000000000000005 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007f9271a01aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000311 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9271b75fa0 R15: 00007ffdb4429688 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:sctp_copy_local_addr_list+0x2bc/0x5a0 net/sctp/protocol.c:142 Code: 20 00 0f 85 ac 02 00 00 48 8b 1b 4c 39 fb 0f 84 98 01 00 00 e8 e5 d5 3c f7 48 8d 7b 3d 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 20 38 d0 7f 08 84 c0 0f 85 86 02 00 00 44 0f b6 6b 3d RSP: 0018:ffffc900032f75c0 EFLAGS: 00010206 RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffffc9000cc29000 RDX: 0000000000000005 RSI: ffffffff8a5c796b RDI: 000000000000003d RBP: ffffc900032f76a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888061dbae08 FS: 00007f92728966c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3bffeaf440 CR3: 000000003af3a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 20 00 and %al,(%rax) 2: 0f 85 ac 02 00 00 jne 0x2b4 8: 48 8b 1b mov (%rbx),%rbx b: 4c 39 fb cmp %r15,%rbx e: 0f 84 98 01 00 00 je 0x1ac 14: e8 e5 d5 3c f7 call 0xf73cd5fe 19: 48 8d 7b 3d lea 0x3d(%rbx),%rdi 1d: 48 89 f8 mov %rdi,%rax 20: 48 89 fa mov %rdi,%rdx 23: 48 c1 e8 03 shr $0x3,%rax 27: 83 e2 07 and $0x7,%edx * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 38 d0 cmp %dl,%al 31: 7f 08 jg 0x3b 33: 84 c0 test %al,%al 35: 0f 85 86 02 00 00 jne 0x2c1 3b: 44 0f b6 6b 3d movzbl 0x3d(%rbx),%r13d