panic: kmmaplk: lock not shared Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *423267 9857 0 0 0x4000000 0 syz-executor.6 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,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e883d78,1,200006c0,ffff80002e883da8,ffff80002160e7f0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e883d74,2,200006c0,ffff80002e883da8,0,fffffffffffffe97,2377a29e694c14d0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e7f0,ffff80002e883e18,ffff80002e883e70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e883ee0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x23e2dff05a0, 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,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e883d78,1,200006c0,ffff80002e883da8,ffff80002160e7f0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e883d74,2,200006c0,ffff80002e883da8,0,fffffffffffffe97,2377a29e694c14d0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e7f0,ffff80002e883e18,ffff80002e883e70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e883ee0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x23e2dff05a0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e883810 rbx 0xffffffff82a80478 kernel_map_store+0x8 rdx 0xffff800000bc6400 rcx 0 rax 0xffff80002160e7f0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6d5f1f34c2c403cd r11 0x20a686949b3308c0 r12 0 r13 0xffffffff82a80470 kernel_map_store r14 0 r15 0x1 rip 0xffffffff8120dfc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e883800 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) pid=423267 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff80002160e010,0xffff80002160fa60 process=0xffff80002996cff0 user=0xffff80002e87e000, vmspace=0xfffffd80688a0120 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 67464 171340 90027 0 2 0 syz-executor.3 15314 81301 71784 0 2 0 syz-executor.7 15314 133405 71784 0 3 0x4000080 fsleep syz-executor.7 9857 342897 10168 0 2 0 syz-executor.6 * 9857 423267 10168 0 7 0x4000000 syz-executor.6 67898 463040 73114 0 2 0 syz-executor.2 67898 74109 73114 0 3 0x4000080 fsleep syz-executor.2 60418 89453 11534 0 2 0 syz-executor.1 60418 232693 11534 0 3 0x4000080 fsleep syz-executor.1 51002 396581 59011 0 3 0x80 nanoslp syz-executor.4 51002 143317 59011 0 3 0x4000080 fsleep syz-executor.4 51002 367984 59011 0 3 0x4000080 bpf syz-executor.4 51002 173896 59011 0 3 0x4000080 fsleep syz-executor.4 6156 518307 68780 0 2 0x2 syz-executor.5 90027 259075 68780 0 3 0x82 nanoslp syz-executor.3 78476 85385 0 0 3 0x14280 nfsidl nfsio 24868 505182 0 0 3 0x14280 nfsidl nfsio 49904 194401 0 0 3 0x14280 nfsidl nfsio 71453 64639 0 0 3 0x14280 nfsidl nfsio 68222 419515 0 0 3 0x14280 nfsidl nfsio 11607 166300 0 0 3 0x14280 nfsidl nfsio 79994 344951 0 0 3 0x14280 nfsidl nfsio 25959 201518 0 0 3 0x14280 nfsidl nfsio 38278 71998 0 0 3 0x14280 nfsidl nfsio 68811 59221 0 0 3 0x14280 nfsidl nfsio 86240 199237 0 0 3 0x14280 nfsidl nfsio 44450 16049 0 0 3 0x14280 nfsidl nfsio 25633 116324 0 0 3 0x14280 nfsidl nfsio 61703 516891 0 0 3 0x14280 nfsidl nfsio 99302 182886 0 0 3 0x14280 nfsidl nfsio 76567 331462 0 0 3 0x14280 nfsidl nfsio 56708 499779 0 0 3 0x14280 nfsidl nfsio 52870 373465 0 0 3 0x14280 nfsidl nfsio 67888 427251 0 0 3 0x14280 nfsidl nfsio 77796 271809 0 0 3 0x14280 nfsidl nfsio 59011 27724 68780 0 3 0x82 nanoslp syz-executor.4 10168 3625 68780 0 3 0x82 nanoslp syz-executor.6 71784 61067 68780 0 3 0x82 nanoslp syz-executor.7 85497 437664 1 0 3 0x100083 ttyin getty 1392 508471 68780 0 3 0x82 nanoslp syz-executor.0 73114 46290 68780 0 3 0x82 nanoslp syz-executor.2 11534 211981 68780 0 3 0x82 nanoslp syz-executor.1 52143 394175 0 0 3 0x14200 bored sosplice 68780 426721 84009 0 3 0x82 thrsleep syz-fuzzer 68780 377654 84009 0 3 0x4000082 nanoslp syz-fuzzer 68780 41532 84009 0 3 0x4000082 thrsleep syz-fuzzer 68780 377067 84009 0 3 0x4000082 thrsleep syz-fuzzer 68780 7537 84009 0 3 0x4000082 thrsleep syz-fuzzer 68780 515421 84009 0 3 0x4000082 thrsleep syz-fuzzer 68780 319959 84009 0 3 0x4000082 kqread syz-fuzzer 68780 806 84009 0 3 0x4000082 thrsleep syz-fuzzer 84009 430039 11919 0 3 0x10008a sigsusp ksh 11919 301366 29374 0 3 0x9a kqread sshd 29374 17530 1 0 3 0x88 kqread sshd 33998 59445 63490 73 3 0x1100090 kqread syslogd 63490 90488 1 0 3 0x100082 netio syslogd 42405 154088 1 0 3 0x100080 kqread resolvd 63565 152343 78798 77 3 0x100092 kqread dhcpleased 17391 330397 78798 77 3 0x100092 kqread dhcpleased 78798 39456 1 0 3 0x80 kqread dhcpleased 71030 258959 0 0 3 0x14200 bored smr 86358 210869 0 0 2 0x14200 zerothread 59601 247311 0 0 3 0x14200 aiodoned aiodoned 22584 304022 0 0 3 0x14200 syncer update 43690 436134 0 0 3 0x14200 cleaner cleaner 77984 349890 0 0 3 0x14200 reaper reaper 53518 51509 0 0 3 0x14200 pgdaemon pagedaemon 74441 94279 0 0 3 0x14200 bored viomb 98198 285927 0 0 3 0x40014200 acpi0 acpi0 80427 33913 0 0 3 0x14200 bored softnet 54893 436603 0 0 3 0x14200 bored systqmp 23363 443453 0 0 3 0x14200 bored systq 98046 452727 0 0 3 0x40014200 bored softclock 77002 375940 0 0 3 0x40014200 idle0 1 85600 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 10207 6485K 14691K 78643K 85510 0 pcb 13 16K 18K 78643K 3295 0 rtable 213 7K 9K 78643K 5740 0 ifaddr 97 26K 31K 78643K 1572 0 sysctl 3 1K 1K 78643K 3 0 counters 28 17K 17K 78643K 284 0 ioctlops 0 0K 4K 78643K 4566 0 iov 0 0K 36K 78643K 1977 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1691 106K 106K 78643K 40037 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 162 0 VM map 2 0K 0K 78643K 2 0 sem 19 20K 40K 78643K 2665 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 69K 78643K 19885 0 sigio 0 0K 0K 78643K 377 0 proc 66 55K 72K 78643K 3736 0 subproc 104 6K 8K 78643K 1393 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 977 0 in_multi 87 6K 7K 78643K 1905 0 ether_multi 1 0K 0K 78643K 309 0 mrt 1 0K 0K 78643K 127 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 187 837K 837K 78643K 187 0 exec 0 0K 2K 78643K 5013 0 pfkey data 0 0K 2K 78643K 13 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 634 1455K 1456K 78643K 245996 0 UVM aobj 131 8K 8K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1100 0 NDP 14 0K 2K 78643K 500 0 temp 138 4707K 4955K 78643K 194624 0 kqueue 13 20K 36K 78643K 5248 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 2053 0 2048 31 30 1 5 0 8 0 rtentry 112 1379 0 1284 4 1 3 4 0 8 0 unpcb 136 11153 0 11133 124 123 1 9 0 8 0 syncache 296 43 0 43 14 14 0 1 0 8 0 tcpqe 32 50 0 50 4 4 0 1 0 8 0 tcpcb 736 6797 0 6787 232 229 3 19 0 8 0 arp 88 224 0 205 1 0 1 1 0 8 0 ipq 40 26 0 25 9 8 1 1 0 8 0 ipqe 40 300 0 297 9 8 1 1 0 8 0 inpcb 304 18111 0 18102 298 292 6 16 0 8 5 rttmr 72 42 0 42 10 9 1 1 0 8 1 ip6q 72 9 0 9 3 3 0 1 0 8 0 ip6af 40 13 0 13 2 2 0 1 0 8 0 nd6 48 344 0 323 1 0 1 1 0 8 0 pkpcb 40 183 0 183 11 11 0 1 0 8 0 kcovpl 48 96 0 88 1 0 1 1 0 8 0 ppxss 1152 63 0 63 17 17 0 1 0 8 0 pfstscr 40 10 0 9 1 0 1 1 0 8 0 pfosfp 40 5 0 4 1 0 1 1 0 8 0 pfosfpen 112 5 0 4 1 0 1 1 0 8 0 pfrktable 1344 28 0 28 1 1 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 8 0 6 1 0 1 1 0 8 0 pfstkey 112 14 0 12 1 0 1 1 0 8 0 pfstate 320 7 0 6 1 0 1 1 0 8 0 pfrule 1360 53 0 51 2 1 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 6317 0 5909 61 32 29 30 0 8 0 art_table 32 6318 0 5909 4 0 4 4 0 8 0 art_node 16 1378 0 1292 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 9 1 0 1 1 0 8 0 semapl 112 2659 0 2642 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 27527 0 26003 96 0 96 96 0 8 0 ffsino 240 27527 0 26003 90 0 90 90 0 8 0 nchpl 144 52945 0 51325 62 1 61 62 0 8 0 uvmvnodes 80 6092 0 0 125 0 125 125 0 8 0 vnodes 224 6092 0 0 359 0 359 359 0 8 0 namei 1024 219604 0 219603 9 8 1 2 0 8 0 vcpupl 1984 169 0 0 22 0 22 22 0 8 0 vmpool 528 231 0 62 15 3 12 12 0 8 0 pfiaddrpl 120 8 0 8 1 1 0 1 0 8 0 scsiplug 72 14 0 14 4 4 0 1 0 8 0 scxspl 216 155902 0 155902 36 34 2 8 0 8 2 plimitpl 152 2498 0 2484 1 0 1 1 0 8 0 sigapl 424 20036 0 19974 10 2 8 8 0 8 0 futexpl 64 220306 0 220301 6 5 1 1 0 8 0 knotepl 120 251172 0 251091 63 59 4 11 0 8 0 kqueuepl 184 8858 0 8849 73 69 4 7 0 8 3 pipepl 304 4033 0 4005 106 103 3 12 0 8 0 fdescpl 432 19979 0 19951 4 0 4 4 0 8 0 filepl 120 156934 0 156687 188 174 14 18 0 8 5 lockfpl 104 5814 0 5812 13 12 1 2 0 8 0 lockfspl 48 2075 0 2073 1 0 1 1 0 8 0 sessionpl 144 117 0 101 1 0 1 1 0 8 0 pgrppl 48 1399 0 1383 1 0 1 1 0 8 0 ucredpl 96 15935 0 15917 1 0 1 1 0 8 0 zombiepl 144 19975 0 19974 4 3 1 1 0 8 0 processpl 1000 20036 0 19974 11 3 8 9 0 8 0 procpl 672 55646 0 55570 29 21 8 9 0 8 1 sosppl 168 137 0 137 28 28 0 1 0 8 0 sockpl 448 31506 0 31472 667 657 10 30 0 8 6 mcl64k 65536 902 0 902 53 52 1 1 0 8 1 mcl16k 16384 224 0 224 59 58 1 1 0 8 1 mcl12k 12288 713 0 713 53 52 1 1 0 8 1 mcl9k 9216 321 0 321 64 63 1 1 0 8 1 mcl8k 8192 1410 0 1410 34 33 1 1 0 8 1 mcl4k 4096 2445 0 2445 26 25 1 1 0 8 1 mcl2k2 2112 157 0 157 63 63 0 1 0 8 0 mcl2k 2048 121992 0 121932 83 73 10 20 0 8 0 mtagpl 96 6141 0 5741 57 35 22 28 0 8 0 mbufpl 256 339193 0 338549 620 548 72 230 0 8 0 bufpl 288 35720 0 29310 459 0 459 459 0 8 0 anonpl 24 5742240 0 5715112 419 250 169 199 0 188 0 amapchunkpl 152 591607 0 590605 154 113 41 47 0 158 0 amappl16 200 59401 0 58364 278 218 60 67 0 8 0 amappl15 192 6426 0 6416 1 0 1 1 0 8 0 amappl14 184 3504 0 3497 1 0 1 1 0 8 0 amappl13 176 1977 0 1976 1 0 1 1 0 8 0 amappl12 168 3305 0 3299 2 1 1 1 0 8 0 amappl11 160 685 0 672 1 0 1 1 0 8 0 amappl10 152 852 0 848 1 0 1 1 0 8 0 amappl9 144 4283 0 4278 1 0 1 1 0 8 0 amappl8 136 5354 0 5232 5 0 5 5 0 8 0 amappl7 128 3098 0 3088 1 0 1 1 0 8 0 amappl6 120 4276 0 4247 2 1 1 2 0 8 0 amappl5 112 14155 0 14139 1 0 1 1 0 8 0 amappl4 104 7589 0 7554 2 0 2 2 0 8 0 amappl3 96 6051 0 6030 1 0 1 1 0 8 0 amappl2 88 5294 0 5222 3 1 2 3 0 8 0 amappl1 80 360911 0 360334 18 5 13 18 0 8 0 amappl 88 243642 0 243299 13 4 9 9 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 20210 0 20013 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 20210 0 20013 2 0 2 2 0 8 0 vmmpekpl 168 150786 0 150710 4 0 4 4 0 8 0 vmmpepl 168 1851534 0 1848149 548 394 154 181 0 357 0 vmsppl 272 20209 0 20013 18 4 14 14 0 8 0 rwobjpl 24 446531 0 438141 53 2 51 52 0 8 0 pdppl 4096 40426 0 40195 1255 1022 233 233 0 8 2 pvpl 32 9547094 0 9521694 704 476 228 262 0 265 17 pmappl 216 20209 0 20013 11 0 11 11 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 3771 0 2744 39 9 30 31 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,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e883d78,1,200006c0,ffff80002e883da8,ffff80002160e7f0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e883d74,2,200006c0,ffff80002e883da8,0,fffffffffffffe97,2377a29e694c14d0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e7f0,ffff80002e883e18,ffff80002e883e70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e883ee0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x23e2dff05a0, 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,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 vm_map_upgrade_ln sys/uvm/uvm_map.c:5540 [inline] uvm_map_fill_vmmap(ffffffff82a80470,ffff800000dd1000,ffff80002e883998) at uvm_map_fill_vmmap+0xf6 sys/uvm/uvm_map.c:5593 sysctl_proc_vmmap(ffff80002e883d78,1,200006c0,ffff80002e883da8,ffff80002160e7f0) at sysctl_proc_vmmap+0x229 sys/kern/kern_sysctl.c:2111 kern_sysctl(ffff80002e883d74,2,200006c0,ffff80002e883da8,0,fffffffffffffe97,2377a29e694c14d0) at kern_sysctl+0xfd sys/kern/kern_sysctl.c:449 sys_sysctl(ffff80002160e7f0,ffff80002e883e18,ffff80002e883e70) at sys_sysctl+0x209 sys/kern/kern_sysctl.c:249 syscall(ffff80002e883ee0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x23e2dff05a0, count: -9