panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 35435 70987 0 0 0x4000000 0 syz-executor.4 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7c3208,1,200006c0,ffff80002e7c3238,ffff80002cdb1270) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7c3204,2,200006c0,ffff80002e7c3238,0,fffffffffffffe97,bcd7b154ede9e1d9) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002cdb1270,ffff80002e7c32a8,ffff80002e7c3300) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7c3370) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4daae175f0, 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 *cpu0: kmmaplk: lock not shared ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7c3208,1,200006c0,ffff80002e7c3238,ffff80002cdb1270) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7c3204,2,200006c0,ffff80002e7c3238,0,fffffffffffffe97,bcd7b154ede9e1d9) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002cdb1270,ffff80002e7c32a8,ffff80002e7c3300) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7c3370) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4daae175f0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e7c2ca0 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bb5c80 rcx 0 rax 0xffff80002cdb1270 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd1433ee54930b05c r11 0x36c72129d1c1f335 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e7c2c90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.4) pid=35435 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff80002cdb1510,0xffff80002cdb02c0 process=0xffff80002164ebf0 user=0xffff80002e7be000, vmspace=0xfffffd806c3c3010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 67096 400577 25772 0 2 0 syz-executor.6 82750 367810 28917 0 2 0 syz-executor.0 70987 484771 78709 0 2 0 syz-executor.4 *70987 35435 78709 0 7 0x4000000 syz-executor.4 30852 301912 29511 0 2 0 syz-executor.3 30852 497774 29511 0 3 0x4000080 fsleep syz-executor.3 94587 362576 79400 0 2 0 syz-executor.1 94587 2067 79400 0 2 0x4000000 syz-executor.1 40667 235452 36653 0 2 0 syz-executor.2 40667 433599 36653 0 2 0x4000000 syz-executor.2 40667 173873 36653 0 2 0x4000000 syz-executor.2 90936 184205 66422 0 2 0 syz-executor.7 29511 419414 24487 0 3 0x82 nanoslp syz-executor.3 25772 151885 24487 0 3 0x82 nanoslp syz-executor.6 42160 377586 0 0 3 0x14200 bored sosplice 28917 290568 24487 0 3 0x82 nanoslp syz-executor.0 66422 117253 24487 0 2 0x2 syz-executor.7 36653 16409 24487 0 3 0x82 nanoslp syz-executor.2 79400 150570 24487 0 3 0x82 nanoslp syz-executor.1 29427 230875 24487 0 2 0x2 syz-executor.5 78709 235767 24487 0 3 0x82 nanoslp syz-executor.4 24487 418278 5497 0 3 0x82 thrsleep syz-fuzzer 24487 386434 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 424565 5497 0 3 0x4000082 kqread syz-fuzzer 24487 258729 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 113549 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 487208 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 106734 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 494448 5497 0 3 0x4000082 thrsleep syz-fuzzer 24487 346058 5497 0 3 0x4000082 thrsleep syz-fuzzer 5497 286341 23840 0 3 0x10008a sigsusp ksh 23840 57637 47333 0 3 0x9a kqread sshd 47929 140009 1 0 3 0x100083 ttyin getty 47333 222851 1 0 3 0x88 kqread sshd 28916 195357 90666 73 3 0x1100090 kqread syslogd 90666 476802 1 0 3 0x100082 netio syslogd 1503 230447 1 0 3 0x100080 kqread resolvd 62924 491533 33535 77 3 0x100092 kqread dhcpleased 21516 160872 33535 77 3 0x100092 kqread dhcpleased 33535 157714 1 0 3 0x80 kqread dhcpleased 79062 79757 0 0 3 0x14200 bored smr 5937 35094 0 0 2 0x14200 zerothread 65117 354710 0 0 3 0x14200 aiodoned aiodoned 73846 72305 0 0 3 0x14200 syncer update 82173 487568 0 0 3 0x14200 cleaner cleaner 1744 358575 0 0 3 0x14200 reaper reaper 58844 483773 0 0 3 0x14200 pgdaemon pagedaemon 32454 188450 0 0 3 0x14200 bored viomb 84632 274530 0 0 3 0x40014200 acpi0 acpi0 3725 19675 0 0 3 0x14200 bored softnet 40636 85107 0 0 3 0x14200 bored systqmp 16933 315755 0 0 3 0x14200 bored systq 15067 483681 0 0 3 0x40014200 bored softclock 88133 39681 0 0 3 0x40014200 idle0 1 311526 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 devbuf 10170 6411K 6927K 78643K 12582 0 pcb 13 8K 8K 78643K 128 0 rtable 255 10K 11K 78643K 487 0 ifaddr 89 19K 19K 78643K 190 0 counters 27 17K 17K 78643K 38 0 ioctlops 0 0K 4K 78643K 186 0 iov 0 0K 12K 78643K 41 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1276 80K 80K 78643K 1778 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 29K 78643K 46 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 138 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 93K 78643K 1774 0 sigio 0 0K 0K 78643K 16 0 proc 66 55K 87K 78643K 571 0 subproc 104 6K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 82 0 in_multi 99 6K 6K 78643K 175 0 ether_multi 1 0K 0K 78643K 21 0 mrt 0 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 2K 78643K 753 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 278 77K 80K 78643K 22076 0 UVM aobj 79 3K 3K 78643K 79 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 96 0 NDP 11 0K 2K 78643K 42 0 temp 130 4713K 4779K 78643K 11034 0 kqueue 12 18K 26K 78643K 185 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 67 0 64 1 0 1 1 0 8 0 rtentry 112 134 0 23 4 0 4 4 0 8 0 unpcb 136 488 0 475 1 0 1 1 0 8 0 syncache 296 8 0 8 2 2 0 1 0 8 0 tcpcb 736 239 0 228 9 6 3 4 0 8 1 arp 88 22 0 4 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 304 748 0 741 4 2 2 2 0 8 1 rttmr 72 4 0 3 1 0 1 1 0 8 0 nd6 48 30 0 6 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 pfstscr 40 15 0 14 2 1 1 1 0 8 0 pfrktable 1344 13 0 6 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 0 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 22 0 20 2 1 1 1 0 8 0 pfstate 320 11 0 10 2 1 1 1 0 8 0 pfrule 1360 37 0 29 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 567 0 88 30 0 30 30 0 8 0 art_table 32 568 0 88 4 0 4 4 0 8 0 art_node 16 133 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 17 1 0 1 1 0 8 0 semupl 112 10 0 10 1 1 0 1 0 8 0 semapl 112 136 0 126 2 1 1 1 0 8 0 shmpl 112 76 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3690 0 2262 90 0 90 90 0 8 0 ffsino 240 3690 0 2262 85 0 85 85 0 8 0 nchpl 144 5933 0 4311 63 0 63 63 0 8 0 uvmvnodes 80 4121 0 0 85 0 85 85 0 8 0 vnodes 224 4121 0 0 243 0 243 243 0 8 0 namei 1024 16345 0 16344 2 1 1 2 0 8 0 vmpool 528 13 0 13 1 0 1 1 0 8 1 pfiaddrpl 120 21 0 9 1 0 1 1 0 8 0 scxspl 216 17183 0 17183 9 8 1 8 0 8 1 plimitpl 152 134 0 120 1 0 1 1 0 8 0 sigapl 424 2070 0 2028 6 1 5 6 0 8 0 futexpl 64 12099 0 12098 3 2 1 1 0 8 0 knotepl 120 25990 0 25910 25 21 4 25 0 8 0 kqueuepl 184 261 0 253 1 0 1 1 0 8 0 pipepl 304 210 0 182 3 0 3 3 0 8 0 fdescpl 432 2049 0 2021 7 3 4 5 0 8 0 filepl 120 6639 0 6405 8 0 8 8 0 8 0 lockfpl 104 302 0 300 1 0 1 1 0 8 0 lockfspl 48 141 0 139 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 96 1094 0 1084 1 0 1 1 0 8 0 zombiepl 144 2028 0 2028 3 2 1 1 0 8 1 processpl 1000 2070 0 2028 8 2 6 7 0 8 0 procpl 672 3849 0 3794 8 2 6 6 0 8 1 sosppl 168 27 0 27 1 1 0 1 0 8 0 sockpl 448 1303 0 1280 8 4 4 5 0 8 1 mcl64k 65536 47 0 47 1 1 0 1 0 8 0 mcl12k 12288 17 0 17 1 1 0 1 0 8 0 mcl9k 9216 8 0 8 1 0 1 1 0 8 1 mcl8k 8192 19 0 19 3 2 1 1 0 8 1 mcl4k 4096 117 0 117 2 1 1 1 0 8 1 mcl2k2 2112 7 0 7 1 0 1 1 0 8 1 mcl2k 2048 15046 0 15001 20 11 9 15 0 8 2 mtagpl 96 158 0 15 5 1 4 4 0 8 0 mbufpl 256 46401 0 46006 32 5 27 27 0 8 0 bufpl 288 5777 0 147 403 0 403 403 0 8 0 anonpl 24 484843 0 477035 72 15 57 67 0 188 0 amapchunkpl 152 51388 0 50848 30 5 25 26 0 158 2 amappl16 200 4426 0 4255 26 15 11 21 0 8 0 amappl15 192 925 0 917 1 0 1 1 0 8 0 amappl14 184 444 0 438 1 0 1 1 0 8 0 amappl13 176 374 0 371 1 0 1 1 0 8 0 amappl12 168 244 0 241 1 0 1 1 0 8 0 amappl11 160 42 0 31 1 0 1 1 0 8 0 amappl10 152 16 0 15 1 0 1 1 0 8 0 amappl9 144 456 0 454 1 0 1 1 0 8 0 amappl8 136 716 0 657 3 0 3 3 0 8 0 amappl7 128 208 0 197 1 0 1 1 0 8 0 amappl6 120 207 0 181 2 1 1 2 0 8 0 amappl5 112 1446 0 1432 1 0 1 1 0 8 0 amappl4 104 1056 0 1027 2 1 1 2 0 8 0 amappl3 96 430 0 418 1 0 1 1 0 8 0 amappl2 88 1060 0 1012 3 1 2 3 0 8 0 amappl1 80 37179 0 36647 19 6 13 18 0 8 1 amappl 88 21567 0 21374 7 1 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 78 0 0 2 0 2 2 0 8 0 uaddrrnd 24 2062 0 2034 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2062 0 2034 1 0 1 1 0 8 0 vmmpekpl 168 14923 0 14878 3 0 3 3 0 8 0 vmmpepl 168 177648 0 175647 106 10 96 96 0 357 9 vmsppl 272 2061 0 2034 4 2 2 3 0 8 0 rwobjpl 24 45439 0 40196 32 0 32 32 0 8 0 pdppl 4096 4130 0 4068 155 91 64 78 0 8 2 pvpl 32 968031 0 956077 251 89 162 251 0 265 55 pmappl 216 2061 0 2034 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 852 0 126 21 0 21 21 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7c3208,1,200006c0,ffff80002e7c3238,ffff80002cdb1270) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7c3204,2,200006c0,ffff80002e7c3238,0,fffffffffffffe97,bcd7b154ede9e1d9) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002cdb1270,ffff80002e7c32a8,ffff80002e7c3300) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7c3370) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4daae175f0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825b9701) at panic+0x161 sys/kern/subr_prf.c:202 rw_exit_read(ffffffff82a80478) at rw_exit_read+0x154 sys/kern/kern_rwlock.c:398 uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000c42000,ffff80002e7c2e28) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e7c3208,1,200006c0,ffff80002e7c3238,ffff80002cdb1270) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e7c3204,2,200006c0,ffff80002e7c3238,0,fffffffffffffe97,bcd7b154ede9e1d9) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002cdb1270,ffff80002e7c32a8,ffff80002e7c3300) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e7c3370) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa4daae175f0, count: -9