syzbot
general protection fault in sk_msg_free_elem
Status:
upstream: reported C repro on 2026/09/21 04:00
Reported-by: syzbot+aeb1a870090e1d8660a3@syzkaller.appspotmail.com
First crash: 1d06h, last: 21h28m
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: 1 PID: 305 Comm: syz-executor132 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:compound_head include/linux/page-flags.h:188 [inline]
RIP: 0010:put_page include/linux/mm.h:1254 [inline]
RIP: 0010:sk_msg_free_elem+0x183/0x2d0 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 7a 94 ef 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 4f 94 ef fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc90000b87678 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810acc5800 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000004121f RDI: 00000000001fffff
RBP: ffffc90000b876b8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000170e44 R12: ffff88810acc5820
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f0481e176c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0481ed397c CR3: 000000010b6cc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sk_msg_free net/core/skmsg.c:202 [inline]
sk_msg_free+0xf0/0x330 net/core/skmsg.c:220
tcp_bpf_send_verdict+0xdd2/0xf50 net/ipv4/tcp_bpf.c:366
tcp_bpf_sendmsg+0x676/0xa70 net/ipv4/tcp_bpf.c:500
inet_sendmsg+0xa5/0xc0 net/ipv4/af_inet.c:830
sock_sendmsg_nosec net/socket.c:652 [inline]
__sock_sendmsg net/socket.c:664 [inline]
__sys_sendto+0x467/0x620 net/socket.c:2007
__do_sys_sendto net/socket.c:2019 [inline]
__se_sys_sendto net/socket.c:2015 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2015
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0481e583a9
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:00007f0481e17208 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f0481f08b78 RCX: 00007f0481e583a9
RDX: 000000000000000a RSI: 0000200000000840 RDI: 0000000000000003
RBP: 00007f0481f08b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 00007f0481eda378
R13: 0000200000000800 R14: 0000200000000840 R15: 07b4577662b6657b
Modules linked in:
---[ end trace 0f268cfc85d6a30b ]---
RIP: 0010:compound_head include/linux/page-flags.h:188 [inline]
RIP: 0010:put_page include/linux/mm.h:1254 [inline]
RIP: 0010:sk_msg_free_elem+0x183/0x2d0 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 7a 94 ef 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 4f 94 ef fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc90000b87678 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810acc5800 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000004121f RDI: 00000000001fffff
RBP: ffffc90000b876b8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000170e44 R12: ffff88810acc5820
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f0481e176c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0481ea9fe0 CR3: 000000010b6cc000 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 7a 94 ef fd call 0xfdef9487
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 4f 94 ef fd call 0xfdef9487
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.