syzbot


general protection fault in skb_clone

Status: upstream: reported C repro on 2021/12/12 07:38
Reported-by: syzbot+d773ea50fff14413786d@syzkaller.appspotmail.com
First crash: 854d, last: 545d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in skb_clone C 1 412d 546d 0/1 upstream: reported C repro on 2022/10/17 02:33
upstream general protection fault in skb_clone syz 3 2433d 2433d 3/26 fixed on 2017/10/24 19:00
upstream BUG: unable to handle kernel paging request in skb_clone net 2 975d 1020d 0/26 closed as invalid on 2021/10/04 21:36
upstream general protection fault in skb_clone (3) net 44 1418d 1420d 15/26 fixed on 2020/07/17 17:58
upstream general protection fault in skb_clone (4) net C unreliable 41 558d 855d 0/26 closed as invalid on 2022/10/12 18:15
upstream general protection fault in skb_clone (2) hams 1 1601d 1598d 0/26 auto-closed as invalid on 2020/03/25 12:28
upstream general protection fault in skb_clone (5) net C done 7 531d 548d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
RBP: 00007ffe28490ab0 R08: 0000000000000000 R09: 0000000000000001
R10: 00007ffe28490827 R11: 0000000000000246 R12: 0000000000000003
R13: 00007ffe28490af0 R14: 00007ffe28490ad0 R15: 0000000000000003
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8330 Comm: syz-executor428 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:skb_clone+0xe9/0x3d0 net/core/skbuff.c:1285
Code: e8 bc 85 f1 fa 84 db 0f 85 f4 00 00 00 e8 7f 84 f1 fa 4c 8d bd 8e 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <0f> b6 04 02 4c 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 7a 02 00 00
RSP: 0018:ffff8880952175b8 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff8880b31713d0 RCX: 0000000000000000
RDX: 0000000000000011 RSI: ffffffff867100f1 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b51765a0
R13: 0000000000480020 R14: ffff8880b5176580 R15: 000000000000008e
FS:  0000555555aa8300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f19026a04 CR3: 00000000aae62000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 frame_get_stripped_skb net/hsr/hsr_forward.c:127 [inline]
 hsr_forward_do net/hsr/hsr_forward.c:285 [inline]
 hsr_forward_skb+0xf54/0x1c30 net/hsr/hsr_forward.c:373
 hsr_handle_frame+0x33b/0x640 net/hsr/hsr_slave.c:50
 __netif_receive_skb_core+0x929/0x3270 net/core/dev.c:4876
 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:4952
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
 netif_receive_skb_internal+0xf0/0x3f0 net/core/dev.c:5156
 tun_rx_batched.isra.0+0x472/0x740 drivers/net/tun.c:1543
 tun_get_user+0x2ee5/0x5100 drivers/net/tun.c:1974
 tun_chr_write_iter+0xdb/0x1d0 drivers/net/tun.c:2007
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0f18f891d3
Code: ff ff bf 01 00 00 00 e8 ab 6f 00 00 66 2e 0f 1f 84 00 00 00 00 00 90 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18
RSP: 002b:00007ffe28490a88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f0f18f891d3
RDX: 0000000000000036 RSI: 0000000020000640 RDI: 00000000000000c8
RBP: 00007ffe28490ab0 R08: 0000000000000000 R09: 0000000000000001
R10: 00007ffe28490827 R11: 0000000000000246 R12: 0000000000000003
R13: 00007ffe28490af0 R14: 00007ffe28490ad0 R15: 0000000000000003
Modules linked in:
---[ end trace 6eaf66040c024d61 ]---
RIP: 0010:skb_clone+0xe9/0x3d0 net/core/skbuff.c:1285
Code: e8 bc 85 f1 fa 84 db 0f 85 f4 00 00 00 e8 7f 84 f1 fa 4c 8d bd 8e 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 <0f> b6 04 02 4c 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 7a 02 00 00
RSP: 0018:ffff8880952175b8 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff8880b31713d0 RCX: 0000000000000000
RDX: 0000000000000011 RSI: ffffffff867100f1 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b51765a0
R13: 0000000000480020 R14: ffff8880b5176580 R15: 000000000000008e
FS:  0000555555aa8300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f19026a04 CR3: 00000000aae62000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 bc 85 f1 fa       	callq  0xfaf185c1
   5:	84 db                	test   %bl,%bl
   7:	0f 85 f4 00 00 00    	jne    0x101
   d:	e8 7f 84 f1 fa       	callq  0xfaf18491
  12:	4c 8d bd 8e 00 00 00 	lea    0x8e(%rbp),%r15
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 fa             	mov    %r15,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	4c 89 fa             	mov    %r15,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 7a 02 00 00    	jne    0x2ba

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/17 11:47 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in skb_clone
2021/12/12 07:37 linux-4.19.y 3f8a27f9e27b 49ca1f59 .config console log report syz C ci2-linux-4-19 general protection fault in skb_clone
* Struck through repros no longer work on HEAD.