syzbot


WARNING in __xdp_reg_mem_model

Status: upstream: reported C repro on 2024/04/17 09:15
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+f534bd500d914e34b59e@syzkaller.appspotmail.com
First crash: 95d, last: 8d23h
Cause bisection: introduced by (bisect log) :
commit 2b0cfa6e49566c8fa6759734cf821aa6e8271a9e
Author: Lorenzo Bianconi <lorenzo@kernel.org>
Date: Mon Feb 12 09:50:54 2024 +0000

  net: add generic percpu page_pool allocator

Crash: WARNING in __xdp_reg_mem_model (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (Jul 2024) 0 (1) 2024/07/15 11:52
[syzbot] Monthly bpf report (Jun 2024) 0 (1) 2024/06/12 22:41
[syzbot] [bpf?] [net?] WARNING in __xdp_reg_mem_model 1 (3) 2024/05/06 14:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in __xdp_reg_mem_model origin:upstream C 2 21d 92d 0/3 upstream: reported C repro on 2024/04/16 15:04

Sample crash report:
RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a
RBP: 00007ffebb32f750 R08: 00007ffebb32f4e7 R09: 00007f2c42da0038
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffebb32f9b8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5065 at net/core/xdp.c:299 __xdp_reg_mem_model+0x2d9/0x650 net/core/xdp.c:299
Modules linked in:
CPU: 0 PID: 5065 Comm: syz-executor883 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:__xdp_reg_mem_model+0x2d9/0x650 net/core/xdp.c:299
Code: 89 c5 85 c0 79 62 e8 c6 b4 3e f8 eb a5 e8 bf b4 3e f8 4c 89 ff e8 97 a9 96 f8 4d 63 fd 48 c7 c7 80 27 39 8f e8 a8 36 23 02 90 <0f> 0b 90 e9 f8 01 00 00 e8 9a b4 3e f8 48 8d 7c 24 60 48 89 f8 48
RSP: 0018:ffffc90003d0f640 EFLAGS: 00010246
RAX: 1158ab1705932a00 RBX: dffffc0000000000 RCX: ffffffff8b7974ad
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90003d0f5c0
RBP: ffffc90003d0f710 R08: ffffc90003d0f5c7 R09: 1ffff920007a1eb8
R10: dffffc0000000000 R11: fffff520007a1eb9 R12: 0000000000000002
R13: ffff88802ead6000 R14: 1ffff920007a1ed0 R15: fffffffffffffff4
FS:  0000555581756480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000066c7e0 CR3: 0000000020174000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 xdp_reg_mem_model+0x22/0x40 net/core/xdp.c:344
 xdp_test_run_setup net/bpf/test_run.c:188 [inline]
 bpf_test_run_xdp_live+0x365/0x1e90 net/bpf/test_run.c:377
 bpf_prog_test_run_xdp+0x813/0x11b0 net/bpf/test_run.c:1267
 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:0x7f2c42ddb279
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:00007ffebb32f748 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f2c42ddb279
RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a
RBP: 00007ffebb32f750 R08: 00007ffebb32f4e7 R09: 00007f2c42da0038
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffebb32f9b8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (110):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/13 09:40 net f99c5f563c17 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/20 02:12 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __xdp_reg_mem_model
2024/06/19 14:48 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __xdp_reg_mem_model
2024/06/24 16:30 bpf 36534d3c5453 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/23 19:27 bpf 36534d3c5453 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/10 01:43 bpf d30d0e49da71 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/09 13:53 bpf d30d0e49da71 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/09 08:52 bpf d30d0e49da71 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/02 20:22 bpf 7d0b3953f6d8 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/20 19:00 bpf 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/19 22:17 bpf 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/15 04:17 bpf aea27a92a41d fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/12 20:10 bpf 3e9bc0472b91 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/12 12:41 net 1164057b3c00 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/10 06:27 bpf 3e9bc0472b91 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/09 06:56 bpf-next 90dc946059b7 bc23a442 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/05 11:46 bpf-next fd8db07705c5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/05 10:09 bpf-next fd8db07705c5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/03 12:53 bpf-next fd8db07705c5 409d975c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/03 10:36 bpf-next fd8db07705c5 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/07/01 14:40 bpf-next a12978712d90 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/29 09:46 bpf-next a12978712d90 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/25 13:39 bpf-next c73a9683cb21 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/24 10:20 bpf-next 5a532459aa91 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/24 08:44 net-next 84562f9953ec edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/23 05:56 net-next 185d72112b95 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/23 04:11 net-next 185d72112b95 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/23 00:23 bpf-next 1ae7a19e3763 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/16 22:22 bpf-next dedf56d775c0 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/08 17:42 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/08 16:18 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/06/02 11:46 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/31 07:31 bpf-next fbe3e8473f39 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/27 12:57 bpf-next e245ef8a0b06 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/26 18:24 net-next 66ad4829ddd0 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/26 15:51 bpf-next f980f13e4eb2 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/23 10:44 net-next 4b377b4868ef 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/23 06:46 bpf-next 6f130e4d4a5f 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/21 10:08 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/19 15:28 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/19 06:10 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/17 23:40 net-next 1b294a1f3561 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/17 11:46 net-next 1b294a1f3561 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/16 20:53 bpf-next 5c1672705a1a ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/16 12:54 bpf-next 5c1672705a1a ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/15 00:42 bpf-next 5c1672705a1a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/13 16:58 net-next cddd2dc6390b 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/10 11:43 bpf-next fcd1ed89a043 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/10 02:37 bpf-next 009367099eb6 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/10 01:31 net-next 628bc3e5a1be de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __xdp_reg_mem_model
2024/05/08 15:06 bpf-next 7e2c7a3f732b 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __xdp_reg_mem_model
2024/04/29 05:08 linux-next bb7a2467e6be 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __xdp_reg_mem_model
2024/06/08 22:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8867bbd4a056 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __xdp_reg_mem_model
2024/05/24 22:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __xdp_reg_mem_model
2024/05/21 12:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __xdp_reg_mem_model
2024/05/20 10:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __xdp_reg_mem_model
2024/05/20 09:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __xdp_reg_mem_model
* Struck through repros no longer work on HEAD.