syzbot
general protection fault in sk_msg_free_elem
Status:
upstream: reported C repro on 2026/10/27 05:57
Reported-by: syzbot+88d9bf8b5e8e2d45e72d@syzkaller.appspotmail.com
First crash: 3d10h, last: 3d02h
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 312 Comm: syz-executor306 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:_compound_head include/linux/page-flags.h:260 [inline]
RIP: 0010:put_page include/linux/mm.h:1486 [inline]
RIP: 0010:sk_msg_free_elem+0x200/0x410 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 2d 5d af fd 48 b9 00 00 00 00 00 fc ff df 4d 8b 2c 24 49 83 e5 fc 4d 8d 7d 08 4c 89 f8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ff e8 02 5d af fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc90000f075e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff888111eb7000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000000021f RDI: 0000000000000fff
RBP: ffffc90000f07630 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001e0e28 R12: ffff888111eb7020
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007fb755eea6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb755faa13c CR3: 0000000121bc0000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__sk_msg_free net/core/skmsg.c:202 [inline]
sk_msg_free+0xf0/0x330 net/core/skmsg.c:220
tcp_bpf_send_verdict+0xe36/0xfb0 net/ipv4/tcp_bpf.c:414
tcp_bpf_sendmsg+0x68b/0xa80 net/ipv4/tcp_bpf.c:548
inet_sendmsg+0xb6/0xd0 net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
__sys_sendto+0x4ac/0x660 net/socket.c:2143
__do_sys_sendto net/socket.c:2155 [inline]
__se_sys_sendto net/socket.c:2151 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2151
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb755f2f099
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 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 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb755eea208 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fb755fe0b78 RCX: 00007fb755f2f099
RDX: 000000000000000a RSI: 0000200000000840 RDI: 0000000000000003
RBP: 00007fb755fe0b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 00007fb755fab028
R13: 0000200000000800 R14: 0000200000000840 R15: 07b4577662b6657b
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:260 [inline]
RIP: 0010:put_page include/linux/mm.h:1486 [inline]
RIP: 0010:sk_msg_free_elem+0x200/0x410 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 2d 5d af fd 48 b9 00 00 00 00 00 fc ff df 4d 8b 2c 24 49 83 e5 fc 4d 8d 7d 08 4c 89 f8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ff e8 02 5d af fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc90000f075e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff888111eb7000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000000021f RDI: 0000000000000fff
RBP: ffffc90000f07630 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001e0e28 R12: ffff888111eb7020
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007fb755eea6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb755faa13c CR3: 0000000121bc0000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 3c 08 cmp $0x8,%al
2: 00 74 12 4c add %dh,0x4c(%rdx,%rdx,1)
6: 89 e7 mov %esp,%edi
8: e8 2d 5d af fd call 0xfdaf5d3a
d: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
14: fc ff df
17: 4d 8b 2c 24 mov (%r12),%r13
1b: 49 83 e5 fc and $0xfffffffffffffffc,%r13
1f: 4d 8d 7d 08 lea 0x8(%r13),%r15
23: 4c 89 f8 mov %r15,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 ff mov %r15,%rdi
33: e8 02 5d af fd call 0xfdaf5d3a
38: 4d 8b 3f mov (%r15),%r15
3b: 44 89 fe mov %r15d,%esi
3e: 83 .byte 0x83
3f: e6 .byte 0xe6
* Struck through repros no longer work on HEAD.