syzbot


kernel BUG in __skb_gso_segment

Status: fixed on 2023/03/29 09:43
Reported-by: syzbot+175ad8c5fd8cde4ddba2@syzkaller.appspotmail.com
Fix commit: de2ea2a0ad51 net/af_packet: make sure to pull mac header
First crash: 530d, last: 530d
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 726d 724d 22/26 fixed on 2023/02/24 13:50
android-5-15 kernel BUG in __skb_gso_segment C error 1 530d 530d 2/2 fixed on 2023/02/02 00:40
android-5-10 kernel BUG in __skb_gso_segment C error 1 530d 530d 2/2 fixed on 2023/05/04 14:51

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/skbuff.h:2309!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 305 Comm: syz-executor185 Not tainted 5.4.219-syzkaller-00097-ga76dfbc99260 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__skb_pull include/linux/skbuff.h:2309 [inline]
RIP: 0010:skb_mac_gso_segment+0x48a/0x490 net/core/dev.c:2961
Code: 4c 24 08 80 e1 07 80 c1 03 38 c1 0f 8c d3 fe ff ff 48 8b 7c 24 08 e8 55 de 1d fe e9 c4 fe ff ff e8 4b 52 c6 fd e8 16 78 ef fd <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 89 d3
RSP: 0018:ffff8881dcfb7520 EFLAGS: 00010293
RAX: ffffffff8375d30a RBX: 0000000000000012 RCX: ffff8881de590fc0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffff8881dcfb75f0 R08: ffffffff8375cfc0 R09: ffffffff8375cc05
R10: ffff8881de590fc0 R11: 0000000000000002 R12: dffffc0000000000
R13: 000000000000b9c6 R14: 000000000000fccf R15: 000000000000fcd3
FS:  0000555556e8e300(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 00000001dcc57000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __skb_gso_segment+0x303/0x4a0 net/core/dev.c:3039
 skb_gso_segment include/linux/netdevice.h:4469 [inline]
 validate_xmit_skb+0x2eb/0xc80 net/core/dev.c:3279
 __dev_queue_xmit+0x1182/0x2a20 net/core/dev.c:3782
 packet_snd net/packet/af_packet.c:2995 [inline]
 packet_sendmsg+0x4cef/0x67d0 net/packet/af_packet.c:3024
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 __sys_sendto+0x4f1/0x6c0 net/socket.c:1942
 __do_sys_sendto net/socket.c:1954 [inline]
 __se_sys_sendto net/socket.c:1950 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:1950
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 23640b0c0c5386e2 ]---
RIP: 0010:__skb_pull include/linux/skbuff.h:2309 [inline]
RIP: 0010:skb_mac_gso_segment+0x48a/0x490 net/core/dev.c:2961
Code: 4c 24 08 80 e1 07 80 c1 03 38 c1 0f 8c d3 fe ff ff 48 8b 7c 24 08 e8 55 de 1d fe e9 c4 fe ff ff e8 4b 52 c6 fd e8 16 78 ef fd <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 89 d3
RSP: 0018:ffff8881dcfb7520 EFLAGS: 00010293
RAX: ffffffff8375d30a RBX: 0000000000000012 RCX: ffff8881de590fc0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffff8881dcfb75f0 R08: ffffffff8375cfc0 R09: ffffffff8375cc05
R10: ffff8881de590fc0 R11: 0000000000000002 R12: dffffc0000000000
R13: 000000000000b9c6 R14: 000000000000fccf R15: 000000000000fcd3
FS:  0000555556e8e300(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 00000001dcc57000 CR4: 00000000003406f0
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 21:43 android12-5.4 a76dfbc99260 b18f0a64 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in __skb_gso_segment
* Struck through repros no longer work on HEAD.