panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *403338 19673 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8069298c08) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd80692986a8,3,0,fffffd8076664010) at sosplice+0x547 sosetopt(fffffd80692986a8,ffff,1023,fffffd807668e000) at sosetopt+0x7ec sys_setsockopt(ffff80002178d7a8,ffff80002e8eb688,ffff80002e8eb6e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e8eb750) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb0d667b3330, 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: solock: lock not held ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8069298c08) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd80692986a8,3,0,fffffd8076664010) at sosplice+0x547 sosetopt(fffffd80692986a8,ffff,1023,fffffd807668e000) at sosetopt+0x7ec sys_setsockopt(ffff80002178d7a8,ffff80002e8eb688,ffff80002e8eb6e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e8eb750) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb0d667b3330, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e8eb400 rbx 0x39 rdx 0 rcx 0 rax 0xffff80002178d7a8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5d3685b06f3353f9 r11 0xc44507d642124702 r12 0 r13 0xfffffd8069298758 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e8eb3f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=403338 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff80002b498a90,0xffff80002178cd38 process=0xffff80002179c418 user=0xffff80002e8e6000, vmspace=0xfffffd80691c4668 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 19673 238739 38779 0 2 0 syz-executor.1 *19673 403338 38779 0 7 0x4000000 syz-executor.1 19673 100300 38779 0 3 0x4000080 fsleep syz-executor.1 19673 9413 38779 0 3 0x4000080 fsleep syz-executor.1 8799 198785 16479 0 3 0x80 nanoslp syz-executor.7 8799 405249 16479 0 3 0x4000080 fsleep syz-executor.7 8025 196612 0 0 3 0x14200 bored sosplice 70376 214513 66011 0 3 0x82 nanoslp syz-executor.5 85183 133927 66011 0 3 0x82 nanoslp syz-executor.6 16479 111293 66011 0 3 0x82 nanoslp syz-executor.7 35227 112856 66011 0 2 0x2 syz-executor.3 14900 135932 66011 0 2 0x2 syz-executor.2 38779 128587 66011 0 3 0x82 nanoslp syz-executor.1 52760 513219 66011 0 3 0x82 nanoslp syz-executor.0 52394 390921 66011 0 3 0x82 nanoslp syz-executor.4 66011 237092 60191 0 3 0x82 wait syz-fuzzer 66011 337820 60191 0 3 0x4000082 nanoslp syz-fuzzer 66011 83256 60191 0 3 0x4000082 wait syz-fuzzer 66011 264015 60191 0 3 0x4000082 thrsleep syz-fuzzer 66011 218533 60191 0 3 0x4000082 thrsleep syz-fuzzer 66011 131329 60191 0 3 0x4000082 wait syz-fuzzer 66011 22275 60191 0 3 0x4000082 wait syz-fuzzer 66011 476005 60191 0 3 0x4000082 wait syz-fuzzer 66011 217362 60191 0 3 0x4000082 thrsleep syz-fuzzer 66011 441698 60191 0 3 0x4000082 wait syz-fuzzer 66011 373598 60191 0 3 0x4000082 wait syz-fuzzer 66011 17200 60191 0 3 0x4000082 wait syz-fuzzer 66011 154568 60191 0 3 0x4000082 kqread syz-fuzzer 66011 452423 60191 0 3 0x4000082 thrsleep syz-fuzzer 60191 460882 49690 0 3 0x10008a sigsusp ksh 49690 390423 69026 0 3 0x9a kqread sshd 75454 521178 1 0 3 0x100083 ttyin getty 69026 353020 1 0 3 0x88 kqread sshd 92941 463187 59860 73 3 0x1100090 kqread syslogd 59860 170627 1 0 3 0x100082 netio syslogd 52211 291069 1 0 3 0x100080 kqread resolvd 51855 343638 25389 77 3 0x100092 kqread dhcpleased 10066 298459 25389 77 3 0x100092 kqread dhcpleased 25389 207591 1 0 3 0x80 kqread dhcpleased 74465 253832 0 0 3 0x14200 bored smr 46760 195228 0 0 2 0x14200 zerothread 44822 242236 0 0 3 0x14200 aiodoned aiodoned 43548 401541 0 0 3 0x14200 syncer update 36610 30478 0 0 3 0x14200 cleaner cleaner 9744 476031 0 0 3 0x14200 reaper reaper 22515 401678 0 0 3 0x14200 pgdaemon pagedaemon 91666 433726 0 0 3 0x14200 bored viomb 25785 431781 0 0 3 0x40014200 acpi0 acpi0 13307 455177 0 0 3 0x14200 bored softnet 17545 501100 0 0 3 0x14200 bored softnet 27514 1741 0 0 3 0x14200 bored softnet 24399 221685 0 0 3 0x14200 bored softnet 7139 319176 0 0 3 0x14200 bored systqmp 1963 359320 0 0 3 0x14200 bored systq 21871 505623 0 0 3 0x40014200 bored softclock 7643 47905 0 0 3 0x40014200 idle0 1 57647 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 10174 6402K 6797K 78643K 12539 0 pcb 13 12K 17K 78643K 210 0 rtable 239 7K 7K 78643K 548 0 ifaddr 82 17K 17K 78643K 150 0 counters 27 17K 17K 78643K 40 0 ioctlops 0 0K 4K 78643K 77 0 iov 0 0K 12K 78643K 105 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1300 81K 82K 78643K 1607 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 174 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 77K 78643K 1073 0 sigio 0 0K 0K 78643K 71 0 proc 57 59K 83K 78643K 540 0 subproc 104 6K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 121 0 ether_multi 1 0K 0K 78643K 1 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 2K 78643K 710 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 8 62K 64K 78643K 10 0 UVM amap 239 129K 130K 78643K 6929 0 UVM aobj 12 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 11 0K 2K 78643K 44 0 temp 101 4716K 5739K 78643K 14769 0 kqueue 12 18K 24K 78643K 93 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 60 0 57 1 0 1 1 0 8 0 rtentry 112 173 0 62 4 0 4 4 0 8 0 unpcb 144 1531 0 1516 12 6 6 6 0 8 5 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 263 0 263 1 1 0 1 0 8 0 tcpcb 768 291 0 284 11 9 2 10 0 8 1 arp 88 22 0 4 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 336 616 0 607 19 17 2 17 0 8 1 nd6 48 31 0 6 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1160 5 0 5 1 0 1 1 0 8 1 pfanchor 1280 94 0 65 3 0 3 3 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 12 0 12 2 1 1 1 0 8 1 rttmr 136 3 0 3 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 545 0 88 29 0 29 29 0 8 0 art_table 32 546 0 88 4 0 4 4 0 8 0 art_node 16 136 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 9 1 0 1 1 0 8 0 semapl 112 172 0 162 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2766 0 1334 90 0 90 90 0 8 0 ffsino 240 2766 0 1334 85 0 85 85 0 8 0 nchpl 144 4320 0 2688 63 0 63 63 0 8 0 uvmvnodes 80 3086 0 0 63 0 63 63 0 8 0 vnodes 216 3086 0 0 172 0 172 172 0 8 0 namei 1024 14043 0 14041 3 2 1 2 0 8 0 vcpupl 2048 5 0 0 1 0 1 1 0 8 0 vmpool 536 5 0 0 1 0 1 1 0 8 0 kstatmem 264 48 0 26 2 0 2 2 0 8 0 scxspl 216 12326 0 12326 11 9 2 8 0 8 2 plimitpl 152 37 0 23 1 0 1 1 0 8 0 sigapl 424 1357 0 1313 6 0 6 6 0 8 0 futexpl 64 8241 0 8238 1 0 1 1 0 8 0 knotepl 120 14481 0 14401 4 0 4 4 0 8 1 kqueuepl 184 166 0 158 4 3 1 4 0 8 0 pipepl 288 204 0 176 3 0 3 3 0 8 1 fdescpl 432 1340 0 1317 4 0 4 4 0 8 1 filepl 120 7459 0 7222 20 6 14 14 0 8 6 lockfpl 104 146 0 144 1 0 1 1 0 8 0 lockfspl 48 50 0 48 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 610 0 599 1 0 1 1 0 8 0 zombiepl 144 1317 0 1313 1 0 1 1 0 8 0 processpl 1000 1357 0 1313 8 2 6 7 0 8 0 procpl 672 2658 0 2597 8 1 7 7 0 8 0 sosppl 168 6 0 4 1 0 1 1 0 8 0 sockpl 456 2211 0 2184 67 47 20 28 0 8 16 mcl64k 65536 17 0 17 2 1 1 1 0 8 1 mcl16k 16384 9 0 9 3 2 1 1 0 8 1 mcl12k 12288 15 0 15 3 2 1 1 0 8 1 mcl9k 9216 12 0 12 2 1 1 1 0 8 1 mcl8k 8192 42 0 42 2 1 1 1 0 8 1 mcl4k 4096 87 0 87 2 1 1 1 0 8 1 mcl2k2 2112 9 0 9 2 1 1 1 0 8 1 mcl2k 2048 69634 0 69550 18 6 12 17 0 8 0 mtagpl 96 26 0 12 3 2 1 1 0 8 0 mbufpl 256 115873 0 115605 26 3 23 23 0 8 3 bufpl 288 4950 0 164 342 0 342 342 0 8 0 anonpl 24 226187 0 211576 118 7 111 111 0 188 12 amapchunkpl 152 18882 0 18278 32 4 28 30 0 158 1 amappl16 200 2791 0 2277 37 1 36 36 0 8 6 amappl15 192 94 0 88 1 0 1 1 0 8 0 amappl14 184 226 0 223 1 0 1 1 0 8 0 amappl13 176 207 0 205 1 0 1 1 0 8 0 amappl12 168 122 0 114 1 0 1 1 0 8 0 amappl11 160 114 0 98 1 0 1 1 0 8 0 amappl10 152 257 0 253 1 0 1 1 0 8 0 amappl9 144 597 0 594 1 0 1 1 0 8 0 amappl8 136 709 0 650 3 0 3 3 0 8 0 amappl7 128 237 0 216 1 0 1 1 0 8 0 amappl6 120 314 0 302 2 1 1 2 0 8 0 amappl5 112 1035 0 1024 1 0 1 1 0 8 0 amappl4 104 880 0 852 2 1 1 2 0 8 0 amappl3 96 3405 0 3362 2 0 2 2 0 8 0 amappl2 88 673 0 637 2 0 2 2 0 8 0 amappl1 80 33780 0 33210 20 5 15 20 0 8 0 amappl 88 6424 0 6281 4 0 4 4 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1345 0 1317 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1345 0 1317 1 0 1 1 0 8 0 vmmpekpl 168 13166 0 13118 3 0 3 3 0 8 0 vmmpepl 168 131304 0 129165 132 14 118 126 0 357 11 vmsppl 272 1344 0 1317 5 2 3 3 0 8 0 rwobjpl 24 34469 0 29934 29 0 29 29 0 8 0 pdppl 4096 2696 0 2639 139 70 69 70 0 8 12 pvpl 32 541224 0 522780 274 91 183 255 0 265 20 pmappl 216 1344 0 1317 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 778 0 108 20 0 20 20 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:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8069298c08) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd80692986a8,3,0,fffffd8076664010) at sosplice+0x547 sosetopt(fffffd80692986a8,ffff,1023,fffffd807668e000) at sosetopt+0x7ec sys_setsockopt(ffff80002178d7a8,ffff80002e8eb688,ffff80002e8eb6e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e8eb750) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb0d667b3330, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8254949d) at panic+0x161 sys/kern/subr_prf.c:198 rw_assert_wrlock(fffffd8069298c08) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd8069298c00,fffffd8069298d28) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd80692986a8,3,0,fffffd8076664010) at sosplice+0x547 sosetopt(fffffd80692986a8,ffff,1023,fffffd807668e000) at sosetopt+0x7ec sys_setsockopt(ffff80002178d7a8,ffff80002e8eb688,ffff80002e8eb6e0) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e8eb750) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb0d667b3330, count: -9