panic: malloc: allocation too large, type = 2, size = 18446744073709550336 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *170761 55920 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(fffffffffffffb00,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff8000151399d0) at vm_get_info+0x9a VOP_IOCTL(fffffd803e4ac410,c0185603,ffff8000151399d0,1,fffffd803f7c6840,ffff800014914c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802edf25b0,c0185603,ffff8000151399d0,ffff800014914c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014914c70,ffff800015139ae8,ffff800015139b30) at sys_ioctl+0x5b9 syscall(ffff800015139bb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,37e7b4c70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x380d8cdbdc0, 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 = 18446744073709550336 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(fffffffffffffb00,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff8000151399d0) at vm_get_info+0x9a VOP_IOCTL(fffffd803e4ac410,c0185603,ffff8000151399d0,1,fffffd803f7c6840,ffff800014914c70) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802edf25b0,c0185603,ffff8000151399d0,ffff800014914c70) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800014914c70,ffff800015139ae8,ffff800015139b30) at sys_ioctl+0x5b9 syscall(ffff800015139bb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,37e7b4c70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x380d8cdbdc0, count: -9 ddb> show registers rdi 0xffffffff811fcf17 db_enter+0x17 rsi 0x2646 __ALIGN_SIZE+0x1646 rbp 0xffff800015139610 rbx 0xffff8000151396c0 rdx 0x2647 __ALIGN_SIZE+0x1647 rcx 0xffff800017976000 rax 0xffff800017976000 r8 0xffff8000151395d0 r9 0x1 r10 0xffff800000a64180 r11 0x627140f49da454be r12 0x3000000008 r13 0xffff800015139620 r14 0x100 r15 0x1 rip 0xffffffff811fcf18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015139600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=170761 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800014914508,0xffff800014914028 process=0xffff8000ffff6370 user=0xffff800015134000, vmspace=0xfffffd803f013770 estcpu=28, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 73178 56999 80902 0 3 0x80 nanosleep syz-executor.1 73178 365359 80902 0 2 0x4000000 syz-executor.1 73178 300246 80902 0 3 0x4000080 fsleep syz-executor.1 55920 66647 39093 0 2 0 syz-executor.0 55920 115538 39093 0 3 0x4000080 lockf syz-executor.0 *55920 170761 39093 0 7 0x4000000 syz-executor.0 55920 7865 39093 0 2 0x4000000 syz-executor.0 39093 47155 87614 0 3 0x82 nanosleep syz-executor.0 80902 303104 87614 0 3 0x82 nanosleep syz-executor.1 11122 307389 0 0 3 0x14200 acct acct 44911 365408 0 0 3 0x14200 bored sosplice 87614 73326 26859 0 3 0x82 thrsleep syz-fuzzer 87614 410782 26859 0 3 0x4000082 thrsleep syz-fuzzer 87614 305818 26859 0 3 0x4000082 thrsleep syz-fuzzer 87614 193807 26859 0 3 0x4000082 thrsleep syz-fuzzer 87614 471262 26859 0 3 0x4000082 thrsleep syz-fuzzer 87614 352751 26859 0 3 0x4000082 kqread syz-fuzzer 87614 151520 26859 0 3 0x4000082 thrsleep syz-fuzzer 26859 438385 53933 0 3 0x10008a pause ksh 53933 164097 72905 0 3 0x92 select sshd 62202 51650 1 0 3 0x100083 ttyin getty 72905 286637 1 0 3 0x80 select sshd 2566 363700 1019 73 3 0x100090 kqread syslogd 1019 242828 1 0 3 0x100082 netio syslogd 85792 215808 0 0 2 0x14200 zerothread 15258 261150 0 0 3 0x14200 aiodoned aiodoned 38356 190140 0 0 3 0x14200 syncer update 1538 3480 0 0 3 0x14200 cleaner cleaner 24337 226674 0 0 3 0x14200 reaper reaper 87180 486903 0 0 3 0x14200 pgdaemon pagedaemon 42202 364351 0 0 3 0x14200 bored crynlk 44878 235960 0 0 3 0x14200 bored crypto 40330 411070 0 0 3 0x40014200 acpi0 acpi0 76004 338832 0 0 3 0x14200 bored softnet 93793 326592 0 0 3 0x14200 bored systqmp 61897 279905 0 0 3 0x14200 bored systq 72416 381528 0 0 3 0x40014200 bored softclock 96842 113025 0 0 3 0x40014200 idle0 69494 314523 0 0 3 0x14200 bored smr 1 323405 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 9541 6310K 7134K 78643K 21755 0 0 pcb 13 8K 8K 78643K 603 0 0 rtable 106 4K 4K 78643K 1373 0 0 ifaddr 64 15K 16K 78643K 519 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 614 0 0 iov 0 0K 32K 78643K 541 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 6053 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 95 0 0 VM map 2 0K 0K 78643K 10 0 0 sem 12 0K 1K 78643K 2050 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 5168 0 0 sigio 0 0K 0K 78643K 38 0 0 proc 44 30K 63K 78643K 1594 0 0 subproc 32 2K 2K 78643K 395 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 500 0 0 in_multi 29 1K 2K 78643K 354 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 1 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 174 768K 768K 78643K 174 0 0 exec 0 0K 1K 78643K 812 0 0 pfkey data 0 0K 4K 78643K 2 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 102 21K 30K 78643K 13983 0 0 UVM aobj 130 4K 4K 78643K 147 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 530 0 0 NDP 14 0K 0K 78643K 167 0 0 temp 184 3532K 3603K 78643K 108332 0 0 kqueue 0 0K 0K 78643K 36 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 48 0 42 1 0 1 1 0 8 0 rtpcb 80 272 0 271 6 5 1 1 0 8 0 rtentry 112 251 0 210 2 0 2 2 0 8 0 unpcb 120 3409 0 3399 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 5 0 5 2 2 0 1 0 8 0 tcpqe 32 5705 0 5705 1 1 0 1 0 8 0 tcpcb 544 1002 0 998 1 0 1 1 0 8 0 ipq 40 8 0 8 4 4 0 1 0 8 0 ipqe 40 20 0 20 4 4 0 1 0 8 0 inpcb 280 3573 0 3567 10 8 2 2 0 8 1 nd6 48 44 0 41 1 0 1 1 0 8 0 pkpcb 40 18 0 18 6 6 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 65 0 65 20 20 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1107 0 906 14 1 13 14 0 8 0 art_table 32 1108 0 906 2 0 2 2 0 8 0 art_node 16 249 0 212 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 13 1 0 1 1 0 8 0 semupl 112 27 0 27 1 1 0 1 0 8 0 semapl 112 2048 0 2038 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9825 0 8420 46 0 46 46 0 8 0 ffsino 240 9825 0 8420 83 0 83 83 0 8 0 nchpl 144 20252 0 18645 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 65198 0 65198 3 2 1 1 0 8 1 vmpool 520 8 0 8 4 4 0 1 0 8 0 scsiplug 64 10 0 10 8 7 1 1 0 8 1 scxspl 192 52392 0 52392 21 20 1 6 0 8 1 plimitpl 152 414 0 408 1 0 1 1 0 8 0 sigapl 432 5276 0 5264 2 0 2 2 0 8 0 futexpl 56 118983 0 118982 1 0 1 1 0 8 0 knotepl 112 1198 0 1179 2 1 1 2 0 8 0 kqueuepl 104 1102 0 1099 1 0 1 1 0 8 0 pipepl 112 2318 0 2297 6 5 1 2 0 8 0 fdescpl 424 5277 0 5264 2 0 2 2 0 8 0 filepl 120 43518 0 43422 12 8 4 6 0 8 1 lockfpl 104 1924 0 1922 2 1 1 1 0 8 0 lockfspl 48 648 0 647 2 1 1 1 0 8 0 sessionpl 112 38 0 30 1 0 1 1 0 8 0 pgrppl 48 428 0 420 1 0 1 1 0 8 0 ucredpl 96 5801 0 5795 1 0 1 1 0 8 0 zombiepl 144 5264 0 5264 3 2 1 1 0 8 1 processpl 864 5293 0 5264 4 0 4 4 0 8 0 procpl 632 11803 0 11763 4 0 4 4 0 8 0 sosppl 128 63 0 63 14 14 0 1 0 8 0 sockpl 384 7329 0 7314 18 14 4 6 0 8 1 mcl64k 65536 142 0 142 19 18 1 1 0 8 1 mcl16k 16384 36 0 36 19 18 1 1 0 8 1 mcl12k 12288 96 0 96 21 20 1 1 0 8 1 mcl9k 9216 56 0 56 19 18 1 1 0 8 1 mcl8k 8192 124 0 124 15 14 1 1 0 8 1 mcl4k 4096 385 0 385 6 5 1 1 0 8 1 mcl2k2 2112 35 0 35 15 15 0 1 0 8 0 mcl2k 2048 62229 0 62184 33 26 7 19 0 8 0 mtagpl 80 132 0 121 4 3 1 1 0 8 0 mbufpl 256 127081 0 126981 25 16 9 12 0 8 0 bufpl 256 18651 0 12977 355 0 355 355 0 8 0 anonpl 16 521581 0 508233 204 139 65 74 0 62 7 amapchunkpl 152 24100 0 23995 41 36 5 10 0 158 0 amappl16 192 27599 0 26809 186 145 41 52 0 8 1 amappl15 184 195 0 195 4 4 0 1 0 8 0 amappl14 176 865 0 861 2 1 1 1 0 8 0 amappl13 168 866 0 865 2 1 1 1 0 8 0 amappl12 160 194 0 193 2 1 1 1 0 8 0 amappl11 152 515 0 510 1 0 1 1 0 8 0 amappl10 144 1809 0 1807 1 0 1 1 0 8 0 amappl9 136 1598 0 1588 1 0 1 1 0 8 0 amappl8 128 1147 0 1114 2 0 2 2 0 8 0 amappl7 120 1917 0 1911 1 0 1 1 0 8 0 amappl6 112 494 0 479 1 0 1 1 0 8 0 amappl5 104 479 0 472 1 0 1 1 0 8 0 amappl4 96 5929 0 5901 1 0 1 1 0 8 0 amappl3 88 1072 0 1067 1 0 1 1 0 8 0 amappl2 80 40551 0 40483 4 2 2 3 0 8 0 amappl1 72 103981 0 103566 26 16 10 20 0 8 0 amappl 80 12390 0 12355 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 146 0 17 4 1 3 3 0 8 0 uaddrrnd 24 5285 0 5264 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5285 0 5264 1 0 1 1 0 8 0 vmmpekpl 168 32406 0 32382 2 0 2 2 0 8 0 vmmpepl 168 631357 0 629449 327 220 107 115 0 357 23 vmsppl 272 5276 0 5264 5 4 1 2 0 8 0 pdppl 4096 10576 0 10544 6 1 5 6 0 8 0 pvpl 32 1356670 0 1339796 402 234 168 178 0 265 29 pmappl 200 5284 0 5272 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 590 0 107 15 1 14 14 0 8 0