[Android 5.15] kernel BUG in vlan_get_protocol_dgram

5 views
Skip to first unread message

syzbot

unread,
Dec 14, 2024, 7:54:23 AM12/14/24
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6f0de8f8a165 Merge 5.15.173 into android13-5.15-lts
git tree: android13-5.15-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=157364f8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f0e2420ad44d4165
dashboard link: https://syzkaller.appspot.com/bug?extid=ecd67a158bca63112ec4
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15332730580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1601bbe8580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3e7a5d724411/disk-6f0de8f8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2f50dd12a4e4/vmlinux-6f0de8f8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d2907389cab8/bzImage-6f0de8f8.xz

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

skbuff: skb_under_panic: text:ffffffff846e6683 len:65564 put:14 head:ffff88811bda0000 data:ffff88811bd9fff4 tail:0x10010 end:0x1fe80 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:113!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 514 Comm: syz-executor288 Not tainted 5.15.173-syzkaller-00123-g6f0de8f8a165 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:skb_panic net/core/skbuff.c:113 [inline]
RIP: 0010:skb_under_panic+0x14c/0x150 net/core/skbuff.c:123
Code: 80 bb d2 85 48 c7 c6 c8 72 22 86 48 8b 55 c0 8b 4d d4 44 8b 45 d0 4c 8b 4d c8 53 41 55 41 54 41 57 e8 e8 9e fe 00 48 83 c4 20 <0f> 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 41 89 f6 49 89
RSP: 0018:ffffc90000d67690 EFLAGS: 00010286
RAX: 000000000000008f RBX: ffffffff85d2bc00 RCX: 4b6eebed3777ab00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90000d676d0 R08: ffffffff81579fb5 R09: ffffed103ee065e8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000010010
R13: 000000000001fe80 R14: dffffc0000000000 R15: ffff88811bd9fff4
FS: 00007f5e465ca6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5e465cad58 CR3: 000000011fa6a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
skb_push+0xf3/0x120 net/core/skbuff.c:2077
vlan_get_protocol_dgram+0x123/0x220 net/packet/af_packet.c:552
packet_recvmsg+0x5df/0x1cd0 net/packet/af_packet.c:3521
____sys_recvmsg+0x286/0x530
___sys_recvmsg+0x1ec/0x690 net/socket.c:2697
do_recvmmsg+0x36b/0x8b0 net/socket.c:2791
__sys_recvmmsg net/socket.c:2870 [inline]
__do_sys_recvmmsg net/socket.c:2893 [inline]
__se_sys_recvmmsg net/socket.c:2886 [inline]
__x64_sys_recvmmsg+0x195/0x240 net/socket.c:2886
x64_sys_call+0x7e5/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f5e4662afa9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5e465ca168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f5e466b5358 RCX: 00007f5e4662afa9
RDX: 0000000000000001 RSI: 0000000020000480 RDI: 0000000000000003
RBP: 00007f5e466b5350 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010022 R11: 0000000000000246 R12: 00007f5e466b535c
R13: 0000000000000000 R14: 00007ffe594ffd40 R15: 00007ffe594ffe28
</TASK>
Modules linked in:
---[ end trace 8017fb9061f3a453 ]---
RIP: 0010:skb_panic net/core/skbuff.c:113 [inline]
RIP: 0010:skb_under_panic+0x14c/0x150 net/core/skbuff.c:123
Code: 80 bb d2 85 48 c7 c6 c8 72 22 86 48 8b 55 c0 8b 4d d4 44 8b 45 d0 4c 8b 4d c8 53 41 55 41 54 41 57 e8 e8 9e fe 00 48 83 c4 20 <0f> 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 41 89 f6 49 89
RSP: 0018:ffffc90000d67690 EFLAGS: 00010286
RAX: 000000000000008f RBX: ffffffff85d2bc00 RCX: 4b6eebed3777ab00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90000d676d0 R08: ffffffff81579fb5 R09: ffffed103ee065e8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000010010
R13: 000000000001fe80 R14: dffffc0000000000 R15: ffff88811bd9fff4
FS: 00007f5e465ca6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5e46666750 CR3: 000000011fa6a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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

syzbot

unread,
Jan 31, 2025, 10:30:04 PM1/31/25
to syzkaller-a...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit de4f8d477c67ec1d7c28f3486c3e47d147d90a01
Author: Eric Dumazet <edum...@google.com>
Date: Mon Dec 30 16:10:04 2024 +0000

af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14adc518580000
start commit: 6f0de8f8a165 Merge 5.15.173 into android13-5.15-lts
git tree: android13-5.15-lts
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12c0a730580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12a08344580000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: af_packet: fix vlan_get_protocol_dgram() vs MSG_PEEK

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Apr 10, 2025, 6:08:13 PM4/10/25
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages