panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *479917 89665 0 0 0x4000000 0 syz-executor.5 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(fffffd806261e910) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806261e578,5,0,0) at sosplice+0x547 sosetopt(fffffd806261e578,ffff,1023,fffffd8077816e00) at sosetopt+0x7ec sys_setsockopt(ffff800026604fd0,ffff80002e92b0b8,ffff80002e92b110) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e92b180) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9922beff20, 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(fffffd806261e910) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806261e578,5,0,0) at sosplice+0x547 sosetopt(fffffd806261e578,ffff,1023,fffffd8077816e00) at sosetopt+0x7ec sys_setsockopt(ffff800026604fd0,ffff80002e92b0b8,ffff80002e92b110) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e92b180) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9922beff20, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e92ae30 rbx 0x39 rdx 0xffff800000bef1c0 rcx 0 rax 0xffff800026604fd0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7a22457bdcc4ba69 r11 0xc9b687f50e116ad2 r12 0 r13 0xfffffd806261e628 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e92ae20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.5) pid=479917 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=57, nice=20 forw=0xffffffffffffffff, list=0xffff800026605510,0xffff800026605a60 process=0xffff80002170a410 user=0xffff80002e926000, vmspace=0xfffffd806c5f5ab0 estcpu=30, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 60784 472896 28609 0 3 0x80 nanoslp syz-executor.3 60784 285350 28609 0 3 0x4000080 fsleep syz-executor.3 89665 13654 21759 0 2 0 syz-executor.5 *89665 479917 21759 0 7 0x4000000 syz-executor.5 64925 323032 85660 0 2 0 syz-executor.2 64925 505866 85660 0 3 0x4000080 netio syz-executor.2 25815 348478 43256 0 2 0 syz-executor.1 25815 448144 43256 0 3 0x4000080 fsleep syz-executor.1 25815 188978 43256 0 3 0x4000080 fsleep syz-executor.1 75011 241905 0 0 3 0x14200 bored sosplice 21759 249876 24799 0 3 0x82 nanoslp syz-executor.5 27328 78742 24799 0 3 0x82 nanoslp syz-executor.6 1812 136010 24799 0 3 0x82 nanoslp syz-executor.7 42283 434921 24799 0 3 0x82 nanoslp syz-executor.0 28609 51261 24799 0 3 0x82 nanoslp syz-executor.3 85660 479204 24799 0 3 0x82 nanoslp syz-executor.2 43256 264358 24799 0 3 0x82 nanoslp syz-executor.1 23587 510623 24799 0 2 0x2 syz-executor.4 24799 294308 69185 0 3 0x82 thrsleep syz-fuzzer 24799 193737 69185 0 3 0x4000082 nanoslp syz-fuzzer 24799 235228 69185 0 3 0x4000082 thrsleep syz-fuzzer 24799 246736 69185 0 3 0x4000082 wait syz-fuzzer 24799 237686 69185 0 3 0x4000082 wait syz-fuzzer 24799 242163 69185 0 3 0x4000082 wait syz-fuzzer 24799 449576 69185 0 3 0x4000082 wait syz-fuzzer 24799 204294 69185 0 3 0x4000082 wait syz-fuzzer 24799 460527 69185 0 3 0x4000082 thrsleep syz-fuzzer 24799 77693 69185 0 3 0x4000082 wait syz-fuzzer 24799 178262 69185 0 3 0x4000082 wait syz-fuzzer 24799 292133 69185 0 3 0x4000082 wait syz-fuzzer 24799 107961 69185 0 3 0x4000082 kqread syz-fuzzer 24799 378415 69185 0 3 0x4000082 thrsleep syz-fuzzer 69185 398435 97696 0 3 0x10008a sigsusp ksh 97696 245126 24763 0 3 0x9a kqread sshd 47846 360464 1 0 3 0x100083 ttyin getty 24763 23672 1 0 3 0x88 kqread sshd 6001 278117 30806 73 3 0x1100090 kqread syslogd 30806 328634 1 0 3 0x100082 netio syslogd 20829 405994 1 0 3 0x100080 kqread resolvd 49653 209434 38681 77 3 0x100092 kqread dhcpleased 56387 159433 38681 77 3 0x100092 kqread dhcpleased 38681 91889 1 0 3 0x80 kqread dhcpleased 22645 432076 0 0 3 0x14200 bored smr 87100 169963 0 0 2 0x14200 zerothread 73025 395654 0 0 3 0x14200 aiodoned aiodoned 82500 28500 0 0 3 0x14200 syncer update 54646 34416 0 0 3 0x14200 cleaner cleaner 24734 249366 0 0 3 0x14200 reaper reaper 32795 248430 0 0 3 0x14200 pgdaemon pagedaemon 24818 341330 0 0 3 0x14200 bored viomb 30904 424134 0 0 3 0x40014200 acpi0 acpi0 33764 135783 0 0 3 0x14200 bored softnet 15924 360065 0 0 3 0x14200 bored softnet 57982 483547 0 0 3 0x14200 bored softnet 5198 237712 0 0 3 0x14200 bored softnet 96946 352482 0 0 3 0x14200 bored systqmp 85116 523463 0 0 3 0x14200 bored systq 6876 178738 0 0 3 0x40014200 bored softclock 93398 167175 0 0 3 0x40014200 idle0 1 81260 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 10171 6409K 6555K 78643K 11553 0 pcb 13 8K 8K 78643K 28 0 rtable 237 6K 9K 78643K 410 0 ifaddr 82 16K 18K 78643K 104 0 counters 27 17K 17K 78643K 27 0 ioctlops 0 0K 4K 78643K 45 0 iov 0 0K 12K 78643K 9 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1277 80K 80K 78643K 1321 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 0K 0K 78643K 2 0 sem 10 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 73K 78643K 270 0 proc 55 58K 75K 78643K 459 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 4 0 in_multi 99 6K 6K 78643K 99 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 2K 78643K 632 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 226 81K 81K 78643K 2785 0 UVM aobj 36 2K 2K 78643K 39 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 15 0 NDP 11 0K 1K 78643K 27 0 temp 89 4709K 4774K 78643K 10503 0 kqueue 12 18K 22K 78643K 39 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 50 0 47 1 0 1 1 0 8 0 rtentry 112 112 0 1 4 0 4 4 0 8 0 unpcb 144 66 0 49 1 0 1 1 0 8 0 syncache 296 7 0 7 2 1 1 1 0 8 1 tcpqe 32 20 0 20 1 1 0 1 0 8 0 tcpcb 768 193 0 182 16 7 9 16 0 8 7 arp 88 18 0 0 1 0 1 1 0 8 0 inpcb 336 327 0 317 7 0 7 7 0 8 5 nd6 48 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfrktable 1344 28 0 28 1 0 1 1 0 8 1 pfanchor 1280 4 0 4 1 0 1 1 0 8 1 pfrule 1360 4 0 4 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 466 0 0 30 0 30 30 0 8 0 art_table 32 467 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 1 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 36 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1654 0 224 90 0 90 90 0 8 0 ffsino 240 1654 0 224 85 0 85 85 0 8 0 nchpl 144 2125 0 448 63 0 63 63 0 8 0 uvmvnodes 80 1791 0 0 37 0 37 37 0 8 0 vnodes 216 1791 0 0 100 0 100 100 0 8 0 namei 1024 6917 0 6916 2 1 1 2 0 8 0 pfiaddrpl 120 8 0 8 1 0 1 1 0 8 1 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 6443 0 6443 2 1 1 2 0 8 1 plimitpl 152 26 0 12 1 0 1 1 0 8 0 sigapl 424 561 0 516 6 0 6 6 0 8 0 futexpl 64 2187 0 2184 1 0 1 1 0 8 0 knotepl 120 8908 0 8828 5 0 5 5 0 8 2 kqueuepl 184 39 0 29 1 0 1 1 0 8 0 pipepl 288 142 0 114 3 0 3 3 0 8 1 fdescpl 432 544 0 519 4 0 4 4 0 8 0 filepl 120 2393 0 2149 10 0 10 10 0 8 2 lockfpl 104 32 0 30 1 0 1 1 0 8 0 lockfspl 48 15 0 13 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 7 1 0 1 1 0 8 0 ucredpl 104 174 0 163 1 0 1 1 0 8 0 zombiepl 144 519 0 516 1 0 1 1 0 8 0 processpl 1000 561 0 516 7 1 6 6 0 8 0 procpl 672 819 0 756 7 0 7 7 0 8 0 sosppl 168 50 0 48 1 0 1 1 0 8 0 sockpl 456 443 0 413 12 1 11 12 0 8 7 mcl64k 65536 13 0 13 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 8 0 8 1 0 1 1 0 8 1 mcl9k 9216 6 0 6 1 0 1 1 0 8 1 mcl8k 8192 30 0 29 1 0 1 1 0 8 0 mcl4k 4096 36 0 36 1 0 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 69185 0 69122 13 4 9 12 0 8 0 mtagpl 96 71 0 65 3 1 2 2 0 8 1 mbufpl 256 111031 0 110780 22 1 21 21 0 8 0 bufpl 288 4013 0 133 278 0 278 278 0 8 0 anonpl 24 85914 0 70828 97 1 96 96 0 188 2 amapchunkpl 152 6728 0 6130 27 1 26 26 0 158 1 amappl16 200 1062 0 534 30 1 29 29 0 8 0 amappl15 192 136 0 129 1 0 1 1 0 8 0 amappl14 184 26 0 21 1 0 1 1 0 8 0 amappl13 176 97 0 96 1 0 1 1 0 8 0 amappl12 168 36 0 29 1 0 1 1 0 8 0 amappl11 160 99 0 81 1 0 1 1 0 8 0 amappl10 152 37 0 34 2 1 1 1 0 8 0 amappl9 144 507 0 502 1 0 1 1 0 8 0 amappl8 136 573 0 518 2 0 2 2 0 8 0 amappl7 128 127 0 114 1 0 1 1 0 8 0 amappl6 120 209 0 196 2 1 1 2 0 8 0 amappl5 112 227 0 214 1 0 1 1 0 8 0 amappl4 104 847 0 817 2 1 1 2 0 8 0 amappl3 96 974 0 929 2 0 2 2 0 8 0 amappl2 88 467 0 434 2 0 2 2 0 8 0 amappl1 80 14960 0 14361 19 4 15 19 0 8 0 amappl 88 2334 0 2194 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 38 0 3 1 0 1 1 0 8 0 uaddrrnd 24 544 0 519 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 544 0 519 1 0 1 1 0 8 0 vmmpekpl 168 8779 0 8733 3 0 3 3 0 8 0 vmmpepl 168 56167 0 53878 134 2 132 134 0 357 21 vmsppl 272 543 0 519 4 1 3 3 0 8 1 rwobjpl 24 16291 0 13020 21 0 21 21 0 8 1 pdppl 4096 1094 0 1038 104 40 64 68 0 8 8 pvpl 32 284318 0 265228 255 6 249 255 0 265 89 pmappl 216 543 0 519 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 650 0 49 18 0 18 18 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(fffffd806261e910) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806261e578,5,0,0) at sosplice+0x547 sosetopt(fffffd806261e578,ffff,1023,fffffd8077816e00) at sosetopt+0x7ec sys_setsockopt(ffff800026604fd0,ffff80002e92b0b8,ffff80002e92b110) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e92b180) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9922beff20, 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(fffffd806261e910) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806261e908,fffffd806261ea30) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd806261e578,5,0,0) at sosplice+0x547 sosetopt(fffffd806261e578,ffff,1023,fffffd8077816e00) at sosetopt+0x7ec sys_setsockopt(ffff800026604fd0,ffff80002e92b0b8,ffff80002e92b110) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff80002e92b180) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9922beff20, count: -9