panic: malloc: out of space in kmem_map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 8227 94220 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,ffff800014a2fd00,3,ffff8000149ffc38) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a2fd00,3,ffff8000149ffc38) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd802a0d2800,80084b01,ffff800014a2fd00,3,fffffd803f7c6c00,ffff8000149ffc38) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802efce268,80084b01,ffff800014a2fd00,ffff8000149ffc38) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ffc38,ffff800014a2fe40,ffff800014a2fe30) at sys_ioctl+0x638 syscall(ffff800014a2fee0) at syscall+0x541 Xsyscall(6,36,7f7fffff0418,36,3,946609a5890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeff30, 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,ffff800014a2fd00,3,ffff8000149ffc38) at kcovioctl+0xe6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(1b1300,80084b01,ffff800014a2fd00,3,ffff8000149ffc38) at kcovioctl+0xe6 sys/dev/kcov.c:298 VOP_IOCTL(fffffd802a0d2800,80084b01,ffff800014a2fd00,3,fffffd803f7c6c00,ffff8000149ffc38) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd802efce268,80084b01,ffff800014a2fd00,ffff8000149ffc38) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000149ffc38,ffff800014a2fe40,ffff800014a2fe30) at sys_ioctl+0x638 syscall(ffff800014a2fee0) at syscall+0x541 Xsyscall(6,36,7f7fffff0418,36,3,946609a5890) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeff30, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a2f930 rbx 0xffff800014a2f9e0 rdx 0x2 rcx 0 rax 0 r8 0xffff800014a2f8f0 r9 0x1 r10 0 r11 0x9e02174fcdde7a50 r12 0x3000000008 r13 0xffff800014a2f940 r14 0x100 r15 0x1 rip 0xffffffff81696f18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a2f920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=8227 stat=onproc flags process=2 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8968,0xffffffff82282f80 process=0xffff800014962d38 user=0xffff800014a2a000, vmspace=0xfffffd803f013738 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *94220 8227 36172 0 7 0x2 syz-executor.1 37130 342435 36172 0 3 0x82 piperd syz-executor.0 85073 512257 1 0 3 0x100083 ttyin getty 83471 108396 0 0 3 0x14200 bored sosplice 36172 281638 57895 0 3 0x82 thrsleep syz-fuzzer 36172 355334 57895 0 3 0x4000082 thrsleep syz-fuzzer 36172 441717 57895 0 3 0x4000082 thrsleep syz-fuzzer 36172 323838 57895 0 3 0x4000082 thrsleep syz-fuzzer 36172 135749 57895 0 3 0x4000082 thrsleep syz-fuzzer 36172 169133 57895 0 3 0x4000082 kqread syz-fuzzer 36172 273289 57895 0 3 0x4000082 thrsleep syz-fuzzer 36172 126110 57895 0 3 0x4000082 thrsleep syz-fuzzer 57895 89028 92822 0 3 0x10008a pause ksh 92822 163245 12192 0 3 0x92 select sshd 12192 297315 1 0 3 0x80 select sshd 92099 394525 68377 73 3 0x100090 kqread syslogd 68377 90515 1 0 3 0x100082 netio syslogd 72993 426355 1 77 3 0x100090 poll dhclient 64022 342599 1 0 3 0x80 poll dhclient 9550 455006 0 0 3 0x14200 pgzero zerothread 82732 174338 0 0 3 0x14200 aiodoned aiodoned 10316 186901 0 0 3 0x14200 syncer update 82457 426038 0 0 3 0x14200 cleaner cleaner 53524 108055 0 0 3 0x14200 reaper reaper 30918 297136 0 0 3 0x14200 pgdaemon pagedaemon 94527 399186 0 0 3 0x14200 bored crynlk 1215 213416 0 0 3 0x14200 bored crypto 38623 440788 0 0 3 0x40014200 acpi0 acpi0 83908 372922 0 0 3 0x14200 bored softnet 23468 333242 0 0 3 0x14200 bored systqmp 66945 487918 0 0 3 0x14200 bored systq 42759 105971 0 0 3 0x40014200 bored softclock 95794 512371 0 0 3 0x40014200 idle0 1904 318473 0 0 3 0x14200 bored smr 1 329390 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 9542 71899K 71967K 78643K 13934 0 0 pcb 23 9K 11K 78643K 4988 0 0 rtable 82 3K 4K 78643K 4833 0 0 ifaddr 62 20K 25K 78643K 1645 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 200 0 0 iov 0 0K 32K 78643K 1355 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1190 75K 75K 78643K 5964 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 117 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 921 0 0 dirhash 15 2K 2K 78643K 15 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 21K 78643K 8789 0 0 sigio 0 0K 0K 78643K 99 0 0 proc 42 30K 54K 78643K 3051 0 0 subproc 53 55297K 67586K 78643K 3049 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 1085 0 0 in_multi 22 1K 2K 78643K 1339 0 0 ether_multi 1 0K 0K 78643K 57 0 0 mrt 0 0K 0K 78643K 11 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1441 0 0 pfkey data 0 0K 1K 78643K 6 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 96 13K 30K 78643K 21827 0 0 UVM aobj 130 8K 8K 78643K 155 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 403 0 0 NDP 14 0K 0K 78643K 559 0 0 temp 177 2359K 2488K 78643K 32038 0 0 kqueue 0 0K 0K 78643K 84 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 90 0 87 1 0 1 1 0 8 0 inpcbpl 280 4544 0 4537 2 1 1 2 0 8 0 plimitpl 152 383 0 376 1 0 1 1 0 8 0 rtentry 112 833 0 802 2 0 2 2 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpcb 544 1642 0 1638 1 0 1 1 0 8 0 nd6 48 176 0 174 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 230 0 230 37 36 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3888 0 3738 16 3 13 13 0 8 1 art_table 32 3889 0 3738 2 0 2 2 0 8 0 art_node 16 814 0 786 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 13 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 917 0 907 1 0 1 1 0 8 0 shmpl 112 153 0 25 4 0 4 4 0 8 0 dirhash 1024 19 0 0 3 0 3 3 0 8 0 dino1pl 128 16024 0 14251 58 0 58 58 0 8 0 ffsino 240 16024 0 14251 105 0 105 105 0 8 0 nchpl 144 28644 0 26797 69 0 69 69 0 8 0 uvmvnodes 72 7062 0 0 129 0 129 129 0 8 0 vnodes 200 7062 0 0 372 0 372 372 0 8 0 namei 1024 95729 0 95729 4 3 1 1 0 8 1 scsiplug 64 29 0 29 19 19 0 1 0 8 0 scxspl 192 105606 0 105606 54 53 1 6 0 8 1 sigapl 432 8705 0 8693 2 0 2 2 0 8 0 futexpl 56 142955 0 142955 2 1 1 1 0 8 1 knotepl 112 3561 0 3540 1 0 1 1 0 8 0 kqueuepl 104 2587 0 2585 1 0 1 1 0 8 0 pipepl 112 5954 0 5935 15 14 1 2 0 8 0 fdescpl 424 8706 0 8693 2 0 2 2 0 8 0 filepl 120 58746 0 58658 12 8 4 5 0 8 1 lockfpl 104 2299 0 2299 7 6 1 1 0 8 1 lockfspl 32 1526 0 1526 7 6 1 1 0 8 1 sessionpl 112 110 0 101 1 0 1 1 0 8 0 pgrppl 48 219 0 210 1 0 1 1 0 8 0 ucredpl 96 12263 0 12256 1 0 1 1 0 8 0 zombiepl 144 8693 0 8693 3 2 1 1 0 8 1 processpl 840 8721 0 8693 4 0 4 4 0 8 0 procpl 600 19245 0 19210 4 0 4 4 0 8 0 sosppl 128 154 0 154 37 37 0 1 0 8 0 sockpl 384 8919 0 8902 17 14 3 4 0 8 1 mcl64k 65536 4480 0 4480 384 382 2 47 0 8 2 mcl16k 16384 36 0 36 28 27 1 1 0 8 1 mcl12k 12288 190 0 190 40 39 1 1 0 8 1 mcl9k 9216 163 0 163 36 35 1 1 0 8 1 mcl8k 8192 129 0 129 41 40 1 1 0 8 1 mcl4k 4096 505 0 505 11 10 1 1 0 8 1 mcl2k2 2112 61 0 61 28 27 1 1 0 8 1 mcl2k 2048 61307 0 61273 17 12 5 10 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 163033 0 162983 239 230 9 44 0 8 2 bufpl 256 29974 0 22886 444 0 444 444 0 8 0 anonpl 16 920437 0 913410 351 307 44 60 0 62 2 amapchunkpl 152 38519 0 38442 94 84 10 14 0 158 6 amappl16 192 48656 0 48178 424 396 28 42 0 8 3 amappl15 184 1451 0 1447 1 0 1 1 0 8 0 amappl14 176 1767 0 1766 3 2 1 1 0 8 0 amappl13 168 1355 0 1352 1 0 1 1 0 8 0 amappl12 160 2365 0 2363 2 1 1 1 0 8 0 amappl11 152 1483 0 1468 1 0 1 1 0 8 0 amappl10 144 2001 0 2000 4 3 1 1 0 8 0 amappl9 136 1705 0 1702 1 0 1 1 0 8 0 amappl8 128 1230 0 1192 5 3 2 2 0 8 0 amappl7 120 1548 0 1542 1 0 1 1 0 8 0 amappl6 112 1222 0 1212 1 0 1 1 0 8 0 amappl5 104 2313 0 2303 1 0 1 1 0 8 0 amappl4 96 7788 0 7762 2 1 1 2 0 8 0 amappl3 88 2460 0 2455 1 0 1 1 0 8 0 amappl2 80 75480 0 75438 2 0 2 2 0 8 0 amappl1 72 167085 0 166688 24 14 10 19 0 8 0 amappl 72 20120 0 20091 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 154 0 25 3 0 3 3 0 8 0 uaddrrnd 24 8706 0 8693 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8706 0 8693 1 0 1 1 0 8 0 vmmpekpl 168 59628 0 59605 2 0 2 2 0 8 0 vmmpepl 168 918114 0 916786 339 258 81 96 0 357 8 vmsppl 264 8705 0 8693 7 6 1 2 0 8 0 pdppl 4096 17418 0 17386 5 0 5 5 0 8 0 pvpl 32 2683838 0 2673735 755 631 124 237 0 265 20 pmappl 192 8705 0 8693 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 1301 0 709 21 2 19 19 0 8 0