syzbot


kernel BUG in __skb_gso_segment

Status: fixed on 2023/05/04 14:51
Reported-by: syzbot+02d69c48ffd9bdd1734a@syzkaller.appspotmail.com
Fix commit: 25dbd87379f8 net/af_packet: make sure to pull mac header
First crash: 526d, last: 526d
Cause bisection: failed (error log, bisect log)
  
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 721d 719d 22/26 fixed on 2023/02/24 13:50
android-5-15 kernel BUG in __skb_gso_segment C error 1 525d 525d 2/2 fixed on 2023/02/02 00:40
android-54 kernel BUG in __skb_gso_segment C 1 526d 526d 2/2 fixed on 2023/03/29 09:43

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/skbuff.h:2343!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 384 Comm: syz-executor393 Not tainted 5.10.158-syzkaller-01202-gd31626cbea61 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__skb_pull include/linux/skbuff.h:2343 [inline]
RIP: 0010:skb_mac_gso_segment+0x498/0x4a0 net/core/dev.c:3345
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 48 8b 7c 24 10 e8 87 29 e2 fd e9 b7 fe ff ff e8 3d 42 ce 00 e8 68 28 a8 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:ffffc900009bf520 EFLAGS: 00010293
RAX: ffffffff83c4f928 RBX: 000000000000fcd3 RCX: ffff8881067f62c0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffffc900009bf5e8 R08: ffffffff83c4f5d8 R09: ffffffff83c4f215
R10: 0000000000000002 R11: ffff8881067f62c0 R12: ffff88810c3d96b4
R13: 000000000000b9c6 R14: 0000000000000012 R15: 000000000000fccf
FS:  0000555555d96300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 00000001047bc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __skb_gso_segment+0x31b/0x4b0 net/core/dev.c:3423
 skb_gso_segment include/linux/netdevice.h:4789 [inline]
 validate_xmit_skb+0x2eb/0xc80 net/core/dev.c:3663
 __dev_queue_xmit+0x1231/0x2a20 net/core/dev.c:4167
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4209
 packet_snd net/packet/af_packet.c:3021 [inline]
 packet_sendmsg+0x4d32/0x6860 net/packet/af_packet.c:3053
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 __sys_sendto+0x541/0x700 net/socket.c:1982
 __do_sys_sendto net/socket.c:1994 [inline]
 __se_sys_sendto net/socket.c:1990 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:1990
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f870df56569
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:00007fff8935f0a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fff8935f0c8 RCX: 00007f870df56569
RDX: 000000000000fceb RSI: 0000000020000080 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8935f0d0
R13: 00007fff8935f0f0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 02963efa2cd58fa2 ]---
RIP: 0010:__skb_pull include/linux/skbuff.h:2343 [inline]
RIP: 0010:skb_mac_gso_segment+0x498/0x4a0 net/core/dev.c:3345
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c c6 fe ff ff 48 8b 7c 24 10 e8 87 29 e2 fd e9 b7 fe ff ff e8 3d 42 ce 00 e8 68 28 a8 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:ffffc900009bf520 EFLAGS: 00010293
RAX: ffffffff83c4f928 RBX: 000000000000fcd3 RCX: ffff8881067f62c0
RDX: 0000000000000000 RSI: 000000000000fcd3 RDI: 000000000000fccf
RBP: ffffc900009bf5e8 R08: ffffffff83c4f5d8 R09: ffffffff83c4f215
R10: 0000000000000002 R11: ffff8881067f62c0 R12: ffff88810c3d96b4
R13: 000000000000b9c6 R14: 0000000000000012 R15: 000000000000fccf
FS:  0000555555d96300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000f000 CR3: 00000001047bc000 CR4: 00000000003506a0
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 22:02 android12-5.10-lts d31626cbea61 b18f0a64 .config strace log report syz C ci2-android-5-10 kernel BUG in __skb_gso_segment
* Struck through repros no longer work on HEAD.