panic: malloc: allocation too large, type = 2, size = 18446744073709550336 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 339724 78613 0 0x1000 0x4080000 1 syz-executor.0 *195549 78613 0 0x1000 0x4080000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 malloc(fffffffffffffb00,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b49ad0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e4dc9c0,c0185603,ffff800020b49ad0,81,fffffd807f7c6a80,ffff800020acfb48) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80671f2738,c0185603,ffff800020b49ad0,ffff800020acfb48) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acfb48,ffff800020b49be8,ffff800020b49c30) at sys_ioctl+0x5b9 syscall(ffff800020b49cb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b49cb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,1c7109b80e0) at Xsyscall+0x128 end of kernel end trace frame: 0x1c9577388d0, count: 6 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 malloc: allocation too large, type = 2, size = 18446744073709550336 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 malloc(fffffffffffffb00,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b49ad0) at vm_get_info+0x9d VOP_IOCTL(fffffd806e4dc9c0,c0185603,ffff800020b49ad0,81,fffffd807f7c6a80,ffff800020acfb48) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80671f2738,c0185603,ffff800020b49ad0,ffff800020acfb48) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020acfb48,ffff800020b49be8,ffff800020b49c30) at sys_ioctl+0x5b9 syscall(ffff800020b49cb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b49cb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,1c7109b80e0) at Xsyscall+0x128 end of kernel end trace frame: 0x1c9577388d0, count: -9 ddb{0}> show registers rdi 0xffffffff81bdfd17 db_enter+0x17 rsi 0x23d0 __ALIGN_SIZE+0x13d0 rbp 0xffff800020b49710 rbx 0xffff800020b497c0 rdx 0x23d1 __ALIGN_SIZE+0x13d1 rcx 0xffff800021f56000 rax 0xffff800021f56000 r8 0xffffffff816bf1ff kprintf+0x16f r9 0x1 r10 0x25 r11 0xc4cdfe521bc0fce6 r12 0x3000000008 r13 0xffff800020b49720 r14 0x100 r15 0x1 rip 0xffffffff81bdfd18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b49700 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=195549 stat=onproc flags process=1000 proc=4080000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef0,0xffffffff8265d288 process=0xffff800020adce00 user=0xffff800020b44000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78613 284955 46914 0 3 0x3000 suspend syz-executor.0 78613 339724 46914 0 7 0x4081000 syz-executor.0 *78613 195549 46914 0 7 0x4081000 syz-executor.0 46914 193882 12357 0 2 0x482 syz-executor.0 47179 232441 12357 0 3 0x82 nanosleep syz-executor.1 69503 3597 0 0 3 0x14200 acct acct 97471 235293 0 0 3 0x14200 bored sosplice 12357 183946 84602 0 3 0x82 thrsleep syz-fuzzer 12357 83945 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 204773 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 128636 84602 0 3 0x4000082 kqread syz-fuzzer 12357 473752 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 468353 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 98531 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 517622 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 256701 84602 0 3 0x4000082 thrsleep syz-fuzzer 12357 154085 84602 0 3 0x4000082 thrsleep syz-fuzzer 84602 120485 19747 0 3 0x10008a pause ksh 19747 522239 41264 0 3 0x92 select sshd 86736 355730 1 0 3 0x100083 ttyin getty 41264 115575 1 0 3 0x80 select sshd 6398 213885 50925 74 3 0x100092 bpf pflogd 50925 446717 1 0 3 0x80 netio pflogd 74566 404896 73967 73 3 0x100090 kqread syslogd 73967 424854 1 0 3 0x100082 netio syslogd 30580 468632 1 77 3 0x100090 poll dhclient 58574 389522 1 0 3 0x80 poll dhclient 95619 3603 0 0 3 0x14200 pgzero zerothread 64552 295301 0 0 3 0x14200 aiodoned aiodoned 40464 502744 0 0 3 0x14200 syncer update 95724 391547 0 0 3 0x14200 cleaner cleaner 72033 456946 0 0 3 0x14200 reaper reaper 79060 471319 0 0 3 0x14200 pgdaemon pagedaemon 32030 355976 0 0 3 0x14200 bored crynlk 44385 492420 0 0 3 0x14200 bored crypto 48004 435766 0 0 3 0x40014200 acpi0 acpi0 37313 254140 0 0 3 0x40014200 idle1 3896 345720 0 0 3 0x14200 bored softnet 32121 463014 0 0 3 0x14200 bored systqmp 73803 42935 0 0 3 0x14200 bored systq 19873 442306 0 0 3 0x40014200 bored softclock 75552 225345 0 0 3 0x40014200 idle0 43231 174710 0 0 3 0x14200 bored smr 1 165662 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 78613 (syz-executor.0) thread 0xffff800020acfb48 (195549) shared rwlock vmlistlock r = 0 (0xffff80000066e478) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82662188) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9616 6854K 7938K 78643K 21574 0 0 pcb 13 8K 8K 78643K 299 0 0 rtable 111 4K 4K 78643K 957 0 0 ifaddr 81 17K 17K 78643K 344 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1543 0 0 iov 0 0K 20K 78643K 233 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 4503 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 18 0 0 VM map 2 1K 1K 78643K 10 0 0 sem 12 0K 0K 78643K 688 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1979 0 0 sigio 0 0K 0K 78643K 154 0 0 proc 62 63K 83K 78643K 944 0 0 subproc 32 2K 2K 78643K 171 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 162 0 0 in_multi 33 2K 2K 78643K 166 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 520 0 0 pfkey data 0 0K 4K 78643K 6 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 111 22K 32K 78643K 7718 0 0 UVM aobj 60 2K 2K 78643K 66 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 275 0 0 NDP 19 0K 1K 78643K 104 0 0 temp 221 3556K 3626K 78643K 27454 0 0 kqueue 0 0K 0K 78643K 20 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 24 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 117 0 115 1 0 1 1 0 8 0 rtentry 112 128 0 84 2 0 2 2 0 8 0 unpcb 120 973 0 963 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 11 0 11 5 4 1 1 0 8 1 tcpqe 32 4692 0 4692 2 2 0 2 0 8 0 tcpcb 544 487 0 483 1 0 1 1 0 8 0 inpcb 280 1697 0 1690 8 6 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 20 0 16 1 0 1 1 0 8 0 pkpcb 40 14 0 14 6 5 1 1 0 8 1 ppxss 1128 46 0 46 12 11 1 1 0 8 1 pffrag 232 4 0 4 1 1 0 1 0 482 0 pffrnode 88 4 0 4 1 1 0 1 0 8 0 pffrent 40 12 0 12 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 63 0 42 1 0 1 1 0 8 0 pfstkey 112 63 0 42 1 0 1 1 0 8 0 pfstate 328 63 0 41 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 595 0 379 17 3 14 14 0 8 0 art_table 32 596 0 379 2 0 2 2 0 8 0 art_node 16 127 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 10 2 2 0 1 0 8 0 semapl 112 686 0 676 1 0 1 1 0 8 0 shmpl 112 64 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4301 0 2900 46 0 46 46 0 8 0 ffsino 272 4301 0 2900 95 0 95 95 0 8 0 nchpl 144 8098 0 6482 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 26593 0 26593 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 8 3 3 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 21082 0 21082 17 16 1 7 0 8 1 plimitpl 152 218 0 210 1 0 1 1 0 8 0 sigapl 432 2155 0 2140 3 1 2 3 0 8 0 futexpl 56 43261 0 43261 1 0 1 1 0 8 1 knotepl 112 513 0 494 1 0 1 1 0 8 0 kqueuepl 104 1895 0 1893 1 0 1 1 0 8 0 pipepl 112 1162 0 1143 3 1 2 2 0 8 1 fdescpl 488 2156 0 2140 3 0 3 3 0 8 0 filepl 152 18326 0 18222 13 7 6 6 0 8 2 lockfpl 104 670 0 669 1 0 1 1 0 8 0 lockfspl 48 210 0 209 1 0 1 1 0 8 0 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 64 0 53 1 0 1 1 0 8 0 ucredpl 96 2189 0 2180 1 0 1 1 0 8 0 zombiepl 144 2142 0 2141 2 1 1 1 0 8 0 processpl 896 2175 0 2141 4 0 4 4 0 8 0 procpl 632 6563 0 6518 5 0 5 5 0 8 0 srpgc 64 16 0 16 8 7 1 1 0 8 1 sosppl 128 24 0 24 6 5 1 1 0 8 1 sockpl 384 2859 0 2840 12 8 4 4 0 8 2 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 12 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 219 0 0 26 3 23 26 0 8 0 mtagpl 80 369 0 0 8 0 8 8 0 8 0 mbufpl 256 846 0 0 51 0 51 51 0 8 0 bufpl 256 10435 0 3387 441 0 441 441 0 8 0 anonpl 16 231493 0 217701 112 44 68 76 0 124 7 amapchunkpl 152 13642 0 13507 27 20 7 13 0 158 0 amappl16 192 11359 0 10570 100 59 41 53 0 8 1 amappl15 184 94 0 94 2 1 1 1 0 8 1 amappl14 176 768 0 765 1 0 1 1 0 8 0 amappl13 168 9 0 9 2 2 0 1 0 8 0 amappl12 160 365 0 365 3 2 1 1 0 8 1 amappl11 152 416 0 401 1 0 1 1 0 8 0 amappl10 144 218 0 212 1 0 1 1 0 8 0 amappl9 136 811 0 802 1 0 1 1 0 8 0 amappl8 128 411 0 380 2 0 2 2 0 8 0 amappl7 120 278 0 270 1 0 1 1 0 8 0 amappl6 112 424 0 413 1 0 1 1 0 8 0 amappl5 104 700 0 686 1 0 1 1 0 8 0 amappl4 96 1951 0 1921 1 0 1 1 0 8 0 amappl3 88 1155 0 1148 1 0 1 1 0 8 0 amappl2 80 15912 0 15841 3 1 2 3 0 8 0 amappl1 72 57033 0 56589 26 16 10 20 0 8 0 amappl 80 6940 0 6894 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 65 0 6 1 0 1 1 0 8 0 uaddrrnd 24 2164 0 2140 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2164 0 2140 1 0 1 1 0 8 0 vmmpekpl 168 20779 0 20747 2 0 2 2 0 8 0 vmmpepl 168 271838 0 269908 209 91 118 118 0 357 28 vmsppl 368 2155 0 2140 2 0 2 2 0 8 0 pdppl 4096 4335 0 4296 7 1 6 6 0 8 0 pvpl 32 624672 0 607674 236 64 172 188 0 265 26 pmappl 232 2163 0 2148 4 2 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 657 0 11 19 0 19 19 0 8 0