syzbot


WARNING in skb_ensure_writable

Status: upstream: reported C repro on 2024/04/22 14:21
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+0c4150bff9fff3bf023c@syzkaller.appspotmail.com
First crash: 79d, last: 11h07m
Cause bisection: introduced by (bisect log) :
commit 219eee9c0d16f1b754a8b85275854ab17df0850a
Author: Florian Westphal <fw@strlen.de>
Date: Fri Feb 16 11:36:57 2024 +0000

  net: skbuff: add overflow debug check to pull/push helpers

Crash: WARNING in skb_ensure_writable (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (May 2024) 0 (1) 2024/05/12 18:21
[syzbot] [bpf?] [net?] WARNING in skb_ensure_writable 2 (3) 2024/04/22 14:52
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in skb_ensure_writable origin:upstream C 235 2d07h 35d 0/3 upstream: reported C repro on 2024/04/13 13:05
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/03/01 17:31 1h15m edumazet@google.com patch net-next OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5066 at include/linux/skbuff.h:2740 pskb_may_pull_reason include/linux/skbuff.h:2740 [inline]
WARNING: CPU: 1 PID: 5066 at include/linux/skbuff.h:2740 pskb_may_pull include/linux/skbuff.h:2756 [inline]
WARNING: CPU: 1 PID: 5066 at include/linux/skbuff.h:2740 skb_ensure_writable+0x2ef/0x440 net/core/skbuff.c:6100
Modules linked in:
CPU: 1 PID: 5066 Comm: syz-executor349 Not tainted 6.8.0-syzkaller-05271-gf99c5f563c17 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:pskb_may_pull_reason include/linux/skbuff.h:2740 [inline]
RIP: 0010:pskb_may_pull include/linux/skbuff.h:2756 [inline]
RIP: 0010:skb_ensure_writable+0x2ef/0x440 net/core/skbuff.c:6100
Code: e8 f6 f2 53 f8 4c 89 ef 31 f6 31 d2 b9 20 08 00 00 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d e9 07 03 fe ff e8 d2 f2 53 f8 90 <0f> 0b 90 e9 3e fd ff ff 44 89 f7 44 89 e6 e8 7e f4 53 f8 45 39 e6
RSP: 0018:ffffc900039a78f0 EFLAGS: 00010293
RAX: ffffffff8940fd9e RBX: ffff88802c6608c0 RCX: ffff88801bbd8000
RDX: 0000000000000000 RSI: 00000000fffffff7 RDI: 0000000000000000
RBP: 00000000fffffff7 R08: ffffffff8940fad7 R09: 1ffffffff1f0d5cd
R10: dffffc0000000000 R11: ffffffffa0001ae4 R12: 00000000fffffff7
R13: ffff88802c6608c0 R14: ffffc90000ace030 R15: dffffc0000000000
FS:  00005555907b7380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000038e49398 CR3: 000000001f4ec000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __bpf_try_make_writable net/core/filter.c:1665 [inline]
 bpf_try_make_writable net/core/filter.c:1671 [inline]
 ____bpf_skb_pull_data net/core/filter.c:1862 [inline]
 bpf_skb_pull_data+0x7c/0x230 net/core/filter.c:1851
 bpf_prog_c054a5fa89446ea8+0x24/0x47
 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline]
 __bpf_prog_run include/linux/filter.h:657 [inline]
 bpf_prog_run include/linux/filter.h:664 [inline]
 bpf_test_run+0x409/0x900 net/bpf/test_run.c:425
 bpf_prog_test_run_skb+0xafa/0x13a0 net/bpf/test_run.c:1058
 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4240
 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5649
 __do_sys_bpf kernel/bpf/syscall.c:5738 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5736 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5736
 do_syscall_64+0xfb/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f301a4ae669
Code: 48 83 c4 28 c3 e8 37 17 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:00007fffe6cb6d58 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fffe6cb6f28 RCX: 00007f301a4ae669
RDX: 0000000000000050 RSI: 00000000200002c0 RDI: 000000000000000a
RBP: 00007f301a521610 R08: 0000000000000000 R09: 00007fffe6cb6f28
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffe6cb6f18 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (1713):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 14:36 net f99c5f563c17 0d592ce4 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/04/16 14:17 net f99c5f563c17 0d592ce4 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/04/16 13:26 net f99c5f563c17 0d592ce4 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/04/15 09:56 bpf 443574b03387 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/04/15 09:37 bpf 443574b03387 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/04/15 08:16 bpf 443574b03387 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/17 04:07 net-next 1b294a1f3561 c2e07261 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/17 03:48 net-next 1b294a1f3561 c2e07261 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/17 02:55 net-next 1b294a1f3561 c2e07261 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/08 11:20 bpf-next 7e2c7a3f732b 4cf3f9b3 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/08 11:01 bpf-next 7e2c7a3f732b 4cf3f9b3 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/08 10:20 bpf-next 7e2c7a3f732b 4cf3f9b3 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/02/29 03:43 net-next 4ac828960a60 352ab904 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/04/15 02:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in skb_ensure_writable
2024/05/16 11:15 upstream 3c999d1ae3c7 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in skb_ensure_writable
2024/05/16 09:46 upstream 3c999d1ae3c7 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in skb_ensure_writable
2024/05/15 12:17 upstream 1b10b390d945 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in skb_ensure_writable
2024/05/13 13:52 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in skb_ensure_writable
2024/05/12 21:49 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in skb_ensure_writable
2024/05/09 10:27 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in skb_ensure_writable
2024/04/11 06:12 upstream fe46a7dd189e 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in skb_ensure_writable
2024/05/12 06:24 upstream cf87f46fd34d 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in skb_ensure_writable
2024/05/17 14:19 upstream ea5f6ad9ad96 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in skb_ensure_writable
2024/05/15 16:51 upstream 1b294a1f3561 7e8e0c0f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in skb_ensure_writable
2024/05/15 13:30 upstream 1b294a1f3561 7e8e0c0f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in skb_ensure_writable
2024/05/13 13:43 upstream a38297e3fb01 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in skb_ensure_writable
2024/05/13 05:50 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in skb_ensure_writable
2024/05/13 04:08 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING in skb_ensure_writable
2024/05/13 01:27 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in skb_ensure_writable
2024/05/09 19:42 upstream 45db3ab70092 de979bc2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in skb_ensure_writable
2024/05/15 12:14 net aea27a92a41d fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/05/15 02:52 bpf aea27a92a41d fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/14 14:28 bpf 3e9bc0472b91 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/14 12:54 bpf 3e9bc0472b91 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/14 01:58 bpf 3e9bc0472b91 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/12 10:37 bpf 3e9bc0472b91 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/11 21:14 bpf 3e9bc0472b91 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/09 22:29 bpf 3e9bc0472b91 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/08 02:51 bpf 3e9bc0472b91 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/07 16:16 net 9adcac650618 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/05/07 05:18 bpf 3e9bc0472b91 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/06 17:33 net a26ff37e624d c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/05/05 09:46 bpf 3e9bc0472b91 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in skb_ensure_writable
2024/05/05 05:33 net fa870b45b08a 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/05/04 10:34 net e0863634bf9f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in skb_ensure_writable
2024/05/18 06:49 bpf-next 71ed6c266348 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/17 22:42 bpf-next 71ed6c266348 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/17 20:47 bpf-next 71ed6c266348 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/17 06:14 net-next 1b294a1f3561 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/16 09:35 net-next 1b294a1f3561 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/15 19:04 bpf-next 5c1672705a1a 0b3dad46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/15 09:31 net-next 654de42f3fc6 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/14 20:18 net-next 5c1672705a1a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/13 15:21 bpf-next ba39486d2c43 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/12 21:54 bpf-next fcd1ed89a043 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/12 20:06 bpf-next fcd1ed89a043 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/12 01:12 bpf-next fcd1ed89a043 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/10 04:25 bpf-next 009367099eb6 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/09 20:48 net-next 628bc3e5a1be de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/09 18:27 net-next 628bc3e5a1be de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/09 03:23 net-next 8d8b1a422c46 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/07 23:30 net-next 7824463aaea9 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/07 07:15 bpf-next 8e6d9ae2e09f c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/07 01:53 net-next 8c4e4798123f c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/06 11:13 bpf-next a9e7715ce8b3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/05 02:08 net-next 173e7622ccb3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/04 15:41 net-next 173e7622ccb3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in skb_ensure_writable
2024/05/04 08:48 bpf-next a9e7715ce8b3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in skb_ensure_writable
2024/05/11 23:14 linux-next 75fa778d74b7 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_ensure_writable
2024/05/05 23:15 linux-next 9221b2819b8a 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_ensure_writable
2024/05/13 08:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in skb_ensure_writable
2024/05/13 02:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in skb_ensure_writable
2024/05/11 23:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in skb_ensure_writable
* Struck through repros no longer work on HEAD.