syzbot


general protection fault in skb_release_data (2)

Status: upstream: reported C repro on 2020/09/09 09:58
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ccfa5775bc1bda21ddd1@syzkaller.appspotmail.com
First crash: 1287d, last: 237d
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 (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in skb_release_data (2) 0 (1) 2020/09/09 09:58
Similar bugs (13)
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 1286d 1289d 0/1 upstream: reported C repro on 2020/09/07 04:13
android-49 general protection fault in skb_release_data 1 2409d 2409d 1/3 fixed on 2017/10/23 20:15
linux-4.14 general protection fault in skb_release_data C 1 394d 1287d 0/1 upstream: reported C repro on 2020/09/08 19:28
upstream general protection fault in skb_release_data syz 198 2406d 2407d 3/26 fixed on 2017/10/24 06:54
upstream KMSAN: uninit-value in skb_release_data (3) net C 10 608d 1286d 0/26 auto-obsoleted due to no activity on 2022/11/17 07:20
linux-5.15 KASAN: use-after-free Read in skb_release_data 1 345d 345d 0/3 auto-obsoleted due to no activity on 2023/08/06 13:46
upstream KASAN: use-after-free Write in skb_release_data (2) net C done unreliable 875 922d 1982d 0/26 auto-obsoleted due to no activity on 2023/04/16 03:59
linux-4.19 KASAN: use-after-free Write in skb_release_data (2) 3 1051d 1128d 0/1 auto-closed as invalid on 2021/08/30 12:28
android-49 KASAN: use-after-free Read in skb_release_data 1 2140d 2140d 0/3 auto-closed as invalid on 2019/02/22 12:31
linux-4.14 KASAN: use-after-free Read in skb_release_data 1 1688d 1688d 0/1 auto-closed as invalid on 2019/12/02 22:53
upstream KASAN: use-after-free Read in skb_release_data syz 7 2407d 2407d 3/26 fixed on 2017/10/24 06:54
linux-4.14 KASAN: use-after-free Read in skb_release_data (2) syz inconclusive 1 1476d 1476d 0/1 upstream: reported syz repro on 2020/03/03 17:50
upstream KASAN: use-after-free Read in skb_release_data (2) bluetooth syz done done 1 1478d 1478d 0/26 auto-obsoleted due to no activity on 2022/09/13 15:46
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/02/12 03:53 20m retest repro upstream report log
2024/02/12 03:53 21m retest repro upstream report log
2023/12/04 01:25 20m retest repro upstream report log
2023/12/03 20:17 22m retest repro upstream report log
2023/09/24 23:54 20m retest repro upstream report log
2023/09/24 19:31 29m retest repro upstream report log
2023/07/16 19:50 2h17m retest repro linux-next OK log
2023/07/16 19:10 36m retest repro linux-next OK log
2023/07/16 19:10 25m retest repro linux-next OK log
2023/07/16 17:33 39m retest repro upstream report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2021/03/03 00:35 8h06m bisect fix upstream error job log (0)
2021/01/25 03:25 17m bisect fix upstream job log (0) log
2020/12/26 03:06 17m bisect fix upstream job log (0) log
2020/11/26 02:50 16m bisect fix upstream job log (0) log
2020/10/27 00:48 19m bisect fix upstream job log (0) log

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: 3643 Comm: syz-executor134 Not tainted 6.1.0-rc5-syzkaller-00144-g84368d882b96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:_compound_head include/linux/page-flags.h:253 [inline]
RIP: 0010:put_page include/linux/mm.h:1203 [inline]
RIP: 0010:__skb_frag_unref include/linux/skbuff.h:3385 [inline]
RIP: 0010:skb_release_data+0x449/0x870 net/core/skbuff.c:783
Code: e8 ac 9d 15 00 31 ff 41 89 c4 89 c6 e8 80 9b cd f9 45 84 e4 0f 85 4f ff ff ff e8 02 9f cd f9 48 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 4a 03 00 00 48 8b 45 08 31 ff 49 89 c4 48 89
RSP: 0018:ffffc90003457660 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff888073a981c0 RCX: 0000000000000000
RDX: ffff8880732100c0 RSI: ffffffff87b19d1e RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88807d139cf0 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f29acba6700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064a110 CR3: 0000000021023000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 skb_release_all net/core/skbuff.c:854 [inline]
 __kfree_skb net/core/skbuff.c:868 [inline]
 kfree_skb_reason+0x18a/0x4b0 net/core/skbuff.c:891
 kfree_skb_list_reason+0x4b/0x70 net/core/skbuff.c:901
 __dev_xmit_skb net/core/dev.c:3886 [inline]
 __dev_queue_xmit+0x23dd/0x3ba0 net/core/dev.c:4222
 packet_snd net/packet/af_packet.c:3073 [inline]
 packet_sendmsg+0x3359/0x5510 net/packet/af_packet.c:3104
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xd3/0x120 net/socket.c:734
 ____sys_sendmsg+0x712/0x8c0 net/socket.c:2482
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2565
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f29acc15e39
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:00007f29acba62f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f29acc9f430 RCX: 00007f29acc15e39
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004
RBP: 00007f29acc6c1a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f29acc6c068
R13: 0000000020000358 R14: 7974742f7665642f R15: 00007f29acc9f438
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:253 [inline]
RIP: 0010:put_page include/linux/mm.h:1203 [inline]
RIP: 0010:__skb_frag_unref include/linux/skbuff.h:3385 [inline]
RIP: 0010:skb_release_data+0x449/0x870 net/core/skbuff.c:783
Code: e8 ac 9d 15 00 31 ff 41 89 c4 89 c6 e8 80 9b cd f9 45 84 e4 0f 85 4f ff ff ff e8 02 9f cd f9 48 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 38 00 0f 85 4a 03 00 00 48 8b 45 08 31 ff 49 89 c4 48 89
RSP: 0018:ffffc90003457660 EFLAGS: 00010202

RAX: 0000000000000001 RBX: ffff888073a981c0 RCX: 0000000000000000
RDX: ffff8880732100c0 RSI: ffffffff87b19d1e RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88807d139cf0 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f29acba6700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064a110 CR3: 0000000021023000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 ac 9d 15 00       	callq  0x159db1
   5:	31 ff                	xor    %edi,%edi
   7:	41 89 c4             	mov    %eax,%r12d
   a:	89 c6                	mov    %eax,%esi
   c:	e8 80 9b cd f9       	callq  0xf9cd9b91
  11:	45 84 e4             	test   %r12b,%r12b
  14:	0f 85 4f ff ff ff    	jne    0xffffff69
  1a:	e8 02 9f cd f9       	callq  0xf9cd9f21
  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 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	0f 85 4a 03 00 00    	jne    0x37f
  35:	48 8b 45 08          	mov    0x8(%rbp),%rax
  39:	31 ff                	xor    %edi,%edi
  3b:	49 89 c4             	mov    %rax,%r12
  3e:	48                   	rex.W
  3f:	89                   	.byte 0x89

Crashes (521):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/19 04:08 upstream 84368d882b96 5bb70014 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in skb_release_data
2022/07/15 03:55 upstream 9bd572ec7a66 5d921b08 .config strace log report syz C ci-upstream-kasan-gce general protection fault in skb_release_data
2022/09/25 16:49 linux-next aaa11ce2ffc8 0042f2b4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2020/09/20 21:21 upstream 325d0eab4f31 9564d2e9 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/09/15 23:50 upstream fc4f28bb3daf 6989d6f6 .config console log report syz C ci-upstream-kasan-gce-root
2020/09/10 14:17 upstream 34d4ddd359db 409809d8 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/09/08 13:03 net-old 19162fd4063a abf9ba4f .config console log report syz C ci-upstream-net-this-kasan-gce
2020/09/08 09:49 net-next-old bb1416adb8a0 abf9ba4f .config console log report syz C ci-upstream-net-kasan-gce
2020/09/27 00:48 linux-next d1d2220c7f39 2d5ea0cb .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2023/05/07 17:33 linux-next 83e5775d7afd 90c93c40 .config strace log report syz [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in skb_release_data
2022/07/15 23:04 upstream 9b59ec8d50a1 95cb00d1 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in skb_release_data
2022/07/15 19:45 upstream 9b59ec8d50a1 95cb00d1 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in skb_release_data
2022/07/15 01:25 upstream 9bd572ec7a66 5d921b08 .config console log report info ci-upstream-kasan-gce general protection fault in skb_release_data
2022/07/14 21:17 upstream 4a57a8400075 5d921b08 .config console log report info ci-qemu-upstream-386 general protection fault in skb_release_data
2021/11/10 07:01 net-next-old cc0356d6a02e 55fa030c .config console log report info ci-upstream-net-kasan-gce general protection fault in skb_release_data
2021/05/07 08:59 linux-next 869a85b925fc 06585184 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/04 03:55 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/04 02:36 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/04 00:52 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 23:51 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 21:27 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 19:43 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 18:25 linux-next e3d35712f85a ad61f371 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 14:10 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 12:06 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 09:41 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 08:41 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 06:59 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 05:26 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 03:57 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/03 02:46 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 23:52 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 22:15 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 20:28 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 17:43 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 16:27 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 15:17 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 14:11 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 13:35 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 11:39 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 08:31 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 04:57 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 03:10 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 02:05 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/02 00:18 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 23:01 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 21:30 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 21:26 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 19:06 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 17:06 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 15:17 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 13:10 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 11:22 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 09:19 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 08:09 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2021/05/01 07:00 linux-next e3d35712f85a 77e2b668 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in skb_release_data
2023/07/25 16:08 upstream 0b5547c51827 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: use-after-free Read in skb_release_data
2020/09/08 08:43 net-next-old bb1416adb8a0 abf9ba4f .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.