syzbot


kernel BUG at include/linux/skbuff.h:LINE!

Status: fixed on 2018/10/31 02:03
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: bab2c80e5a6c nsh: set mac len based on inner packet
First crash: 1445d, last: 1437d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 kernel BUG at include/linux/skbuff.h:LINE! C 3 1582d 1586d 0/2 closed as invalid on 2019/04/03 06:33
linux-4.14 kernel BUG at include/linux/skbuff.h:LINE! C 59 9d12h 539d 0/1 upstream: reported C repro on 2021/01/06 05:53
upstream kernel BUG in __skb_gso_segment C done 11 27d 25d 21/22 upstream: reported C repro on 2022/06/04 01:02
upstream kernel BUG at include/linux/skbuff.h:LINE! (2) C done 58 1038d 1048d 14/22 fixed on 2019/10/15 23:40

Sample crash report:
------------[ cut here ]------------
kernel BUG at include/linux/skbuff.h:2085!
invalid opcode: 0000 [#1] SMP KASAN
CPU: 0 PID: 25010 Comm: syz-executor5 Not tainted 4.18.0-rc3+ #58
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__skb_pull include/linux/skbuff.h:2085 [inline]
RIP: 0010:skb_mac_gso_segment+0x64e/0x740 net/core/dev.c:2960
Code: 00 48 c7 c7 60 8b 6d 88 c6 05 f5 0a a1 03 01 e8 83 83 66 fb e9 3f fc ff ff 48 c7 c3 ea ff ff ff e9 d7 fe ff ff e8 32 4c 83 fb <0f> 0b 48 89 df e8 98 75 c1 fb e9 f5 fc ff ff 48 8b bd c8 fe ff ff 
RSP: 0018:ffff88019aa1e860 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 000000000000ffdc RCX: ffffc90004c23000
RDX: 00000000000017ec RSI: ffffffff85f8bf9e RDI: 0000000000000004
RBP: ffff88019aa1e9a0 R08: ffff8801c0172740 R09: ffffed0035932a55
R10: ffffed0035932a58 R11: ffff8801ac9952c3 R12: 00000000000001a2
R13: 000000000001017e R14: 0000000000004788 R15: 0000000000004788
FS:  00007fdc57898700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b333206d8 CR3: 00000001c8b86000 CR4: 00000000001406f0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000020000000
DR3: 0000000020000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 nsh_gso_segment+0x470/0xb40 net/nsh/nsh.c:111
 skb_mac_gso_segment+0x3b5/0x740 net/core/dev.c:2965
 __skb_gso_segment+0x3c3/0x880 net/core/dev.c:3038
 skb_gso_segment include/linux/netdevice.h:4227 [inline]
 validate_xmit_skb+0x640/0xf30 net/core/dev.c:3277
 validate_xmit_skb_list+0xbf/0x120 net/core/dev.c:3327
 sch_direct_xmit+0x30e/0x1140 net/sched/sch_generic.c:312
 qdisc_restart net/sched/sch_generic.c:390 [inline]
 __qdisc_run+0x619/0x19f0 net/sched/sch_generic.c:398
 qdisc_run include/net/pkt_sched.h:120 [inline]
 __dev_xmit_skb net/core/dev.c:3402 [inline]
 __dev_queue_xmit+0x1419/0x3790 net/core/dev.c:3761
 dev_queue_xmit+0x17/0x20 net/core/dev.c:3826
 packet_snd net/packet/af_packet.c:2923 [inline]
 packet_sendmsg+0x4404/0x6300 net/packet/af_packet.c:2948
 sock_sendmsg_nosec net/socket.c:641 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:651
 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2125
 __sys_sendmsg+0x11d/0x290 net/socket.c:2163
 __do_sys_sendmsg net/socket.c:2172 [inline]
 __se_sys_sendmsg net/socket.c:2170 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2170
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455ab9
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fdc57897c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fdc578986d4 RCX: 0000000000455ab9
RDX: 0000000000000000 RSI: 0000000020000480 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c1066 R14: 00000000004d16c8 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
---------------------------------
  <idle>-0       0.Ns6 174551019us : 0: }D
  <idle>-0       0.Ns6 174551161us : 0: }D
  <idle>-0       0.Ns6 174551271us : 0: }D
  <idle>-0       0.Ns6 174551378us : 0: }D
ksoftirq-9       0..s2 174551489us : 0: }D
ksoftirq-9       0..s2 174551550us : 0: }D
ksoftirq-9       0..s2 174551582us : 0: }D
ksoftirq-9       0..s2 174551607us : 0: }D
syz-exec-20365   0...3 174551906us : 0: }D
---------------------------------
---[ end trace bfcf13466570019a ]---
RIP: 0010:__skb_pull include/linux/skbuff.h:2085 [inline]
RIP: 0010:skb_mac_gso_segment+0x64e/0x740 net/core/dev.c:2960
Code: 00 48 c7 c7 60 8b 6d 88 c6 05 f5 0a a1 03 01 e8 83 83 66 fb e9 3f fc ff ff 48 c7 c3 ea ff ff ff e9 d7 fe ff ff e8 32 4c 83 fb <0f> 0b 48 89 df e8 98 75 c1 fb e9 f5 fc ff ff 48 8b bd c8 fe ff ff 
RSP: 0018:ffff88019aa1e860 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 000000000000ffdc RCX: ffffc90004c23000
RDX: 00000000000017ec RSI: ffffffff85f8bf9e RDI: 0000000000000004
RBP: ffff88019aa1e9a0 R08: ffff8801c0172740 R09: ffffed0035932a55
R10: ffffed0035932a58 R11: ffff8801ac9952c3 R12: 00000000000001a2
R13: 000000000001017e R14: 0000000000004788 R15: 0000000000004788
FS:  00007fdc57898700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b333206d8 CR3: 00000001c8b86000 CR4: 00000000001406f0
DR0: 0000000020000000 DR1: 0000000020000000 DR2: 0000000020000000
DR3: 0000000020000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-next-kasan-gce 2018/07/23 05:34 bpf-next 8ae71e76cf1f 8cc079c3 .config log report
ci-upstream-bpf-next-kasan-gce 2018/07/18 01:52 bpf-next dc989d2ce2c2 6d5bd5b5 .config log report
ci-upstream-bpf-next-kasan-gce 2018/07/15 00:13 bpf-next 2d3feca8c44f 92a49505 .config log report