syzbot


kernel BUG in __skb_gso_segment

Status: fixed on 2023/02/02 00:40
Reported-by: syzbot+3d91b8dbbcf515400e92@syzkaller.appspotmail.com
Fix commit: d167ebea9086 net/af_packet: make sure to pull mac header
First crash: 707d, last: 707d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[PATCH 0/2] net/af_packet: Fix kernel BUG in __skb_gso_segment 4 (4) 2023/01/04 12:43
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __skb_gso_segment net C done 11 903d 901d 22/28 fixed on 2023/02/24 13:50
android-54 kernel BUG in __skb_gso_segment C 1 707d 707d 2/2 fixed on 2023/03/29 09:43
android-5-10 kernel BUG in __skb_gso_segment C error 1 707d 707d 2/2 fixed on 2023/05/04 14:51
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/12/15 13:42 8m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y report log
2022/12/15 13:42 16m tudor.ambarus@linaro.org upstream OK log

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/skbuff.h:2456!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 412 Comm: syz-executor220 Not tainted 5.15.78-syzkaller-00911-gc73b4619ad86 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__skb_pull include/linux/skbuff.h:2456 [inline]
RIP: 0010:skb_mac_gso_segment+0x498/0x4a0 net/core/dev.c:3341
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 48 8b 7c 24 10 e8 47 d4 ca fd e9 b7 fe ff ff e8 bd 2b da 00 e8 88 6f 88 fd <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48
RSP: 0018:ffffc900002ff520 EFLAGS: 00010293
RAX: ffffffff83e93008 RBX: 000000000000fcd3 RCX: ffff8881183f93c0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffffc900002ff5e8 R08: ffffffff83e92cb8 R09: ffffffff83e92879
R10: 0000000000000002 R11: ffff8881183f93c0 R12: ffff88810cf7e1b4
R13: 000000000000b9c6 R14: 0000000000000012 R15: 000000000000fccf
FS:  0000555556fc7300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 000000011effd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __skb_gso_segment+0x31b/0x4b0 net/core/dev.c:3419
 skb_gso_segment include/linux/netdevice.h:5007 [inline]
 validate_xmit_skb+0x2eb/0xd20 net/core/dev.c:3678
 __dev_queue_xmit+0xb67/0x1b50 net/core/dev.c:4219
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4261
 packet_snd net/packet/af_packet.c:3025 [inline]
 packet_sendmsg+0x4d93/0x69a0 net/packet/af_packet.c:3056
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 __sys_sendto+0x560/0x720 net/socket.c:2039
 __do_sys_sendto net/socket.c:2051 [inline]
 __se_sys_sendto net/socket.c:2047 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe134757569
Code: 28 c3 e8 4a 15 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeb8fc0108 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007ffeb8fc0128 RCX: 00007fe134757569
RDX: 000000000000fceb RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeb8fc0130
R13: 00007ffeb8fc0150 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0d682b3e69c4c22a ]---
RIP: 0010:__skb_pull include/linux/skbuff.h:2456 [inline]
RIP: 0010:skb_mac_gso_segment+0x498/0x4a0 net/core/dev.c:3341
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 48 8b 7c 24 10 e8 47 d4 ca fd e9 b7 fe ff ff e8 bd 2b da 00 e8 88 6f 88 fd <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48
RSP: 0018:ffffc900002ff520 EFLAGS: 00010293
RAX: ffffffff83e93008 RBX: 000000000000fcd3 RCX: ffff8881183f93c0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffffc900002ff5e8 R08: ffffffff83e92cb8 R09: ffffffff83e92879
R10: 0000000000000002 R11: ffff8881183f93c0 R12: ffff88810cf7e1b4
R13: 000000000000b9c6 R14: 0000000000000012 R15: 000000000000fccf
FS:  0000555556fc7300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 000000011effd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/14 23:10 android13-5.15-lts c73b4619ad86 b18f0a64 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in __skb_gso_segment
* Struck through repros no longer work on HEAD.