panic: malloc: allocation too large, type = 2, size = 1768304430 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *380343 82987 0 0 0x4000000 0K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303d5df) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(69662f2e,2,2) at malloc+0xcf4 sys/kern/kern_malloc.c:330 bpf_allocbufs(ffff800001405400) at bpf_allocbufs+0x85 sys/net/bpf.c:1667 bpf_setif(ffff800001405400,ffff800035998750) at bpf_setif+0x22a sys/net/bpf.c:1209 bpfioctl(41700,8020426c,ffff800035998750,1,ffff80003726a7d8) at bpfioctl+0xc42 sys/net/bpf.c:956 VOP_IOCTL(fffffd80640f7018,8020426c,ffff800035998750,1,fffffd807f7d35b0,ffff80003726a7d8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806aae2280,8020426c,ffff800035998750,ffff80003726a7d8) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80003726a7d8,ffff800035998930,ffff800035998880) at sys_ioctl+0x67c syscall(ffff800035998930) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035998930) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf08d94bbeb0, count: 4 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: malloc: allocation too large, type = 2, size = 1768304430 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303d5df) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(69662f2e,2,2) at malloc+0xcf4 sys/kern/kern_malloc.c:330 bpf_allocbufs(ffff800001405400) at bpf_allocbufs+0x85 sys/net/bpf.c:1667 bpf_setif(ffff800001405400,ffff800035998750) at bpf_setif+0x22a sys/net/bpf.c:1209 bpfioctl(41700,8020426c,ffff800035998750,1,ffff80003726a7d8) at bpfioctl+0xc42 sys/net/bpf.c:956 VOP_IOCTL(fffffd80640f7018,8020426c,ffff800035998750,1,fffffd807f7d35b0,ffff80003726a7d8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806aae2280,8020426c,ffff800035998750,ffff80003726a7d8) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80003726a7d8,ffff800035998930,ffff800035998880) at sys_ioctl+0x67c syscall(ffff800035998930) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035998930) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf08d94bbeb0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000359982d0 rbx 0xffffffff83446dbf cpu_info_full_primary+0x2dbf rdx 0xffff800001284b40 rcx 0xffff80003726a7d8 rax 0xffffffff83445ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x539da069ebbf37e8 r11 0xaf1c87daca0890e2 r12 0xffffffff83446bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff81325f45 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000359982c0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=380343 pid=82987 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003726b990,0xffff80003726bc28 process=0xffff8000fffea8c8 user=0xffff800035993000, vmspace=0xfffffd806793e568 estcpu=36, cpticks=3, pctcpu=0.0, user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33945 287411 4545 60928 3 0x90 nanoslp syz-executor 33945 282502 4545 60928 3 0x4000090 kqread syz-executor 33945 485580 4545 60928 3 0x4000090 fsleep syz-executor 33945 403137 4545 60928 3 0x4000090 fsleep syz-executor 82987 358896 59755 0 2 0 syz-executor *82987 380343 59755 0 7 0x4000000 syz-executor 62702 300637 96205 0 2 0 syz-executor 62702 74982 96205 0 3 0x4000080 fsleep syz-executor 13587 352504 57302 0 3 0x80 nanoslp syz-executor 13587 135919 57302 0 3 0x4000080 fsleep syz-executor 13587 315848 57302 0 3 0x4000080 lockf syz-executor 18422 126936 40977 0 3 0x80 nanoslp syz-executor 18422 30244 40977 0 3 0x4000080 bpf syz-executor 87434 372425 1 0 3 0x82 nanoslp getty 96205 125113 41592 0 3 0x82 nanoslp syz-executor 40977 261201 41592 0 3 0x82 nanoslp syz-executor 47797 29998 0 0 3 0x14200 acct acct 66150 237432 0 0 3 0x14200 bored sosplice 50982 345551 0 0 3 0x14280 nfsidl nfsio 20970 427106 0 0 3 0x14280 nfsidl nfsio 76655 228112 0 0 3 0x14280 nfsidl nfsio 41279 333914 0 0 3 0x14280 nfsidl nfsio 13102 30902 0 0 3 0x14280 nfsidl nfsio 934 440811 0 0 3 0x14280 nfsidl nfsio 51570 319048 0 0 3 0x14280 nfsidl nfsio 39501 274523 0 0 3 0x14280 nfsidl nfsio 13802 468001 0 0 3 0x14280 nfsidl nfsio 24419 492387 0 0 3 0x14280 nfsidl nfsio 82691 338531 0 0 3 0x14280 nfsidl nfsio 75590 400591 0 0 3 0x14280 nfsidl nfsio 78121 294990 0 0 3 0x14280 nfsidl nfsio 73609 41550 0 0 3 0x14280 nfsidl nfsio 28760 222716 0 0 3 0x14280 nfsidl nfsio 62852 481157 0 0 3 0x14280 nfsidl nfsio 26703 434676 0 0 3 0x14280 nfsidl nfsio 66622 186361 0 0 3 0x14280 nfsidl nfsio 19295 12549 0 0 3 0x14280 nfsidl nfsio 27560 353822 0 0 3 0x14280 nfsidl nfsio 47430 301272 87550 0 3 0x100082 sbwait arp 87550 433319 1 0 3 0x10008a sigsusp sh 56618 395984 41592 0 3 0x2 biowait syz-executor 4545 436581 41592 0 3 0x82 nanoslp syz-executor 3682 437633 41592 0 3 0x82 wait syz-executor 53636 340976 41592 0 3 0x2 biowait syz-executor 59755 353177 41592 0 3 0x82 nanoslp syz-executor 57302 59295 41592 0 3 0x82 nanoslp syz-executor 41592 321573 75448 0 3 0x82 kqread syz-executor 75448 226822 52754 0 3 0x10008a sigsusp ksh 52754 453551 14780 0 3 0x98 kqread sshd-session 14780 270090 51978 0 3 0x92 kqread sshd-session 51978 259172 1 0 3 0x88 kqread sshd 62809 312066 88356 74 3 0x1100092 bpf pflogd 88356 343827 1 0 3 0x80 sbwait pflogd 63724 315122 37105 73 3 0x1100090 kqread syslogd 37105 263851 1 0 3 0x100082 sbwait syslogd 91096 187126 1 0 3 0x100080 kqread resolvd 13101 428539 6938 77 3 0x100092 kqread dhcpleased 74514 115566 6938 77 3 0x100092 kqread dhcpleased 6938 377696 1 0 3 0x80 kqread dhcpleased 83968 12602 0 0 3 0x14200 bored smr 38244 396938 0 0 2 0x14200 zerothread 78630 66558 0 0 3 0x14200 aiodoned aiodoned 37154 152854 0 0 3 0x14200 syncer update 99466 28953 0 0 3 0x14200 cleaner cleaner 89073 363808 0 0 3 0x14200 reaper reaper 7785 190948 0 0 3 0x14200 pgdaemon pagedaemon 58209 413249 0 0 3 0x14200 bored viomb 66032 381283 0 0 3 0x40014200 acpi0 acpi0 26976 377580 0 0 7 0x40014200 idle1 77937 75001 0 0 3 0x14200 bored softnet3 89935 8419 0 0 3 0x14200 bored softnet2 98389 84441 0 0 3 0x14200 bored softnet1 71727 407688 0 0 3 0x14200 bored softnet0 61946 105568 0 0 3 0x14200 bored systqmp 21338 307133 0 0 3 0x14200 bored systq 94666 122263 0 0 3 0x14200 tmoslp softclockmp 74064 372784 0 0 3 0x40014200 tmoslp softclock 76647 387096 0 0 3 0x40014200 idle0 1 357083 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &bd->bd_mtx r = 0 (0xffff800001405418) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 bpf_setif+0x114 sys/net/bpf.c:1208 #4 bpfioctl+0xc42 sys/net/bpf.c:956 #5 VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 #6 vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525 #7 sys_ioctl+0x67c #8 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 82987 (syz-executor) thread 0xffff80003726a7d8 (380343) Process 56618 (syz-executor) thread 0xffff800029fd9448 (395984) Process 53636 (syz-executor) thread 0xffff80002a03f458 (340976) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10224 11331K 11751K 166960K 14729 0 pcb 18 18K 20K 166960K 503 0 rtable 177 6K 6K 166960K 617 0 pf 39 18K 19K 166960K 106 0 ifaddr 38 6K 7K 166960K 97 0 ifgroup 59 2K 3K 166960K 138 0 sysctl 3 0K 1K 166960K 9 0 counters 66 36K 37K 166960K 116 0 ioctlops 0 0K 4K 166960K 1802 0 iov 0 0K 18K 166960K 207 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1465 92K 92K 166960K 3135 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 16K 20K 166960K 36 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 202 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 93K 166960K 1906 0 sigio 0 0K 0K 166960K 32 0 proc 72 91K 140K 166960K 818 0 subproc 117 7K 7K 166960K 143 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 334 0 in_multi 73 5K 7K 166960K 212 0 ether_multi 1 0K 0K 166960K 15 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 856 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 256 75K 87K 166960K 19492 0 UVM aobj 144 8K 8K 166960K 150 0 pinsyscall 44 88K 104K 166960K 3072 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 154 0 NDP 13 0K 1K 166960K 65 0 temp 78 6828K 6900K 166960K 85106 0 kqueue 16 26K 34K 166960K 342 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 143 0 139 1 0 1 1 0 8 0 rtentry 112 186 0 109 3 0 3 3 0 8 0 unpcb 144 1620 0 1601 18 16 2 10 0 8 1 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 808 640 0 636 18 10 8 11 0 8 7 arp 120 31 0 16 1 0 1 1 0 8 0 inpcb 336 2468 0 2459 28 13 15 15 0 8 14 nd6 136 40 0 20 1 0 1 1 0 8 0 pkpcb 40 24 0 24 5 4 1 1 0 8 1 kcovpl 48 11 0 2 1 0 1 1 0 8 0 ppxss 1168 14 0 14 4 3 1 1 0 8 1 pfstscr 40 3 0 2 1 0 1 1 0 8 0 pffrag 232 12 0 4 1 0 1 1 0 482 0 pffrnode 88 11 0 3 1 0 1 1 0 8 0 pffrent 40 21 0 13 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 158 0 50 1 0 1 1 0 8 0 pfstkey 128 159 0 50 4 0 4 4 0 8 0 pfstate 376 158 0 50 11 0 11 11 0 8 0 pfrule 1344 21 0 16 2 0 2 2 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 833 0 493 32 10 22 28 0 8 0 art_table 32 835 0 493 4 0 4 4 0 8 0 art_node 16 181 0 115 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 7 1 0 1 1 0 8 0 semapl 112 197 0 187 1 0 1 1 0 8 0 shmpl 112 147 0 6 5 0 5 5 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 4924 0 3417 95 0 95 95 0 8 0 ffsino 272 4924 0 3417 101 0 101 101 0 8 0 nchpl 144 7579 0 5881 64 0 64 64 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 27578 0 27577 7 6 1 2 0 8 0 percpumem 16 72 0 25 1 0 1 1 0 8 0 kstatmem 264 76 0 50 6 3 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 3 2 1 1 0 8 1 scxspl 216 22209 0 22207 17 15 2 8 1 8 1 plimitpl 152 406 0 388 1 0 1 1 0 8 0 sigapl 424 2228 0 2156 9 0 9 9 0 8 0 futexpl 64 28914 0 28910 1 0 1 1 0 8 0 knotepl 120 599 0 0 18 0 18 18 0 8 0 kqueuepl 216 540 0 526 5 0 5 5 0 8 4 pipepl 320 396 0 364 11 8 3 8 0 8 0 fdescpl 496 2187 0 2155 5 0 5 5 0 8 0 filepl 152 15795 0 15515 45 25 20 22 0 8 7 lockfpl 104 983 0 977 3 1 2 2 0 8 1 lockfspl 48 389 0 385 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 55 0 38 1 0 1 1 0 8 0 ucredpl 104 3047 0 3032 1 0 1 1 0 8 0 zombiepl 144 2157 0 2156 4 3 1 1 0 8 0 processpl 1160 2228 0 2156 6 0 6 6 0 8 0 procpl 648 5118 0 5038 9 1 8 8 0 8 0 srpgc 96 12 0 12 3 3 0 1 0 8 0 sosppl 168 15 0 15 6 5 1 1 0 8 1 sockpl 664 4342 0 4310 59 42 17 24 0 8 14 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 143 0 0 18 0 18 18 0 8 0 mcl2k 2048 34 0 0 4 0 4 4 0 8 0 mtagpl 96 167 0 0 5 0 5 5 0 8 0 mbufpl 256 1240 0 0 76 0 76 76 0 8 0 bufpl 280 7047 0 873 442 0 442 442 0 8 0 anonpl 24 286214 0 275997 142 54 88 88 0 185 22 amapchunkpl 152 62780 0 62031 47 15 32 33 0 158 1 amappl16 200 6089 0 5874 74 49 25 25 0 8 5 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 172 0 159 1 0 1 1 0 8 0 amappl13 176 10 0 9 2 1 1 1 0 8 0 amappl12 168 2878 0 2845 3 1 2 2 0 8 0 amappl11 160 55 0 40 1 0 1 1 0 8 0 amappl10 152 9 0 9 3 3 0 1 0 8 0 amappl9 144 190 0 190 1 1 0 1 0 8 0 amappl8 136 45 0 41 1 0 1 1 0 8 0 amappl7 128 136 0 123 1 0 1 1 0 8 0 amappl6 120 207 0 204 1 0 1 1 0 8 0 amappl5 112 160 0 148 1 0 1 1 0 8 0 amappl4 104 324 0 303 1 0 1 1 0 8 0 amappl3 96 11664 0 11560 3 0 3 3 0 8 0 amappl2 88 2475 0 2386 3 0 3 3 0 8 0 amappl1 80 13608 0 13019 14 0 14 14 0 8 0 amappl 88 18902 0 18714 5 0 5 5 0 92 0 dma65536 65536 2 0 2 2 2 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 3 2 1 1 0 8 1 dma64 64 8 0 8 3 3 0 1 0 8 0 dma32 32 41 0 41 3 3 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 149 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2187 0 2155 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2187 0 2155 1 0 1 1 0 8 0 vmmpekpl 168 18020 0 17968 3 0 3 3 0 8 0 vmmpepl 168 136374 0 134260 136 29 107 107 0 357 5 vmsppl 448 2186 0 2155 6 1 5 5 0 8 0 rwobjpl 56 41315 0 34061 107 1 106 106 0 8 2 pdppl 4096 4381 0 4310 111 36 75 85 0 8 4 pvpl 32 21625 0 0 176 2 174 174 0 265 0 pmappl 248 2186 0 2155 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 515 0 85 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8303d5df) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(69662f2e,2,2) at malloc+0xcf4 sys/kern/kern_malloc.c:330 bpf_allocbufs(ffff800001405400) at bpf_allocbufs+0x85 sys/net/bpf.c:1667 bpf_setif(ffff800001405400,ffff800035998750) at bpf_setif+0x22a sys/net/bpf.c:1209 bpfioctl(41700,8020426c,ffff800035998750,1,ffff80003726a7d8) at bpfioctl+0xc42 sys/net/bpf.c:956 VOP_IOCTL(fffffd80640f7018,8020426c,ffff800035998750,1,fffffd807f7d35b0,ffff80003726a7d8) at VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806aae2280,8020426c,ffff800035998750,ffff80003726a7d8) at vn_ioctl+0xf6 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff80003726a7d8,ffff800035998930,ffff800035998880) at sys_ioctl+0x67c syscall(ffff800035998930) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035998930) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf08d94bbeb0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1218 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5