panic: malloc: allocation too large, type = 2, size = 18446744073709549056 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *188466 32022 0 0x10 0x4000000 0 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(fffffffffffff600,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015959ec0) at vm_get_info+0x9a VOP_IOCTL(fffffd803e313410,c0185603,ffff800015959ec0,3,fffffd803f7c63c0,ffff800014916508) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ecb9970,c0185603,ffff800015959ec0,ffff800014916508) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014916508,ffff800015959fd8,ffff80001595a020) at sys_ioctl+0x5b9 syscall(ffff80001595a0a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,8cf70534010) at Xsyscall+0x128 end of kernel end trace frame: 0x8d1d49fb5b0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic malloc: allocation too large, type = 2, size = 18446744073709549056 ddb> 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(fffffffffffff600,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800015959ec0) at vm_get_info+0x9a VOP_IOCTL(fffffd803e313410,c0185603,ffff800015959ec0,3,fffffd803f7c63c0,ffff800014916508) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802ecb9970,c0185603,ffff800015959ec0,ffff800014916508) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014916508,ffff800015959fd8,ffff80001595a020) at sys_ioctl+0x5b9 syscall(ffff80001595a0a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,8cf70534010) at Xsyscall+0x128 end of kernel end trace frame: 0x8d1d49fb5b0, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x266e __ALIGN_SIZE+0x166e rbp 0xffff800015959b00 rbx 0xffff800015959bb0 rdx 0x266f __ALIGN_SIZE+0x166f rcx 0xffff800017374000 rax 0xffff800017374000 r8 0xffff800015959ac0 r9 0x1 r10 0xffff800000a62080 r11 0xc5ace0541c4a6433 r12 0x3000000008 r13 0xffff800015959b10 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015959af0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=188466 stat=onproc flags process=10 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014917650,0xffff800014916c80 process=0xffff8000ffff6010 user=0xffff800015955000, vmspace=0xfffffd803f013000 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24347 66309 86633 0 2 0 syz-executor.1 24347 172643 86633 0 2 0x4000000 syz-executor.1 24347 139470 86633 0 3 0x4000080 fsleep syz-executor.1 32022 478365 37847 0 2 0x10 syz-executor.0 *32022 188466 37847 0 7 0x4000010 syz-executor.0 32022 243485 37847 0 3 0x4000090 fsleep syz-executor.0 32022 30769 37847 0 3 0x4000090 fsleep syz-executor.0 37847 318506 56089 0 3 0x82 nanosleep syz-executor.0 86633 82288 56089 0 3 0x82 nanosleep syz-executor.1 92718 117374 0 0 3 0x14200 acct acct 39562 258614 0 0 3 0x14200 bored sosplice 56089 354366 50584 0 3 0x82 thrsleep syz-fuzzer 56089 67324 50584 0 3 0x4000082 thrsleep syz-fuzzer 56089 41313 50584 0 3 0x4000082 thrsleep syz-fuzzer 56089 343219 50584 0 3 0x4000082 thrsleep syz-fuzzer 56089 498503 50584 0 3 0x4000082 kqread syz-fuzzer 56089 177755 50584 0 3 0x4000082 thrsleep syz-fuzzer 56089 87986 50584 0 3 0x4000082 thrsleep syz-fuzzer 56089 203237 50584 0 3 0x4000082 thrsleep syz-fuzzer 50584 422415 19701 0 3 0x10008a pause ksh 19701 378363 92662 0 3 0x92 select sshd 45427 334322 1 0 3 0x100083 ttyin getty 92662 389922 1 0 3 0x80 select sshd 18472 83989 9953 73 3 0x100090 kqread syslogd 9953 510374 1 0 3 0x100082 netio syslogd 90411 407715 0 0 2 0x14200 zerothread 2163 412504 0 0 3 0x14200 aiodoned aiodoned 51712 498045 0 0 3 0x14200 syncer update 64740 121418 0 0 3 0x14200 cleaner cleaner 83976 433473 0 0 3 0x14200 reaper reaper 3401 516896 0 0 3 0x14200 pgdaemon pagedaemon 82512 405884 0 0 3 0x14200 bored crynlk 51924 371409 0 0 3 0x14200 bored crypto 89573 26050 0 0 3 0x40014200 acpi0 acpi0 14440 499576 0 0 3 0x14200 bored softnet 44606 108429 0 0 3 0x14200 bored systqmp 53329 384440 0 0 3 0x14200 bored systq 76023 176035 0 0 3 0x40014200 bored softclock 23687 386923 0 0 3 0x40014200 idle0 26495 212872 0 0 3 0x14200 bored smr 1 92729 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9587 6317K 7198K 78643K 47204 0 0 pcb 13 8K 9K 78643K 1821 0 0 rtable 112 12K 12K 78643K 2843 0 0 ifaddr 78 22K 24K 78643K 1554 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 709 0 0 iov 0 0K 32K 78643K 20071 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 15508 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 275 0 0 VM map 2 0K 0K 78643K 18 0 0 sem 12 0K 0K 78643K 3505 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 15455 0 0 sigio 0 0K 0K 78643K 251 0 0 proc 45 30K 62K 78643K 3948 0 0 subproc 32 2K 2K 78643K 1034 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 1492 0 0 in_multi 29 1K 2K 78643K 1112 0 0 ether_multi 1 0K 0K 78643K 77 0 0 mrt 2 0K 0K 78643K 67 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 204 901K 901K 78643K 204 0 0 exec 0 0K 1K 78643K 2145 0 0 pfkey data 0 0K 4K 78643K 4 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 134 23K 33K 78643K 43046 0 0 UVM aobj 130 4K 4K 78643K 195 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1666 0 0 NDP 19 0K 1K 78643K 502 0 0 temp 219 3536K 4176K 78643K 262358 0 0 kqueue 0 0K 0K 78643K 76 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 124 0 118 1 0 1 1 0 8 0 rtpcb 80 863 0 863 38 37 1 1 0 8 1 rtentry 112 650 0 608 2 0 2 2 0 8 0 unpcb 120 21392 0 21368 11 9 2 3 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 4711 0 4711 1 1 0 1 0 8 0 tcpcb 544 3060 0 3056 2 1 1 2 0 8 0 ipq 40 25 0 25 11 11 0 1 0 8 0 ipqe 40 53 0 53 11 11 0 1 0 8 0 inpcb 280 11006 0 10999 52 51 1 2 0 8 0 rttmr 72 11 0 11 9 9 0 1 0 8 0 nd6 48 118 0 115 2 1 1 1 0 8 0 pkpcb 40 88 0 88 30 30 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 217 0 217 61 61 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3007 0 2778 33 18 15 17 0 8 0 art_table 32 3008 0 2778 5 2 3 3 0 8 0 art_node 16 633 0 594 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 15 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3501 0 3491 1 0 1 1 0 8 0 shmpl 112 193 0 65 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 29763 0 28344 46 0 46 46 0 8 0 ffsino 240 29763 0 28344 84 0 84 84 0 8 0 nchpl 144 54318 0 52622 63 0 63 63 0 8 0 uvmvnodes 72 8996 0 0 164 0 164 164 0 8 0 vnodes 208 8996 0 0 474 0 474 474 0 8 0 namei 1024 183658 0 183657 12 11 1 1 0 8 0 vmpool 520 16 0 16 7 7 0 1 0 8 0 scsiplug 64 18 0 18 14 14 0 1 0 8 0 scxspl 192 167716 0 167716 36 35 1 7 0 8 1 plimitpl 152 1350 0 1344 1 0 1 1 0 8 0 sigapl 432 15452 0 15440 2 0 2 2 0 8 0 futexpl 56 356770 0 356767 14 13 1 1 0 8 0 knotepl 112 3744 0 3725 10 9 1 3 0 8 0 kqueuepl 104 3990 0 3988 1 0 1 1 0 8 0 pipepl 112 8660 0 8641 28 27 1 2 0 8 0 fdescpl 424 15453 0 15440 2 0 2 2 0 8 0 filepl 120 132198 0 132105 42 38 4 7 0 8 1 lockfpl 104 27263 0 27261 1 0 1 1 0 8 0 lockfspl 48 7114 0 7112 1 0 1 1 0 8 0 sessionpl 112 75 0 67 1 0 1 1 0 8 0 pgrppl 48 259 0 251 1 0 1 1 0 8 0 ucredpl 96 17833 0 17826 1 0 1 1 0 8 0 zombiepl 144 15448 0 15448 4 3 1 1 0 8 1 processpl 864 15477 0 15448 4 0 4 4 0 8 0 procpl 632 34699 0 34658 6 2 4 5 0 8 0 sosppl 128 204 0 204 47 47 0 1 0 8 0 sockpl 384 33646 0 33618 108 103 5 9 0 8 1 mcl64k 65536 1292 0 1289 135 134 1 33 0 8 0 mcl16k 16384 113 0 113 59 58 1 1 0 8 1 mcl12k 12288 350 0 350 47 46 1 1 0 8 1 mcl9k 9216 140 0 140 66 65 1 1 0 8 1 mcl8k 8192 425 0 425 47 46 1 1 0 8 1 mcl4k 4096 1270 0 1270 17 16 1 1 0 8 1 mcl2k2 2112 104 0 104 52 52 0 1 0 8 0 mcl2k 2048 82808 0 82760 28 21 7 22 0 8 0 mtagpl 80 404 0 396 12 11 1 1 0 8 0 mbufpl 256 210809 0 210695 85 75 10 24 0 8 0 bufpl 256 43938 0 34912 565 0 565 565 0 8 0 anonpl 16 1371754 0 1358076 319 253 66 75 0 62 0 amapchunkpl 152 70516 0 70409 188 183 5 28 0 158 0 amappl16 192 75801 0 75005 407 366 41 52 0 8 0 amappl15 184 1842 0 1842 6 6 0 1 0 8 0 amappl14 176 3208 0 3206 1 0 1 1 0 8 0 amappl13 168 2411 0 2409 9 8 1 1 0 8 0 amappl12 160 1021 0 1017 2 1 1 1 0 8 0 amappl11 152 4031 0 4027 1 0 1 1 0 8 0 amappl10 144 1125 0 1123 1 0 1 1 0 8 0 amappl9 136 2310 0 2304 1 0 1 1 0 8 0 amappl8 128 1871 0 1816 3 1 2 2 0 8 0 amappl7 120 1350 0 1343 1 0 1 1 0 8 0 amappl6 112 3898 0 3886 1 0 1 1 0 8 0 amappl5 104 1652 0 1644 1 0 1 1 0 8 0 amappl4 96 15913 0 15885 1 0 1 1 0 8 0 amappl3 88 13265 0 13260 1 0 1 1 0 8 0 amappl2 80 121799 0 121727 3 1 2 3 0 8 0 amappl1 72 289176 0 288768 28 19 9 20 0 8 0 amappl 80 35836 0 35800 1 0 1 1 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 194 0 65 3 0 3 3 0 8 0 uaddrrnd 24 15469 0 15440 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 15469 0 15440 1 0 1 1 0 8 0 vmmpekpl 168 97160 0 97136 2 0 2 2 0 8 0 vmmpepl 168 1825471 0 1823546 826 719 107 115 0 357 20 vmsppl 272 15452 0 15440 6 5 1 2 0 8 0 pdppl 4096 30944 0 30912 10 5 5 6 0 8 0 pvpl 32 4010462 0 3993644 1086 936 150 282 0 265 3 pmappl 200 15468 0 15456 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1089 0 392 21 1 20 20 0 8 0