syzbot


general protection fault in skb_segment

Status: auto-obsoleted due to no activity on 2024/04/02 16:56
Reported-by: syzbot+d8934bd490d6cfc2eba2@syzkaller.appspotmail.com
First crash: 187d, last: 173d
Fix bisection: fixed by (bisect log) :
commit 9e0d18f946b2209dffd5bbe213d20bc4b0ca5684
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Dec 19 12:53:31 2023 +0000

  net: check dev->gso_max_size in gso_features_check()

  
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in skb_segment origin:upstream C done 1 173d 187d 0/2 auto-obsoleted due to no activity on 2024/04/03 02:38
linux-4.14 general protection fault in skb_segment 1 710d 710d 0/1 auto-obsoleted due to no activity on 2022/11/02 17:51
upstream general protection fault in skb_segment (3) net C done 2 306d 306d 23/27 fixed on 2023/10/12 12:48
upstream general protection fault in skb_segment sctp C 7 2349d 2359d 4/27 fixed on 2018/01/29 03:39
android-6-1 general protection fault in skb_segment origin:upstream missing-backport C done done 1 94d 185d 0/2 upstream: reported C repro on 2023/12/13 03:03
upstream general protection fault in skb_segment (4) net C error 4 180d 188d 25/27 fixed on 2024/01/22 01:16
upstream general protection fault in skb_segment (2) net 1 1215d 1215d 0/27 auto-closed as invalid on 2021/05/17 11:26
android-54 general protection fault in skb_segment C 1 103d 187d 0/2 auto-obsoleted due to no activity on 2024/06/11 14:46
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/12/24 16:45 10m retest repro android13-5.10-lts report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
CPU: 0 PID: 288 Comm: syz-executor161 Not tainted 5.10.201-syzkaller-00620-g389683767761 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:skb_segment+0x2abb/0x4130 net/core/skbuff.c:3937
Code: 24 20 8b 5c 24 30 e9 8d e0 ff ff e8 0f 77 ab fd 48 8b 44 24 60 4c 8d 70 70 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 ef 08 00 00 41 8b 1e 4c 8b b4 24 a8 00 00
RSP: 0018:ffffc90000b07080 EFLAGS: 00010202
RAX: 000000000000000e RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffff88810ab10e3e RDI: 000000000000ffff
RBP: ffffc90000b072f0 R08: ffffffff83bf0cd3 R09: ffffffff83c3846b
R10: 0000000000000002 R11: ffff88811e8c93c0 R12: 000000000000003e
R13: 0000000000000011 R14: 0000000000000070 R15: ffff88810ab65000
FS:  0000555555a6c380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 000000011eabb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 udp6_ufo_fragment+0x866/0xcd0 net/ipv6/udp_offload.c:107
 ipv6_gso_segment+0x64a/0x1120 net/ipv6/ip6_offload.c:115
 skb_mac_gso_segment+0x27c/0x490 net/core/dev.c:3356
 __skb_gso_segment+0x32d/0x4c0 net/core/dev.c:3429
 skb_gso_segment include/linux/netdevice.h:4808 [inline]
 validate_xmit_skb+0x30a/0xc50 net/core/dev.c:3669
 __dev_queue_xmit+0x1144/0x28e0 net/core/dev.c:4173
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4215
 packet_snd net/packet/af_packet.c:3036 [inline]
 packet_sendmsg+0x4526/0x60a0 net/packet/af_packet.c:3068
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 __sys_sendto+0x545/0x700 net/socket.c:2004
 __do_sys_sendto net/socket.c:2016 [inline]
 __se_sys_sendto net/socket.c:2012 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2012
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f21ad998419
Code: 48 83 c4 28 c3 e8 d7 19 00 00 0f 1f 80 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe76b38628 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f21ad9e5390 RCX: 00007f21ad998419
RDX: 0000000000010048 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000020000540 R09: 0000000000000014
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe76b38680
R13: 00007ffe76b38650 R14: 0000000000000001 R15: 00007ffe76b38680
Modules linked in:
---[ end trace 73b284e4cf1b4834 ]---
RIP: 0010:skb_segment+0x2abb/0x4130 net/core/skbuff.c:3937
Code: 24 20 8b 5c 24 30 e9 8d e0 ff ff e8 0f 77 ab fd 48 8b 44 24 60 4c 8d 70 70 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 ef 08 00 00 41 8b 1e 4c 8b b4 24 a8 00 00
RSP: 0018:ffffc90000b07080 EFLAGS: 00010202
RAX: 000000000000000e RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffff88810ab10e3e RDI: 000000000000ffff
RBP: ffffc90000b072f0 R08: ffffffff83bf0cd3 R09: ffffffff83c3846b
R10: 0000000000000002 R11: ffff88811e8c93c0 R12: 000000000000003e
R13: 0000000000000011 R14: 0000000000000070 R15: ffff88810ab65000
FS:  0000555555a6c380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 000000011eabb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 20                	and    $0x20,%al
   2:	8b 5c 24 30          	mov    0x30(%rsp),%ebx
   6:	e9 8d e0 ff ff       	jmp    0xffffe098
   b:	e8 0f 77 ab fd       	call   0xfdab771f
  10:	48 8b 44 24 60       	mov    0x60(%rsp),%rax
  15:	4c 8d 70 70          	lea    0x70(%rax),%r14
  19:	4c 89 f0             	mov    %r14,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 ef 08 00 00    	jne    0x925
  36:	41 8b 1e             	mov    (%r14),%ebx
  39:	4c                   	rex.WR
  3a:	8b                   	.byte 0x8b
  3b:	b4 24                	mov    $0x24,%ah
  3d:	a8 00                	test   $0x0,%al

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/10 16:42 android13-5.10-lts 389683767761 28b24332 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in skb_segment
* Struck through repros no longer work on HEAD.