panic: malloc: out of space in kmem_map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *253876 2142 0 0x2 0 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:208 malloc(200000,2a,9) at malloc+0xa79 sys/kern/kern_malloc.c:242 kcovioctl(1b1300,80084b01,ffff800014a46c90,3,ffff8000149ff2d8) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a46c90,3,ffff8000149ff2d8) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd8029689dd0,80084b01,ffff800014a46c90,3,fffffd803f7c69c0,ffff8000149ff2d8) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8038d95e10,80084b01,ffff800014a46c90,ffff8000149ff2d8) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ff2d8,ffff800014a46dd0,ffff800014a46dc0) at sys_ioctl+0x638 syscall(ffff800014a46e70) at syscall+0x541 Xsyscall(6,36,7f7ffffe22b8,36,3,3e0bf5c7890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1dd0, 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,ffff800014a46c90,3,ffff8000149ff2d8) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a46c90,3,ffff8000149ff2d8) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd8029689dd0,80084b01,ffff800014a46c90,3,fffffd803f7c69c0,ffff8000149ff2d8) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8038d95e10,80084b01,ffff800014a46c90,ffff8000149ff2d8) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ff2d8,ffff800014a46dd0,ffff800014a46dc0) at sys_ioctl+0x638 syscall(ffff800014a46e70) at syscall+0x541 Xsyscall(6,36,7f7ffffe22b8,36,3,3e0bf5c7890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1dd0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a468c0 rbx 0xffff800014a46970 rdx 0x2 rcx 0 rax 0 r8 0xffff800014a46880 r9 0x1 r10 0 r11 0x15e359aa13ec9155 r12 0x3000000008 r13 0xffff800014a468d0 r14 0x100 r15 0x1 rip 0xffffffff81c210d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a468b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=253876 stat=onproc flags process=2 proc=0 pri=62, usrpri=62, nice=20 forw=0xffffffffffffffff, list=0xffff8000149fe018,0xffffffff82252c30 process=0xffff800014962360 user=0xffff800014a41000, vmspace=0xfffffd803f014210 estcpu=12, cpticks=3, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND * 2142 253876 81963 0 7 0x2 syz-executor.0 93050 404944 73246 0 2 0 syz-executor.1 93050 395862 73246 0 3 0x4000080 wsevent_read syz-executor.1 93050 378096 73246 0 3 0x4000080 fsleep syz-executor.1 93050 181099 73246 0 3 0x4000080 fsleep syz-executor.1 73246 493725 81963 0 3 0x82 nanosleep syz-executor.1 75696 57219 1 0 3 0x100083 ttyin getty 24648 180834 0 0 3 0x14200 bored sosplice 81963 177783 77707 0 3 0x82 thrsleep syz-fuzzer 81963 483322 77707 0 2 0x4000482 syz-fuzzer 81963 116909 77707 0 3 0x4000082 kqread syz-fuzzer 81963 500415 77707 0 3 0x4000082 thrsleep syz-fuzzer 81963 478729 77707 0 3 0x4000082 thrsleep syz-fuzzer 81963 406652 77707 0 3 0x4000082 thrsleep syz-fuzzer 81963 106929 77707 0 3 0x4000082 thrsleep syz-fuzzer 81963 497433 77707 0 3 0x4000082 thrsleep syz-fuzzer 81963 135863 77707 0 3 0x4000082 thrsleep syz-fuzzer 77707 356846 91637 0 3 0x10008a pause ksh 91637 138817 83142 0 3 0x92 select sshd 83142 29931 1 0 3 0x80 select sshd 94779 359736 6679 73 3 0x100090 kqread syslogd 6679 418249 1 0 3 0x100082 netio syslogd 75268 223152 1 77 3 0x100090 poll dhclient 26553 352026 1 0 3 0x80 poll dhclient 9420 321424 0 0 3 0x14200 pgzero zerothread 37586 470957 0 0 3 0x14200 aiodoned aiodoned 62579 457287 0 0 3 0x14200 syncer update 1049 95374 0 0 3 0x14200 cleaner cleaner 84065 486652 0 0 3 0x14200 reaper reaper 36594 374374 0 0 3 0x14200 pgdaemon pagedaemon 39520 191119 0 0 3 0x14200 bored crynlk 41388 521353 0 0 3 0x14200 bored crypto 24641 327975 0 0 3 0x40014200 acpi0 acpi0 56588 300993 0 0 3 0x14200 bored softnet 98268 168086 0 0 3 0x14200 bored systqmp 67394 432908 0 0 3 0x14200 bored systq 79389 58128 0 0 3 0x40014200 bored softclock 71633 422798 0 0 3 0x40014200 idle0 8856 38018 0 0 3 0x14200 bored smr 1 89502 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 9485 71880K 71880K 78643K 10825 0 0 pcb 23 9K 10K 78643K 433 0 0 rtable 82 3K 3K 78643K 626 0 0 ifaddr 46 11K 13K 78643K 190 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 31 0 0 iov 0 0K 24K 78643K 72 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 76K 78643K 1643 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 8 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 64 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 544 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 42 30K 54K 78643K 509 0 0 subproc 53 55297K 67586K 78643K 431 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 71 0 0 in_multi 22 1K 2K 78643K 167 0 0 ether_multi 1 0K 0K 78643K 2 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 261 0 0 pfkey data 0 0K 0K 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 82 12K 22K 78643K 2076 0 0 UVM aobj 23 4K 4K 78643K 29 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 4 0 0 NDP 9 0K 0K 78643K 63 0 0 temp 123 2350K 2415K 78643K 5023 0 0 kqueue 0 0K 0K 78643K 4 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 14 0 11 1 0 1 1 0 8 0 inpcbpl 280 264 0 257 1 0 1 1 0 8 0 plimitpl 152 40 0 33 1 0 1 1 0 8 0 rtentry 112 131 0 100 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 94 0 90 1 0 1 1 0 8 0 nd6 48 24 0 22 1 0 1 1 0 8 0 ppxss 1128 18 0 18 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 617 0 471 12 0 12 12 0 8 1 art_table 32 618 0 471 2 0 2 2 0 8 0 art_node 16 130 0 102 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 58 0 48 1 0 1 1 0 8 0 shmpl 112 27 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2333 0 890 47 0 47 47 0 8 0 ffsino 240 2333 0 890 86 0 86 86 0 8 0 nchpl 144 3263 0 1597 62 0 62 62 0 8 0 uvmvnodes 72 2605 0 0 48 0 48 48 0 8 0 vnodes 200 2605 0 0 138 0 138 138 0 8 0 namei 1024 9687 0 9687 2 1 1 1 0 8 1 scxspl 192 8968 0 8968 10 7 3 5 0 8 3 sigapl 432 682 0 669 2 0 2 2 0 8 0 futexpl 56 8042 0 8040 1 0 1 1 0 8 0 knotepl 112 343 0 322 1 0 1 1 0 8 0 kqueuepl 104 119 0 117 1 0 1 1 0 8 0 pipepl 112 536 0 517 4 3 1 2 0 8 0 fdescpl 424 683 0 669 2 0 2 2 0 8 0 filepl 120 4386 0 4297 5 1 4 5 0 8 1 lockfpl 104 185 0 185 2 1 1 1 0 8 1 lockfspl 32 124 0 124 2 1 1 1 0 8 1 sessionpl 112 28 0 19 1 0 1 1 0 8 0 pgrppl 48 40 0 31 1 0 1 1 0 8 0 ucredpl 96 788 0 781 1 0 1 1 0 8 0 zombiepl 144 669 0 669 2 1 1 1 0 8 1 processpl 840 698 0 669 4 0 4 4 0 8 0 procpl 600 1308 0 1268 4 0 4 4 0 8 0 sosppl 128 11 0 11 3 3 0 1 0 8 0 sockpl 384 646 0 629 3 0 3 3 0 8 1 mcl64k 65536 14 0 14 2 1 1 1 0 8 1 mcl12k 12288 17 0 17 1 0 1 1 0 8 1 mcl9k 9216 9 0 9 3 2 1 1 0 8 1 mcl8k 8192 9 0 9 4 4 0 1 0 8 0 mcl4k 4096 34 0 34 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 47893 0 47857 13 7 6 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 81831 0 81776 12 5 7 8 0 8 0 bufpl 256 6880 0 2313 286 0 286 286 0 8 0 anonpl 16 68947 0 62061 48 4 44 45 0 62 10 amapchunkpl 152 2779 0 2695 9 4 5 5 0 158 1 amappl16 192 2692 0 2255 35 5 30 35 0 8 7 amappl15 184 61 0 57 1 0 1 1 0 8 0 amappl14 176 100 0 99 2 1 1 1 0 8 0 amappl13 168 246 0 242 1 0 1 1 0 8 0 amappl12 160 66 0 63 1 0 1 1 0 8 0 amappl11 152 20 0 8 1 0 1 1 0 8 0 amappl10 144 187 0 184 3 2 1 1 0 8 0 amappl9 136 694 0 690 1 0 1 1 0 8 0 amappl8 128 283 0 267 1 0 1 1 0 8 0 amappl7 120 164 0 160 1 0 1 1 0 8 0 amappl6 112 56 0 45 1 0 1 1 0 8 0 amappl5 104 227 0 216 1 0 1 1 0 8 0 amappl4 96 848 0 821 2 1 1 2 0 8 0 amappl3 88 251 0 245 1 0 1 1 0 8 0 amappl2 80 4772 0 4722 2 0 2 2 0 8 0 amappl1 72 21905 0 21506 25 15 10 19 0 8 0 amappl 72 1570 0 1537 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 28 0 6 1 0 1 1 0 8 0 uaddrrnd 24 683 0 669 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 683 0 669 1 0 1 1 0 8 0 vmmpekpl 168 8747 0 8724 2 0 2 2 0 8 0 vmmpepl 168 79467 0 78125 113 34 79 80 0 357 16 vmsppl 264 682 0 669 5 4 1 2 0 8 0 pdppl 4096 1372 0 1338 6 1 5 6 0 8 0 pvpl 32 226667 0 216708 133 16 117 118 0 265 24 pmappl 192 682 0 669 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 432 0 22 12 0 12 12 0 8 0