panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *459744 55453 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,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800026350de8,1,200006c0,ffff800026350e18,ffff80002166c540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800026350de4,2,200006c0,ffff800026350e18,0,fffffffffffffe97,9e797766aec082e) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002166c540,ffff800026350e88,ffff800026350ee0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800026350f50) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a8f6874940, 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,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800026350de8,1,200006c0,ffff800026350e18,ffff80002166c540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800026350de4,2,200006c0,ffff800026350e18,0,fffffffffffffe97,9e797766aec082e) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002166c540,ffff800026350e88,ffff800026350ee0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800026350f50) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a8f6874940, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800026350880 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bb4440 rcx 0 rax 0xffff80002166c540 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8128fbb4b186a23b r11 0x816ac38edfc581dc r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800026350870 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.4) pid=459744 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002166dce0,0xffff80002166c2b0 process=0xffff800021608400 user=0xffff80002634c000, vmspace=0xfffffd80725fe550 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13698 400774 41532 0 2 0 syz-executor.3 70522 472112 77161 0 2 0 syz-executor.5 70522 510914 77161 0 3 0x4000080 fsleep syz-executor.5 17494 42473 45010 0 2 0 syz-executor.1 17494 265328 45010 0 2 0x4000000 syz-executor.1 17494 49278 45010 0 2 0x4000000 syz-executor.1 55453 67431 82297 0 2 0 syz-executor.4 *55453 459744 82297 0 7 0x4000000 syz-executor.4 15326 374526 98977 0 2 0 syz-executor.2 15326 218395 98977 0 3 0x4000080 fsleep syz-executor.2 76743 506517 3481 0 2 0 syz-executor.6 76743 504277 3481 0 3 0x4000080 fsleep syz-executor.6 41532 265240 46096 0 3 0x82 nanoslp syz-executor.3 45010 358436 46096 0 3 0x82 nanoslp syz-executor.1 82297 19914 46096 0 3 0x82 nanoslp syz-executor.4 77161 173195 46096 0 3 0x82 nanoslp syz-executor.5 98977 12848 46096 0 3 0x82 nanoslp syz-executor.2 40709 443663 46096 0 2 0x2 syz-executor.0 164 109291 46096 0 3 0x82 nanoslp syz-executor.7 3481 195169 46096 0 3 0x82 nanoslp syz-executor.6 30705 94859 1 0 3 0x100083 ttyin getty 99404 275482 0 0 3 0x14280 nfsidl nfsio 51874 504896 0 0 3 0x14280 nfsidl nfsio 10104 274428 0 0 3 0x14280 nfsidl nfsio 9641 254040 0 0 3 0x14280 nfsidl nfsio 38031 362001 0 0 3 0x14280 nfsidl nfsio 85183 504840 0 0 3 0x14280 nfsidl nfsio 25164 252161 0 0 3 0x14280 nfsidl nfsio 43692 134624 0 0 3 0x14200 bored sosplice 46096 26516 94293 0 3 0x82 thrsleep syz-fuzzer 46096 433417 94293 0 3 0x4000082 thrsleep syz-fuzzer 46096 284437 94293 0 3 0x4000082 thrsleep syz-fuzzer 46096 263841 94293 0 3 0x4000082 thrsleep syz-fuzzer 46096 186971 94293 0 3 0x4000082 thrsleep syz-fuzzer 46096 306998 94293 0 3 0x4000082 thrsleep syz-fuzzer 46096 500146 94293 0 3 0x4000082 kqread syz-fuzzer 46096 395011 94293 0 3 0x4000082 thrsleep syz-fuzzer 94293 229185 31782 0 3 0x10008a sigsusp ksh 31782 374325 62204 0 3 0x9a kqread sshd 62204 105489 1 0 3 0x88 kqread sshd 61280 99909 41056 73 3 0x1100090 kqread syslogd 41056 404384 1 0 3 0x100082 netio syslogd 28546 478589 1 0 3 0x100080 kqread resolvd 72944 228984 6695 77 3 0x100092 kqread dhcpleased 40685 492673 6695 77 3 0x100092 kqread dhcpleased 6695 423633 1 0 3 0x80 kqread dhcpleased 5152 473383 0 0 3 0x14200 bored smr 12378 253118 0 0 2 0x14200 zerothread 40602 177194 0 0 3 0x14200 aiodoned aiodoned 80921 7502 0 0 3 0x14200 syncer update 78424 166866 0 0 3 0x14200 cleaner cleaner 14953 433206 0 0 3 0x14200 reaper reaper 7597 424183 0 0 3 0x14200 pgdaemon pagedaemon 55167 80494 0 0 3 0x14200 bored viomb 62901 135488 0 0 3 0x40014200 acpi0 acpi0 20558 389442 0 0 3 0x14200 bored softnet 91368 78112 0 0 3 0x14200 bored systqmp 73062 503681 0 0 3 0x14200 bored systq 57324 28674 0 0 3 0x40014200 bored softclock 18900 348015 0 0 3 0x40014200 idle0 1 403005 0 0 3 0x80082 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 10216 6580K 6991K 78643K 41140 0 pcb 13 18K 20K 78643K 4061 0 rtable 203 20K 22K 78643K 5164 0 ifaddr 94 22K 25K 78643K 1683 0 sysctl 3 1K 1K 78643K 7 0 counters 27 17K 17K 78643K 232 0 ioctlops 0 0K 4K 78643K 8856 0 iov 0 0K 32K 78643K 2071 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1383 86K 87K 78643K 12525 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 187 0 VM map 2 0K 0K 78643K 2 0 sem 14 16K 32K 78643K 680 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 93K 78643K 19580 0 sigio 0 0K 0K 78643K 639 0 proc 65 55K 87K 78643K 3967 0 subproc 104 6K 6K 78643K 1382 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1080 0 in_multi 58 3K 7K 78643K 1996 0 ether_multi 1 0K 0K 78643K 239 0 mrt 2 0K 0K 78643K 72 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 2K 78643K 5666 0 pfkey data 0 0K 0K 78643K 4 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 513 887K 895K 78643K 234939 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1146 0 NDP 13 0K 1K 78643K 502 0 temp 143 4721K 4969K 78643K 203136 0 kqueue 12 18K 31K 78643K 1244 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 1665 0 1662 26 24 2 3 0 8 1 rtentry 112 1612 0 1541 5 2 3 4 0 8 0 unpcb 136 13351 0 13336 143 135 8 8 0 8 7 syncache 296 24 0 24 7 7 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 61 0 61 6 6 0 1 0 8 0 tcpcb 736 7013 0 6994 238 236 2 21 0 8 0 arp 88 234 0 220 1 0 1 1 0 8 0 ipq 40 36 0 36 11 11 0 1 0 8 0 ipqe 40 97 0 97 11 11 0 1 0 8 0 inpcb 304 34491 0 34484 310 304 6 15 0 8 5 rttmr 72 21 0 21 7 7 0 1 0 8 0 ip6q 72 6 0 5 3 2 1 1 0 8 0 ip6af 40 7 0 6 2 1 1 1 0 8 0 nd6 48 404 0 388 1 0 1 1 0 8 0 pkpcb 40 35 0 34 8 7 1 1 0 8 0 kcovpl 48 106 0 98 1 0 1 1 0 8 0 ppxss 1152 50 0 50 12 12 0 1 0 8 0 pfstscr 40 6 0 6 1 1 0 1 0 8 0 pfosfp 40 3 0 2 1 0 1 1 0 8 0 pfosfpen 112 3 0 2 1 0 1 1 0 8 0 pfrktable 1344 135 0 122 5 3 2 2 0 8 0 pftag 88 13 0 4 1 0 1 1 0 8 0 pfqueue 264 3 0 3 1 1 0 1 0 8 0 pfstkey 112 6 0 6 1 1 0 1 0 8 0 pfstate 320 3 0 3 1 1 0 1 0 8 0 pfrule 1360 557 0 508 10 5 5 5 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 5850 0 5586 71 51 20 30 0 8 1 art_table 32 5852 0 5587 5 1 4 4 0 8 0 art_node 16 1603 0 1542 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 1 0 1 0 8 0 semupl 112 8 0 8 1 1 0 1 0 8 0 semapl 112 661 0 649 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 27481 0 25950 97 0 97 97 0 8 0 ffsino 240 27481 0 25950 91 0 91 91 0 8 0 nchpl 144 52864 0 51243 62 0 62 62 0 8 0 uvmvnodes 80 7587 0 0 155 0 155 155 0 8 0 vnodes 224 7587 0 0 447 0 447 447 0 8 0 namei 1024 200929 0 200928 13 12 1 2 0 8 0 vcpupl 1984 102 0 0 13 0 13 13 0 8 0 vmpool 528 286 0 184 8 1 7 7 0 8 0 pfiaddrpl 120 42 0 26 2 1 1 1 0 8 0 scsiplug 72 19 0 19 6 6 0 1 0 8 0 scxspl 216 166911 0 166911 43 42 1 8 0 8 1 plimitpl 152 2279 0 2264 1 0 1 1 0 8 0 sigapl 424 19714 0 19665 12 5 7 8 0 8 0 futexpl 64 188277 0 188274 9 8 1 1 0 8 0 knotepl 120 237259 0 237179 83 73 10 10 0 8 7 kqueuepl 184 4271 0 4263 73 72 1 6 0 8 0 pipepl 304 4349 0 4321 118 110 8 12 0 8 5 fdescpl 432 19654 0 19627 7 3 4 5 0 8 0 filepl 120 153817 0 153580 211 195 16 19 0 8 8 lockfpl 104 5696 0 5694 13 12 1 2 0 8 0 lockfspl 48 1507 0 1505 1 0 1 1 0 8 0 sessionpl 144 126 0 110 1 0 1 1 0 8 0 pgrppl 48 1018 0 1002 1 0 1 1 0 8 0 ucredpl 96 17359 0 17338 1 0 1 1 0 8 0 zombiepl 144 19666 0 19665 4 3 1 1 0 8 0 processpl 1000 19714 0 19665 14 6 8 9 0 8 0 procpl 672 48831 0 48769 36 29 7 9 0 8 0 sosppl 168 142 0 142 25 25 0 1 0 8 0 sockpl 448 49686 0 49660 816 805 11 37 0 8 8 mcl64k 65536 816 0 816 49 48 1 1 0 8 1 mcl16k 16384 149 0 149 42 41 1 1 0 8 1 mcl12k 12288 618 0 618 52 51 1 1 0 8 1 mcl9k 9216 527 0 527 45 45 0 1 0 8 0 mcl8k 8192 1132 0 1132 51 50 1 1 0 8 1 mcl4k 4096 1938 0 1938 35 34 1 1 0 8 1 mcl2k2 2112 131 0 131 48 48 0 1 0 8 0 mcl2k 2048 116725 0 116683 59 50 9 24 0 8 3 mtagpl 96 4732 0 4501 36 29 7 21 0 8 0 mbufpl 256 344033 0 343620 536 503 33 408 0 8 3 bufpl 288 37499 0 29912 543 0 543 543 0 8 0 anonpl 24 5536470 0 5512666 449 269 180 206 0 188 18 amapchunkpl 152 581183 0 580256 210 170 40 62 0 158 0 amappl16 200 60159 0 59138 337 276 61 73 0 8 1 amappl15 192 4950 0 4943 1 0 1 1 0 8 0 amappl14 184 3331 0 3329 1 0 1 1 0 8 0 amappl13 176 3102 0 3101 1 0 1 1 0 8 0 amappl12 168 2724 0 2721 2 1 1 1 0 8 0 amappl11 160 2026 0 2010 1 0 1 1 0 8 0 amappl10 152 1147 0 1142 1 0 1 1 0 8 0 amappl9 144 1879 0 1875 1 0 1 1 0 8 0 amappl8 136 4497 0 4377 5 0 5 5 0 8 0 amappl7 128 2232 0 2219 1 0 1 1 0 8 0 amappl6 120 1908 0 1882 2 1 1 2 0 8 0 amappl5 112 14812 0 14796 1 0 1 1 0 8 0 amappl4 104 7716 0 7685 1 0 1 1 0 8 0 amappl3 96 6359 0 6343 1 0 1 1 0 8 0 amappl2 88 5495 0 5443 3 1 2 3 0 8 0 amappl1 80 347863 0 347317 20 7 13 18 0 8 0 amappl 88 232455 0 232159 9 1 8 8 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 19940 0 19811 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 19940 0 19811 1 0 1 1 0 8 0 vmmpekpl 168 136873 0 136802 4 0 4 4 0 8 0 vmmpepl 168 1814843 0 1811753 505 343 162 168 0 357 13 vmsppl 272 19939 0 19811 10 1 9 9 0 8 0 rwobjpl 24 425699 0 415913 80 19 61 61 0 8 0 pdppl 4096 39886 0 39724 1261 1095 166 168 0 8 4 pvpl 32 9324507 0 9302265 689 455 234 327 0 265 10 pmappl 216 19939 0 19811 8 0 8 8 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 3930 0 2934 37 7 30 35 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,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800026350de8,1,200006c0,ffff800026350e18,ffff80002166c540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800026350de4,2,200006c0,ffff800026350e18,0,fffffffffffffe97,9e797766aec082e) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002166c540,ffff800026350e88,ffff800026350ee0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800026350f50) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a8f6874940, 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,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000cd6000,ffff800026350a08) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff800026350de8,1,200006c0,ffff800026350e18,ffff80002166c540) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff800026350de4,2,200006c0,ffff800026350e18,0,fffffffffffffe97,9e797766aec082e) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002166c540,ffff800026350e88,ffff800026350ee0) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff800026350f50) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a8f6874940, count: -9