syzbot


general protection fault in skb_release_data (2)

Status: upstream: reported C repro on 2020/09/09 09:58
Reported-by: syzbot+ccfa5775bc1bda21ddd1@syzkaller.appspotmail.com
First crash: 750d, last: 3d00h

Cause bisection: introduced by (bisect log) [merge commit]:
commit 6b25e21fa6f26d0f0d45f161d169029411c84286
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Oct 12 01:12:22 2016 +0000

  Merge tag 'drm-for-v4.9' of git://people.freedesktop.org/~airlied/linux

Crash: WARNING in nf_unregister_net_hook (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in skb_release_data C error 2 748d 751d 0/1 upstream: reported C repro on 2020/09/07 04:13
android-49 general protection fault in skb_release_data 1 1872d 1872d 1/3 fixed on 2017/10/23 20:15
linux-4.14 general protection fault in skb_release_data C 1 12d 749d 0/1 upstream: reported C repro on 2020/09/08 19:28
upstream general protection fault in skb_release_data syz 198 1868d 1869d 3/24 fixed on 2017/10/24 06:54
upstream KMSAN: uninit-value in skb_release_data (3) C 10 70d 749d 0/24 upstream: reported C repro on 2020/09/09 09:58
upstream KASAN: use-after-free Write in skb_release_data (2) C done unreliable 875 384d 1444d 0/24 upstream: reported C repro on 2018/10/15 06:30
linux-4.19 KASAN: use-after-free Write in skb_release_data (2) 3 514d 590d 0/1 auto-closed as invalid on 2021/08/30 12:28

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 3611 Comm: syz-executor235 Not tainted 5.19.0-rc6-syzkaller-00269-g9bd572ec7a66 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:_compound_head include/linux/page-flags.h:272 [inline]
RIP: 0010:put_page include/linux/mm.h:1225 [inline]
RIP: 0010:__skb_frag_unref include/linux/skbuff.h:3487 [inline]
RIP: 0010:skb_release_data+0x43a/0x810 net/core/skbuff.c:672
Code: e8 0b 3d 15 00 31 ff 41 89 c7 89 c6 e8 ff 09 2d fa 45 84 ff 0f 85 4f ff ff ff e8 f1 0d 2d fa 48 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 ee 02 00 00 48 8b 45 08 31 ff 49 89 c7 48 89
RSP: 0018:ffffc9000304f688 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff888075a768c0 RCX: 0000000000000000
RDX: ffff888024ea0000 RSI: ffffffff874d5e2f RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8881482bb0f0
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fd1ded89700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560a2a1264e8 CR3: 000000001ce11000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 skb_release_all net/core/skbuff.c:742 [inline]
 __kfree_skb net/core/skbuff.c:756 [inline]
 kfree_skb_reason.part.0+0xe2/0x320 net/core/skbuff.c:778
 kfree_skb_reason include/linux/refcount.h:279 [inline]
 kfree_skb_list_reason+0xab/0x160 net/core/skbuff.c:788
 __dev_xmit_skb net/core/dev.c:3886 [inline]
 __dev_queue_xmit+0x2250/0x3900 net/core/dev.c:4221
 packet_snd net/packet/af_packet.c:3073 [inline]
 packet_sendmsg+0x21cb/0x5550 net/packet/af_packet.c:3104
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2488
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2542
 __sys_sendmsg net/socket.c:2571 [inline]
 __do_sys_sendmsg net/socket.c:2580 [inline]
 __se_sys_sendmsg net/socket.c:2578 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2578
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd1dedf8e39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007fd1ded892f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd1dee82430 RCX: 00007fd1dedf8e39
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004
RBP: 00007fd1dee4f1a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd1dee4f068
R13: 0000000020000358 R14: 7974742f7665642f R15: 00007fd1dee82438
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:272 [inline]
RIP: 0010:put_page include/linux/mm.h:1225 [inline]
RIP: 0010:__skb_frag_unref include/linux/skbuff.h:3487 [inline]
RIP: 0010:skb_release_data+0x43a/0x810 net/core/skbuff.c:672
Code: e8 0b 3d 15 00 31 ff 41 89 c7 89 c6 e8 ff 09 2d fa 45 84 ff 0f 85 4f ff ff ff e8 f1 0d 2d fa 48 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 ee 02 00 00 48 8b 45 08 31 ff 49 89 c7 48 89
RSP: 0018:ffffc9000304f688 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff888075a768c0 RCX: 0000000000000000
RDX: ffff888024ea0000 RSI: ffffffff874d5e2f RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8881482bb0f0
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007fd1ded89700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560a2a1264e8 CR3: 000000001ce11000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 0b 3d 15 00       	callq  0x153d10
   5:	31 ff                	xor    %edi,%edi
   7:	41 89 c7             	mov    %eax,%r15d
   a:	89 c6                	mov    %eax,%esi
   c:	e8 ff 09 2d fa       	callq  0xfa2d0a10
  11:	45 84 ff             	test   %r15b,%r15b
  14:	0f 85 4f ff ff ff    	jne    0xffffff69
  1a:	e8 f1 0d 2d fa       	callq  0xfa2d0e10
  1f:	48 8d 7d 08          	lea    0x8(%rbp),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 ee 02 00 00    	jne    0x323
  35:	48 8b 45 08          	mov    0x8(%rbp),%rax
  39:	31 ff                	xor    %edi,%edi
  3b:	49 89 c7             	mov    %rax,%r15
  3e:	48                   	rex.W
  3f:	89                   	.byte 0x89

Crashes (518):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/07/15 03:55 upstream 9bd572ec7a66 5d921b08 .config log report syz C general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2022/09/25 16:49 linux-next aaa11ce2ffc8 0042f2b4 .config log report syz C general protection fault in skb_release_data
ci-upstream-kasan-gce-selinux-root 2020/09/20 21:21 upstream 325d0eab4f31 9564d2e9 .config log report syz C
ci-upstream-kasan-gce-root 2020/09/15 23:50 upstream fc4f28bb3daf 6989d6f6 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/09/10 14:17 upstream 34d4ddd359db 409809d8 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/09/08 13:03 net 19162fd4063a abf9ba4f .config log report syz C
ci-upstream-net-kasan-gce 2020/09/08 09:49 net-next bb1416adb8a0 abf9ba4f .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/09/27 00:48 linux-next d1d2220c7f39 2d5ea0cb .config log report syz C
ci-upstream-kasan-gce-selinux-root 2022/07/15 23:04 upstream 9b59ec8d50a1 95cb00d1 .config log report info general protection fault in skb_release_data
ci-upstream-kasan-gce-selinux-root 2022/07/15 19:45 upstream 9b59ec8d50a1 95cb00d1 .config log report info general protection fault in skb_release_data
ci-upstream-kasan-gce 2022/07/15 01:25 upstream 9bd572ec7a66 5d921b08 .config log report info general protection fault in skb_release_data
ci-qemu-upstream-386 2022/07/14 21:17 upstream 4a57a8400075 5d921b08 .config log report info general protection fault in skb_release_data
ci-upstream-net-kasan-gce 2021/11/10 07:01 net-next cc0356d6a02e 55fa030c .config log report info general protection fault in skb_release_data
ci-upstream-net-kasan-gce 2021/04/23 20:37 net-next cad4162a90ae 17f0b706 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/07 08:59 linux-next 869a85b925fc 06585184 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/04 03:55 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/04 02:36 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/04 00:52 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 23:51 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 21:27 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 19:43 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 18:25 linux-next e3d35712f85a ad61f371 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 14:10 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 12:06 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 09:41 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 08:41 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 06:59 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 05:26 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 03:57 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/03 02:46 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 23:52 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 22:15 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 20:28 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 17:43 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 16:27 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 15:17 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 14:11 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 13:35 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 11:39 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 08:31 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 04:57 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 03:10 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 02:05 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/02 00:18 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 23:01 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 21:30 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 21:26 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 19:06 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 17:06 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 15:17 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 13:10 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 11:22 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 09:19 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 08:09 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 07:00 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-linux-next-kasan-gce-root 2021/05/01 05:49 linux-next e3d35712f85a 77e2b668 .config log report info general protection fault in skb_release_data
ci-upstream-net-kasan-gce 2020/09/08 08:43 net-next bb1416adb8a0 abf9ba4f .config log report
* Struck through repros no longer work on HEAD.