syzbot


WARNING in skb_warn_bad_offload (5)

Status: fixed on 2024/10/03 15:25
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+e15b7e15b8a751a91d9a@syzkaller.appspotmail.com
Fix commit: 30b03f2a0592 udp: Fall back to software USO if IPv6 extension headers are present
First crash: 150d, last: 113d
Cause bisection: introduced by (bisect log) :
commit 10154dbded6d6a2fecaebdfda206609de0f121a9
Author: Jakub Sitnicki <jakub@cloudflare.com>
Date: Wed Jun 26 17:51:26 2024 +0000

  udp: Allow GSO transmit from devices with no checksum offload

Crash: WARNING in skb_warn_bad_offload (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[PATCH net v4 0/3] Don't take HW USO path when packets can't be checksummed by device 3 (3) 2024/08/10 05:10
[PATCH net v3 0/3] Don't take HW USO path when packets can't be checksummed by device 3 (3) 2024/08/08 02:29
[PATCH net v2 0/2] Silence bad offload warning when sending UDP GSO with IPv6 extension headers 9 (9) 2024/08/05 16:11
[PATCH net 0/2] Fix bad offload warning when sending UDP GSO from a tunnel device 6 (6) 2024/07/29 22:10
[syzbot] [net?] WARNING in skb_warn_bad_offload (5) 6 (7) 2024/07/25 09:58
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in skb_warn_bad_offload C inconclusive 81 950d 1811d 0/1 upstream: reported C repro on 2019/12/25 14:39
android-49 WARNING in skb_warn_bad_offload (3) C 2188 1832d 2069d 0/3 public: reported C repro on 2019/04/11 08:44
android-49 WARNING in skb_warn_bad_offload C 442 2589d 2696d 1/3 fixed on 2017/11/07 12:35
android-44 WARNING in skb_warn_bad_offload C 2265 1832d 2069d 0/2 public: reported C repro on 2019/04/12 00:00
upstream WARNING in skb_warn_bad_offload (3) net C done 115 655d 792d 22/28 fixed on 2023/02/24 13:50
upstream WARNING in skb_warn_bad_offload net C 6527 2471d 2595d 5/28 fixed on 2018/04/09 09:36
android-49 WARNING in skb_warn_bad_offload (2) C 2630 2420d 2589d 0/3 closed as invalid on 2018/04/25 20:49
upstream WARNING in skb_warn_bad_offload (4) net C done 1763 417d 445d 25/28 fixed on 2023/12/21 03:45
upstream WARNING in skb_warn_bad_offload (2) net C 6 2417d 2417d 8/28 fixed on 2018/07/09 18:05

Sample crash report:
skb frag:     00000080: 62 3f 77 e4 0e 82 0d 2f 85 cc 44 ea 25 5a 99 76
skb frag:     00000090: f2 53
------------[ cut here ]------------
ip6tnl0: caps=(0x00000006401d7869, 0x00000006401d7869)
WARNING: CPU: 0 PID: 5112 at net/core/dev.c:3293 skb_warn_bad_offload+0x166/0x1a0 net/core/dev.c:3291
Modules linked in:
CPU: 0 PID: 5112 Comm: syz-executor391 Not tainted 6.10.0-rc7-syzkaller-01603-g80ab5445da62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:skb_warn_bad_offload+0x166/0x1a0 net/core/dev.c:3291
Code: e8 5f 94 a3 f8 49 8b 04 24 48 8d 88 a0 03 00 00 48 85 c0 48 0f 44 cd 48 c7 c7 00 cc c5 8c 4c 89 f6 48 89 da e8 fb 92 ff f7 90 <0f> 0b 90 90 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 44 89 f9
RSP: 0018:ffffc900034bedc8 EFLAGS: 00010246
RAX: 7d287cad4185da00 RBX: ffff888040cdc0b8 RCX: ffff888023d1bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffffff8cc5cbc0 R08: ffffffff815857b2 R09: fffffbfff1c39994
R10: dffffc0000000000 R11: fffffbfff1c39994 R12: ffff888022880518
R13: dffffc0000000000 R14: ffff888040cdc130 R15: ffff888040cdc130
FS:  000055556e9e9380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001180 CR3: 000000007c876000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __skb_gso_segment+0x3be/0x4c0 net/core/gso.c:127
 skb_gso_segment include/net/gso.h:83 [inline]
 validate_xmit_skb+0x585/0x1120 net/core/dev.c:3661
 __dev_queue_xmit+0x17a4/0x3e90 net/core/dev.c:4415
 neigh_output include/net/neighbour.h:542 [inline]
 ip6_finish_output2+0xffa/0x1680 net/ipv6/ip6_output.c:137
 ip6_finish_output+0x41e/0x810 net/ipv6/ip6_output.c:222
 ip6_send_skb+0x112/0x230 net/ipv6/ip6_output.c:1958
 udp_v6_send_skb+0xbf5/0x1870 net/ipv6/udp.c:1292
 udpv6_sendmsg+0x23b3/0x3270 net/ipv6/udp.c:1588
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0xef/0x270 net/socket.c:745
 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2585
 ___sys_sendmsg net/socket.c:2639 [inline]
 __sys_sendmmsg+0x3b2/0x740 net/socket.c:2725
 __do_sys_sendmmsg net/socket.c:2754 [inline]
 __se_sys_sendmmsg net/socket.c:2751 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2751
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f04f688fe89
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1a 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffeebc526e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f04f688fe89
RDX: 0000000000000001 RSI: 0000000020003cc0 RDI: 0000000000000003
RBP: 00000000000f4240 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeebc52740
R13: 00007f04f68dd406 R14: 0000000000000003 R15: 00007ffeebc52720
 </TASK>

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/12 18:22 net-next 80ab5445da62 eaeb5c15 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/08/11 13:47 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in skb_warn_bad_offload
2024/08/11 09:35 upstream 5189dafa4cf9 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in skb_warn_bad_offload
2024/08/05 15:42 upstream de9c2c66ad8e d945c1fd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in skb_warn_bad_offload
2024/08/18 07:04 bpf 9d5906799f7d dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_warn_bad_offload
2024/08/06 09:39 net 92c4ee25208d e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_warn_bad_offload
2024/07/20 10:36 bpf 0be9ae5486cd b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_warn_bad_offload
2024/08/10 07:03 bpf-next f63ea3e07562 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_warn_bad_offload
2024/08/01 09:57 net-next 8e0c0ec9b7dc 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/31 12:16 net-next 0a658d088cc6 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/30 19:15 net-next 1722389b0d86 a4e01e1e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/25 06:26 net-next d7e78951a8b8 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/24 18:33 net-next d7e78951a8b8 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/23 23:12 net-next d7e78951a8b8 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/21 15:26 net-next d7e78951a8b8 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/19 17:36 net-next 51835949dda3 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/14 14:38 net-next 852e42cc2dd4 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
2024/07/12 15:35 net-next 80ab5445da62 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_warn_bad_offload
* Struck through repros no longer work on HEAD.