syzbot
general protection fault in sk_msg_recvmsg
Status:
upstream: reported C repro on 2026/11/16 17:24
Reported-by: syzbot+041ec49a2ed4269188ce@syzkaller.appspotmail.com
First crash: 3d00h, last: 3d00h
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000054: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000002a0-0x00000000000002a7]
CPU: 0 PID: 913 Comm: syz.2.196 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:kfree_sk_msg include/linux/skmsg.h:376 [inline]
RIP: 0010:sk_msg_recvmsg+0x984/0xbe0 net/core/skmsg.c:482
Code: ad de 48 83 c0 22 49 89 06 48 8b 7d a0 e8 34 d4 dc 00 4c 8d b3 a0 02 00 00 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 be 8c d0 fd 4d 8b 36 4d 85 f6 74 0f
RSP: 0018:ffffc90000ab7688 EFLAGS: 00010202
RAX: 0000000000000054 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff85082b80 RDI: 00000000ffffffff
RBP: ffffc90000ab7770 R08: ffff8881137c5c70 R09: 1ffff110226f8b8e
R10: dffffc0000000000 R11: ffffed10226f8b8f R12: 0000000000000001
R13: 1ffff110229c9c54 R14: 00000000000002a0 R15: ffff8881137c5c00
FS: 00007f1ee13a76c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee13a7d58 CR3: 000000012ce58000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
udp_bpf_recvmsg+0x3da/0xcb0 net/ipv4/udp_bpf.c:85
inet_recvmsg+0x13a/0x470 net/ipv4/af_inet.c:861
____sys_recvmsg+0x2ca/0x5b0 net/socket.c:-1
___sys_recvmsg+0x213/0x5c0 net/socket.c:2697
__sys_recvmsg net/socket.c:2727 [inline]
__do_sys_recvmsg net/socket.c:2737 [inline]
__se_sys_recvmsg net/socket.c:2734 [inline]
__x64_sys_recvmsg+0x1fe/0x2d0 net/socket.c:2734
x64_sys_call+0x705/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:48
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f1ee15724d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1ee13a7028 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f1ee17ef090 RCX: 00007f1ee15724d9
RDX: 0000000000000000 RSI: 0000200000000540 RDI: 0000000000000003
RBP: 00007f1ee160104e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1ee17ef128 R14: 00007f1ee17ef090 R15: 00007ffc151e4608
</TASK>
Modules linked in:
---[ end trace 6a4f85dad06e7cda ]---
RIP: 0010:kfree_sk_msg include/linux/skmsg.h:376 [inline]
RIP: 0010:sk_msg_recvmsg+0x984/0xbe0 net/core/skmsg.c:482
Code: ad de 48 83 c0 22 49 89 06 48 8b 7d a0 e8 34 d4 dc 00 4c 8d b3 a0 02 00 00 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 be 8c d0 fd 4d 8b 36 4d 85 f6 74 0f
RSP: 0018:ffffc90000ab7688 EFLAGS: 00010202
RAX: 0000000000000054 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff85082b80 RDI: 00000000ffffffff
RBP: ffffc90000ab7770 R08: ffff8881137c5c70 R09: 1ffff110226f8b8e
R10: dffffc0000000000 R11: ffffed10226f8b8f R12: 0000000000000001
R13: 1ffff110229c9c54 R14: 00000000000002a0 R15: ffff8881137c5c00
FS: 00007f1ee13a76c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ee13a6ff8 CR3: 000000012ce58000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: ad lods %ds:(%rsi),%eax
1: de 48 83 fimuls -0x7d(%rax)
4: c0 22 49 shlb $0x49,(%rdx)
7: 89 06 mov %eax,(%rsi)
9: 48 8b 7d a0 mov -0x60(%rbp),%rdi
d: e8 34 d4 dc 00 call 0xdcd446
12: 4c 8d b3 a0 02 00 00 lea 0x2a0(%rbx),%r14
19: 4c 89 f0 mov %r14,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 f7 mov %r14,%rdi
33: e8 be 8c d0 fd call 0xfdd08cf6
38: 4d 8b 36 mov (%r14),%r14
3b: 4d 85 f6 test %r14,%r14
3e: 74 0f je 0x4f
* Struck through repros no longer work on HEAD.