[Android 5.10] general protection fault in sk_msg_free_elem

5 views
Skip to first unread message

syzbot

unread,
Sep 21, 2026, 12:00:29 AMSep 21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 452567d1985b Revert "HID: input: read battery capacity fro..
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=169b5525580000
kernel config: https://syzkaller.appspot.com/x/.config?x=57bdfa4a173e5087
dashboard link: https://syzkaller.appspot.com/bug?extid=aeb1a870090e1d8660a3
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119b5525580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1708f915580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9268e34b0c5f/disk-452567d1.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7237143009db/vmlinux-452567d1.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2921bc70b2f7/bzImage-452567d1.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+aeb1a8...@syzkaller.appspotmail.com

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: 304 Comm: syz-executor185 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:ffffc9000097f678 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810b9da000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000004121f RDI: 00000000001fffff
RBP: ffffc9000097f6b8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200012fe44 R12: ffff88810b9da020
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f2e1f0286c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e1f027bb0 CR3: 0000000121c6b000 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:0x7f2e1f0693a9
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:00007f2e1f028208 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f2e1f119b78 RCX: 00007f2e1f0693a9
RDX: 000000000000000a RSI: 0000200000000840 RDI: 0000000000000003
RBP: 00007f2e1f119b70 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 00007f2e1f0eb378
R13: 0000200000000800 R14: 0000200000000840 R15: 07b4577662b6657b
Modules linked in:
---[ end trace f250371b7f8fd881 ]---
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:ffffc9000097f678 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88810b9da000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000004121f RDI: 00000000001fffff
RBP: ffffc9000097f6b8 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200012fe44 R12: ffff88810b9da020
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f2e1f0286c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e1f027bb0 CR3: 0000000121c6b000 CR4: 00000000003506a0
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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages