panic: malloc: out of space in kmem_map Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *450526 23976 0 0x2 0 0 syz-executor1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x154 sys/kern/subr_prf.c:208 malloc(23a84aac15a6270c,ffff800000932d00,200000) at malloc+0xa2a sys/kern/kern_malloc.c:242 kcovioctl(9c53fc0089878afd,80084b01,fffffd8026938a58,fffffd803f7c7900,ffffffff818c9346) at kcovioctl+0xd6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(9c53fc0089878afd,80084b01,fffffd8026938a58,fffffd803f7c7900,ffffffff818c9346) at kcovioctl+0xd6 sys/dev/kcov.c:298 VOP_IOCTL(6daa8a8232d928d4,80084b01,fffffd8030481448,ffff800014a38e30,fffffd8026938a58,ffff800014a38e30) at VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290 vn_ioctl(45ff5a4e77cb6458,fffffd8030481448,ffff800014a38e30,8) at vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512 sys_ioctl(f0d753f9c8666f5e,2,ffff800014a38e30) at sys_ioctl+0x639 syscall(5288ce03f129a7f7) at syscall+0x528 Xsyscall(6,36,7f7ffffdc438,36,3,796af71b570) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbf50, 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> show panic malloc: out of space in kmem_map ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x154 sys/kern/subr_prf.c:208 malloc(23a84aac15a6270c,ffff800000932d00,200000) at malloc+0xa2a sys/kern/kern_malloc.c:242 kcovioctl(9c53fc0089878afd,80084b01,fffffd8026938a58,fffffd803f7c7900,ffffffff818c9346) at kcovioctl+0xd6 kd_init sys/dev/kcov.c:405 [inline] kcovioctl(9c53fc0089878afd,80084b01,fffffd8026938a58,fffffd803f7c7900,ffffffff818c9346) at kcovioctl+0xd6 sys/dev/kcov.c:298 VOP_IOCTL(6daa8a8232d928d4,80084b01,fffffd8030481448,ffff800014a38e30,fffffd8026938a58,ffff800014a38e30) at VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290 vn_ioctl(45ff5a4e77cb6458,fffffd8030481448,ffff800014a38e30,8) at vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512sys_ioctl(f0d753f9c8666f5e,2,ffff800014a38e30) at sys_ioctl+0x639 syscall(5288ce03f129a7f7) at syscall+0x528 Xsyscall(6,36,7f7ffffdc438,36,3,796af71b570) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdbf50, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a14360 rbx 0xffff800014a14400 rdx 0xffff800014a38e30 rcx 0 rax 0 r8 0xffffffff81a43754 kprintf+0x184 r9 0x1 r10 0x69b17568b3cc63f0 r11 0x7364ad8bff0cb14d r12 0x3000000008 r13 0xffff800014a14370 r14 0x100 r15 0x1 rip 0xffffffff81b119d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a14350 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor1) pid=450526 stat=onproc flags process=2 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800014a38278,0xffffffff8222c638 process=0xffff8000149b2020 user=0xffff800014a0f000, vmspace=0xfffffd803f014108 estcpu=1, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *23976 450526 84604 0 7 0x2 syz-executor1 23229 196587 84604 0 3 0x82 piperd syz-executor0 23490 436020 1 0 3 0x100083 ttyin getty 18970 298728 0 0 3 0x14200 bored sosplice 84604 324655 13223 0 3 0x82 kqread syz-fuzzer 84604 57053 13223 0 3 0x4000082 thrsleep syz-fuzzer 84604 226826 13223 0 3 0x4000082 thrsleep syz-fuzzer 84604 424576 13223 0 3 0x4000082 thrsleep syz-fuzzer 84604 488053 13223 0 3 0x4000082 thrsleep syz-fuzzer 84604 504366 13223 0 3 0x4000082 thrsleep syz-fuzzer 84604 263568 13223 0 3 0x4000082 thrsleep syz-fuzzer 13223 308447 33277 0 3 0x10008a pause ksh 33277 520794 33059 0 3 0x92 select sshd 33059 101663 1 0 3 0x80 select sshd 46686 279250 33695 73 2 0x100010 syslogd 33695 141188 1 0 3 0x100082 netio syslogd 50124 440706 1 77 3 0x100090 poll dhclient 95584 464832 1 0 3 0x80 poll dhclient 11056 384254 0 0 3 0x14200 pgzero zerothread 35884 409786 0 0 3 0x14200 aiodoned aiodoned 16963 315014 0 0 3 0x14200 syncer update 81720 330371 0 0 3 0x14200 cleaner cleaner 46075 492260 0 0 3 0x14200 reaper reaper 98321 175256 0 0 3 0x14200 pgdaemon pagedaemon 70946 1663 0 0 3 0x14200 bored crynlk 63702 468101 0 0 3 0x14200 bored crypto 88891 481377 0 0 3 0x40014200 acpi0 acpi0 32788 296167 0 0 3 0x14200 bored softnet 89664 122332 0 0 2 0x14200 systqmp 44755 180313 0 0 3 0x14200 bored systq 6886 294365 0 0 2 0x40014200 softclock 82868 375520 0 0 3 0x40014200 idle0 1 159066 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper