panic: malloc: allocation too large, type = 2, size = 18446744073709550496

Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*372171  15930      0           0  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(fffffffffffffba0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344
vm_get_info(ffff80001531aaa0) at vm_get_info+0x9a
VOP_IOCTL(fffffd803a9ca680,c0185603,ffff80001531aaa0,2,fffffd803f7c6ae0,ffff8000ffff2780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd802d55a360,c0185603,ffff80001531aaa0,ffff8000ffff2780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff8000ffff2780,ffff80001531abb8,ffff80001531ac00) at sys_ioctl+0x5b9
syscall(ffff80001531ac80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff53,0,3,3e8ddbfb010) at Xsyscall+0x128
end of kernel
end trace frame: 0x3eb13b5bbf0, 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 = 18446744073709550496

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(fffffffffffffba0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344
vm_get_info(ffff80001531aaa0) at vm_get_info+0x9a
VOP_IOCTL(fffffd803a9ca680,c0185603,ffff80001531aaa0,2,fffffd803f7c6ae0,ffff8000ffff2780) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
vn_ioctl(fffffd802d55a360,c0185603,ffff80001531aaa0,ffff8000ffff2780) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
sys_ioctl(ffff8000ffff2780,ffff80001531abb8,ffff80001531ac00) at sys_ioctl+0x5b9
syscall(ffff80001531ac80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff53,0,3,3e8ddbfb010) at Xsyscall+0x128
end of kernel
end trace frame: 0x3eb13b5bbf0, count: -9
ddb> show registers
rdi               0xffffffff8118e297    db_enter+0x17
rsi                           0x25a6    __ALIGN_SIZE+0x15a6
rbp               0xffff80001531a6e0
rbx               0xffff80001531a790
rdx                           0x25a7    __ALIGN_SIZE+0x15a7
rcx               0xffff800015115000
rax               0xffff800015115000
r8                0xffff80001531a6a0
r9                               0x1
r10               0xffff800000a63fc0
r11               0xda0d9c9f60d2beb5
r12                     0x3000000008
r13               0xffff80001531a6f0
r14                            0x100
r15                              0x1
rip               0xffffffff8118e298    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001531a6d0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=372171 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=51, usrpri=51, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffffffff825545b0
    process=0xffff8000ffff6d90 user=0xffff800015315000, vmspace=0xfffffd803f013cc0
    estcpu=36, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 15930  280744  51871      0  2           0                syz-executor.0
*15930  372171  51871      0  7   0x4000000                syz-executor.0
 51871  327266  64305      0  3        0x82  nanosleep     syz-executor.0
 50459  513696  64305      0  2         0x2                syz-executor.1
 17870  261921      0      0  3     0x14200  acct          acct
 98046  380824      0      0  3     0x14200  bored         sosplice
 64305   99042  94260      0  3        0x82  thrsleep      syz-fuzzer
 64305  245528  94260      0  2   0x4000002                syz-fuzzer
 64305  226417  94260      0  3   0x4000082  thrsleep      syz-fuzzer
 64305  407171  94260      0  3   0x4000082  thrsleep      syz-fuzzer
 64305  434020  94260      0  2   0x4000002                syz-fuzzer
 64305  199498  94260      0  3   0x4000082  thrsleep      syz-fuzzer
 64305  165057  94260      0  3   0x4000082  thrsleep      syz-fuzzer
 94260  172367   1787      0  3    0x10008a  pause         ksh
  1787   32424  27543      0  3        0x92  select        sshd
 50356  333629      1      0  3    0x100083  ttyin         getty
 27543   88982      1      0  3        0x80  select        sshd
 27904  364086  24876     73  3    0x100090  kqread        syslogd
 24876    5883      1      0  3    0x100082  netio         syslogd
 57733   45955      1     77  3    0x100090  poll          dhclient
 40547  301515      1      0  3        0x80  poll          dhclient
 44267  357472      0      0  2     0x14200                zerothread
 34604  230467      0      0  3     0x14200  aiodoned      aiodoned
 49483  439610      0      0  3     0x14200  syncer        update
 46785  405020      0      0  3     0x14200  cleaner       cleaner
  4901  265271      0      0  3     0x14200  reaper        reaper
 21730  507648      0      0  3     0x14200  pgdaemon      pagedaemon
 82873  335946      0      0  3     0x14200  bored         crynlk
 47406  347048      0      0  3     0x14200  bored         crypto
 26537  440216      0      0  3  0x40014200  acpi0         acpi0
 82050  185601      0      0  3     0x14200  bored         softnet
 78136  331070      0      0  3     0x14200  bored         systqmp
 72669  308589      0      0  3     0x14200  bored         systq
 70576  262682      0      0  3  0x40014200  bored         softclock
  2160  331524      0      0  3  0x40014200                idle0
 50813  451089      0      0  3     0x14200  bored         smr
     1   58461      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  9554   6367K    6997K  78643K     23562        0        0
            pcb    13      8K       8K  78643K       795        0        0
         rtable   114      4K       4K  78643K      2094        0        0
         ifaddr    71     18K      19K  78643K       609        0        0
       counters    19     16K      16K  78643K        19        0        0
       ioctlops     0      0K       2K  78643K       223        0        0
            iov     0      0K      16K  78643K       495        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1210     76K      77K  78643K      6521        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        76        0        0
         VM map     2      0K       0K  78643K         9        0        0
            sem    12      0K       1K  78643K       956        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1793    195K     288K  78643K     12645        0        0
      file desc     5     13K      25K  78643K     12838        0        0
          sigio     0      0K       0K  78643K        38        0        0
           proc    50     38K      55K  78643K      1933        0        0
        subproc    32      2K       2K  78643K       527        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       435        0        0
       in_multi    33      2K       2K  78643K       469        0        0
    ether_multi     1      0K       0K  78643K        26        0        0
            mrt     0      0K       0K  78643K        16        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys   126    556K     556K  78643K       126        0        0
           exec     0      0K       1K  78643K       952        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   106     22K      38K  78643K     28698        0        0
       UVM aobj   130      4K       4K  78643K       192        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       584        0        0
            NDP    18      0K       1K  78643K       205        0        0
           temp   198   3536K    4175K  78643K     91880        0        0
         kqueue     0      0K       0K  78643K        27        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       64    0       58     1     0     1     1     0     8    0
rtpcb       80      269    0      267     1     0     1     1     0     8    0
rtentry    112      341    0      296     2     0     2     2     0     8    0
unpcb      120     1809    0     1794     3     2     1     2     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
sackhl      24        4    0        4     1     1     0     1     0     8    0
tcpqe       32     5378    0     5378     1     1     0     1     0     8    0
tcpcb      544     1198    0     1194     1     0     1     1     0     8    0
ipq         40        6    0        6     3     3     0     1     0     8    0
ipqe        40       12    0       12     3     3     0     1     0     8    0
inpcb      280    11090    0    11083    23    21     2     3     0     8    1
rttmr       72        2    0        2     2     2     0     1     0     8    0
ip6q        72        1    0        1     1     1     0     1     0     8    0
ip6af       40        2    0        2     1     1     0     1     0     8    0
nd6         48       62    0       58     1     0     1     1     0     8    0
pkpcb       40       16    0       16     6     6     0     1     0     8    0
ppxss      1128      68    0       68    27    26     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     1571    0     1355    24    10    14    16     0     8    0
art_table   32     1572    0     1355     2     0     2     2     0     8    0
art_node    16      337    0      297     1     0     1     1     0     8    0
sysvmsgpl   40       64    0       50     1     0     1     1     0     8    0
semapl     112      954    0      944     1     0     1     1     0     8    0
shmpl      112      190    0       62     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128    17325    0    15923    46     0    46    46     0     8    0
ffsino     240    17325    0    15923    83     0    83    83     0     8    0
nchpl      144    34247    0    32624    61     0    61    61     0     8    0
uvmvnodes   72     6992    0        0   128     0   128   128     0     8    0
vnodes     208     6992    0        0   368     0   368   368     0     8    0
namei      1024   96338    0    96338     6     5     1     1     0     8    1
vmpool     520        7    0        7     4     4     0     1     0     8    0
scsiplug    64        6    0        6     5     4     1     1     0     8    1
scxspl     192    94932    0    94932    19    18     1     7     0     8    1
plimitpl   152      410    0      403     1     0     1     1     0     8    0
sigapl     432    12922    0    12909     2     0     2     2     0     8    0
futexpl     56   197627    0   197627     4     3     1     1     0     8    1
knotepl    112     1375    0     1356     2     1     1     2     0     8    0
kqueuepl   104     1222    0     1220     1     0     1     1     0     8    0
pipepl     112     2676    0     2657     7     6     1     2     0     8    0
fdescpl    424    12923    0    12909     2     0     2     2     0     8    0
filepl     120    55909    0    55800     8     4     4     5     0     8    0
lockfpl    104     1540    0     1539     1     0     1     1     0     8    0
lockfspl    48      524    0      523     1     0     1     1     0     8    0
sessionpl  112       46    0       36     1     0     1     1     0     8    0
pgrppl      48       95    0       85     1     0     1     1     0     8    0
ucredpl     96    10042    0    10034     1     0     1     1     0     8    0
zombiepl   144    12911    0    12911     3     2     1     1     0     8    1
processpl  864    12941    0    12911     4     0     4     4     0     8    0
procpl     632    26628    0    26591     4     0     4     4     0     8    0
sosppl     128     2167    0     2167     5     4     1     1     0     8    1
sockpl     384    13234    0    13210    27    23     4     6     0     8    1
mcl64k     65536    393    0      393    54    53     1    29     0     8    1
mcl16k     16384     30    0       30    17    17     0     1     0     8    0
mcl12k     12288    142    0      142    28    27     1     1     0     8    1
mcl9k      9216      50    0       50    25    24     1     1     0     8    1
mcl8k      8192     114    0      114    28    27     1     1     0     8    1
mcl4k      4096     316    0      316    13    12     1     1     0     8    1
mcl2k2     2112      29    0       29    18    17     1     1     0     8    1
mcl2k      2048   75045    0    75000    33    26     7    15     0     8    1
mtagpl      80      316    0      316    12    12     0     3     0     8    0
mbufpl     256   184847    0   184731    65    55    10    30     0     8    0
bufpl      256    27186    0    20177   439     0   439   439     0     8    0
anonpl      16   944370    0   933951   229   161    68    71     0    62   10
amapchunkpl 152   47730    0    47626    54    48     6    18     0   158    1
amappl16   192    57367    0    56592   201   155    46    52     0     8    6
amappl15   184     1488    0     1486     1     0     1     1     0     8    0
amappl14   176     3138    0     3135     2     1     1     1     0     8    0
amappl13   168     2004    0     2004     6     5     1     1     0     8    1
amappl12   160      963    0      958     1     0     1     1     0     8    0
amappl11   152     1559    0     1548     1     0     1     1     0     8    0
amappl10   144     2900    0     2899     1     0     1     1     0     8    0
amappl9    136     1810    0     1804     1     0     1     1     0     8    0
amappl8    128     1316    0     1281     4     2     2     2     0     8    0
amappl7    120     3052    0     3045     1     0     1     1     0     8    0
amappl6    112     1495    0     1486     1     0     1     1     0     8    0
amappl5    104     1334    0     1321     1     0     1     1     0     8    0
amappl4     96    12563    0    12537     1     0     1     1     0     8    0
amappl3     88     3624    0     3616     1     0     1     1     0     8    0
amappl2     80   103064    0   102997     4     2     2     3     0     8    0
amappl1     72   244857    0   244453    28    19     9    20     0     8    0
amappl      80    27327    0    27292     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      191    0       62     3     0     3     3     0     8    0
uaddrrnd    24    12930    0    12909     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    12930    0    12909     1     0     1     1     0     8    0
vmmpekpl   168    60365    0    60338     2     0     2     2     0     8    0
vmmpepl    168  1478301    0  1476479   464   355   109   114     0   357   25
vmsppl     272    12922    0    12909     3     2     1     2     0     8    0
pdppl      4096   25866    0    25832     6     1     5     6     0     8    0
pvpl        32  2717823    0  2704322   511   344   167   217     0   265   26
pmappl     200    12929    0    12916     1     0     1     1     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      778    0      210    17     0    17    17     0     8    0