panic: malloc: out of space in kmem_map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 93258 16776 0 0x2 0 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 malloc(200000,2a,9) at malloc+0xa79 sys/kern/kern_malloc.c:242 kcovioctl(1b1300,80084b01,ffff800014a386e0,3,ffff8000149ee720) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a386e0,3,ffff8000149ee720) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd802c686c80,80084b01,ffff800014a386e0,3,fffffd803f7c6ba0,ffff8000149ee720) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd803037b8f8,80084b01,ffff800014a386e0,ffff8000149ee720) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ee720,ffff800014a38820,ffff800014a38810) at sys_ioctl+0x638 syscall(ffff800014a388c0) at syscall+0x541 Xsyscall(6,36,7f7ffffcea78,36,3,ad67c1be890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffce590, 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: out of space in kmem_map 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:208 malloc(200000,2a,9) at malloc+0xa79 sys/kern/kern_malloc.c:242 kcovioctl(1b1300,80084b01,ffff800014a386e0,3,ffff8000149ee720) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a386e0,3,ffff8000149ee720) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd802c686c80,80084b01,ffff800014a386e0,3,fffffd803f7c6ba0,ffff8000149ee720) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd803037b8f8,80084b01,ffff800014a386e0,ffff8000149ee720) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ee720,ffff800014a38820,ffff800014a38810) at sys_ioctl+0x638 syscall(ffff800014a388c0) at syscall+0x541 Xsyscall(6,36,7f7ffffcea78,36,3,ad67c1be890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffce590, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a38310 rbx 0xffff800014a383c0 rdx 0x2 rcx 0 rax 0 r8 0xffff800014a382d0 r9 0x1 r10 0 r11 0xbc780d3711ccffd8 r12 0x3000000008 r13 0xffff800014a38320 r14 0x100 r15 0x1 rip 0xffffffff81bfb6f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a38300 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=93258 stat=onproc flags process=2 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000149ee4c8,0xffffffff822f0db8 process=0xffff8000ffff66a0 user=0xffff800014a33000, vmspace=0xfffffd803f014420 estcpu=0, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *16776 93258 42040 0 7 0x2 syz-executor.1 92416 414267 68170 0 2 0 syz-executor.0 92416 112912 68170 0 3 0x4000080 ttyout syz-executor.0 92416 308848 68170 0 3 0x4000080 ttyin syz-executor.0 92416 266564 68170 0 3 0x4000080 netio syz-executor.0 92416 252183 68170 0 3 0x4000080 netio syz-executor.0 92416 199070 68170 0 3 0x4000080 fsleep syz-executor.0 68170 211684 42040 0 3 0x82 nanosleep syz-executor.0 1450 334784 0 0 3 0x14200 bored sosplice 42040 515732 93124 0 3 0x82 thrsleep syz-fuzzer 42040 307276 93124 0 3 0x4000082 thrsleep syz-fuzzer 42040 523330 93124 0 3 0x4000082 thrsleep syz-fuzzer 42040 340644 93124 0 3 0x4000082 thrsleep syz-fuzzer 42040 57462 93124 0 3 0x4000082 thrsleep syz-fuzzer 42040 202066 93124 0 3 0x4000082 kqread syz-fuzzer 42040 174730 93124 0 3 0x4000082 thrsleep syz-fuzzer 42040 131439 93124 0 3 0x4000082 thrsleep syz-fuzzer 93124 94360 1518 0 3 0x10008a pause ksh 1518 485199 38818 0 3 0x92 select sshd 48102 119395 1 0 3 0x100083 ttyin getty 38818 492920 1 0 3 0x80 select sshd 84092 442241 95023 73 3 0x100090 kqread syslogd 95023 266602 1 0 3 0x100082 netio syslogd 60572 235334 1 77 3 0x100090 poll dhclient 83709 504132 1 0 3 0x80 poll dhclient 62597 1329 0 0 3 0x14200 pgzero zerothread 96061 298222 0 0 3 0x14200 aiodoned aiodoned 37454 323457 0 0 3 0x14200 syncer update 70421 354020 0 0 3 0x14200 cleaner cleaner 54837 162823 0 0 3 0x14200 reaper reaper 54271 482779 0 0 3 0x14200 pgdaemon pagedaemon 93435 176408 0 0 3 0x14200 bored crynlk 67707 39305 0 0 3 0x14200 bored crypto 73122 24559 0 0 3 0x40014200 acpi0 acpi0 13345 463141 0 0 3 0x14200 bored softnet 42493 241761 0 0 3 0x14200 bored systqmp 16893 490962 0 0 3 0x14200 bored systq 40504 229734 0 0 3 0x40014200 bored softclock 75291 170145 0 0 3 0x40014200 idle0 82968 165800 0 0 3 0x14200 bored smr 1 513855 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 9503 71888K 71896K 78643K 11099 0 0 pcb 25 9K 10K 78643K 887 0 0 rtable 82 3K 4K 78643K 654 0 0 ifaddr 55 12K 14K 78643K 200 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 41 0 0 iov 0 0K 28K 78643K 215 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 75K 78643K 2420 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 24 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 191 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 2130 0 0 sigio 0 0K 0K 78643K 69 0 0 proc 41 30K 46K 78643K 558 0 0 subproc 53 55297K 67586K 78643K 293 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 118 0 0 in_multi 22 1K 2K 78643K 153 0 0 ether_multi 1 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 469 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 81 12K 40K 78643K 5991 0 0 UVM aobj 40 2K 2K 78643K 40 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 51 0 0 NDP 12 0K 0K 78643K 67 0 0 temp 164 2355K 2421K 78643K 8786 0 0 kqueue 0 0K 0K 78643K 10 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 10 0 7 1 0 1 1 0 8 0 inpcbpl 280 694 0 687 1 0 1 1 0 8 0 plimitpl 152 79 0 71 1 0 1 1 0 8 0 rtentry 112 110 0 79 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpcb 544 252 0 248 1 0 1 1 0 8 0 nd6 48 16 0 14 1 0 1 1 0 8 0 ppxss 1128 34 0 32 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 443 0 296 12 0 12 12 0 8 2 art_table 32 444 0 296 2 0 2 2 0 8 0 art_node 16 94 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 59 0 19 1 0 1 1 0 8 0 semapl 112 189 0 179 1 0 1 1 0 8 0 shmpl 112 38 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5645 0 4196 47 0 47 47 0 8 0 ffsino 240 5645 0 4196 86 0 86 86 0 8 0 nchpl 144 8560 0 6930 61 0 61 61 0 8 0 uvmvnodes 72 5946 0 0 109 0 109 109 0 8 0 vnodes 200 5946 0 0 313 0 313 313 0 8 0 namei 1024 21988 0 21988 3 2 1 1 0 8 1 scsiplug 64 4 0 4 1 1 0 1 0 8 0 scxspl 192 38665 0 38665 10 9 1 6 0 8 1 sigapl 432 2279 0 2266 2 0 2 2 0 8 0 futexpl 56 19106 0 19105 3 2 1 1 0 8 0 knotepl 112 496 0 475 1 0 1 1 0 8 0 kqueuepl 104 302 0 300 1 0 1 1 0 8 0 pipepl 112 544 0 525 2 1 1 1 0 8 0 fdescpl 424 2280 0 2266 2 0 2 2 0 8 0 filepl 120 9167 0 9075 7 3 4 4 0 8 1 lockfpl 104 527 0 527 7 6 1 1 0 8 1 lockfspl 32 836 0 836 8 7 1 1 0 8 1 sessionpl 112 23 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 22 1 0 1 1 0 8 0 ucredpl 96 2243 0 2236 1 0 1 1 0 8 0 zombiepl 144 2266 0 2266 2 1 1 1 0 8 1 processpl 840 2295 0 2266 4 0 4 4 0 8 0 procpl 600 5142 0 5101 4 0 4 4 0 8 0 sosppl 128 45 0 45 4 4 0 1 0 8 0 sockpl 384 1470 0 1451 8 5 3 3 0 8 1 mcl64k 65536 1569 0 1568 33 32 1 33 0 8 0 mcl16k 16384 9 0 8 1 0 1 1 0 8 0 mcl12k 12288 73 0 73 3 3 0 1 0 8 0 mcl9k 9216 61 0 61 5 4 1 1 0 8 1 mcl8k 8192 31 0 31 3 3 0 1 0 8 0 mcl4k 4096 77 0 77 7 6 1 1 0 8 1 mcl2k2 2112 12 0 12 2 2 0 1 0 8 0 mcl2k 2048 17922 0 17887 23 16 7 9 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 59420 0 59319 32 22 10 22 0 8 2 bufpl 256 16150 0 9419 421 0 421 421 0 8 0 anonpl 16 275103 0 271957 74 39 35 49 0 62 19 amapchunkpl 152 12851 0 12762 37 21 16 24 0 158 12 amappl16 192 14182 0 14058 49 41 8 31 0 8 1 amappl15 184 669 0 663 1 0 1 1 0 8 0 amappl14 176 42 0 41 2 1 1 1 0 8 0 amappl13 168 38 0 35 1 0 1 1 0 8 0 amappl12 160 14 0 9 1 0 1 1 0 8 0 amappl11 152 1073 0 1059 1 0 1 1 0 8 0 amappl10 144 65 0 62 2 1 1 1 0 8 0 amappl9 136 247 0 243 1 0 1 1 0 8 0 amappl8 128 147 0 127 1 0 1 1 0 8 0 amappl7 120 36 0 32 1 0 1 1 0 8 0 amappl6 112 530 0 520 1 0 1 1 0 8 0 amappl5 104 789 0 779 1 0 1 1 0 8 0 amappl4 96 2457 0 2428 2 1 1 2 0 8 0 amappl3 88 248 0 243 1 0 1 1 0 8 0 amappl2 80 19901 0 19850 2 0 2 2 0 8 0 amappl1 72 49203 0 48775 25 15 10 19 0 8 0 amappl 72 5443 0 5407 1 0 1 1 0 75 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 39 0 0 1 0 1 1 0 8 0 uaddrrnd 24 2280 0 2266 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2280 0 2266 1 0 1 1 0 8 0 vmmpekpl 168 17191 0 17170 2 0 2 2 0 8 0 vmmpepl 168 239500 0 238427 126 72 54 73 0 357 1 vmsppl 264 2279 0 2266 2 1 1 2 0 8 0 pdppl 4096 4566 0 4532 5 0 5 5 0 8 0 pvpl 32 806400 0 800136 373 114 259 281 0 265 197 pmappl 192 2279 0 2266 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 633 0 83 16 0 16 16 0 8 0