panic: solock: lock not held Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *164167 76003 0 0 0x4000000 0 syz-executor.7 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(fffffd806808a3f8) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8068d09b90,3,0,fffffd8007077010) at sosplice+0x547 sosetopt(fffffd8068d09b90,ffff,1023,fffffd8065146d00) at sosetopt+0x7ec sys_setsockopt(ffff8000231ec2b0,ffff800029c5d5e8,ffff800029c5d640) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029c5d6b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e626b6fa20, 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(fffffd806808a3f8) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8068d09b90,3,0,fffffd8007077010) at sosplice+0x547 sosetopt(fffffd8068d09b90,ffff,1023,fffffd8065146d00) at sosetopt+0x7ec sys_setsockopt(ffff8000231ec2b0,ffff800029c5d5e8,ffff800029c5d640) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029c5d6b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e626b6fa20, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800029c5d360 rbx 0x39 rdx 0xffff800000c19bc0 rcx 0 rax 0xffff8000231ec2b0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5d66012a3e7a31b r11 0x41e91bea263f5940 r12 0 r13 0xfffffd8068d09c40 r14 0 r15 0x1 rip 0xffffffff8101e5c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800029c5d350 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.7) pid=164167 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002171e008,0xffffffff82a95cc0 process=0xffff800024c1bb88 user=0xffff800029c58000, vmspace=0xfffffd8067e4ddd8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 76003 283040 91520 0 2 0 syz-executor.7 76003 334241 91520 0 3 0x4000080 netcon2 syz-executor.7 *76003 164167 91520 0 7 0x4000000 syz-executor.7 73246 473398 70032 0 3 0x80 nanoslp syz-executor.0 73246 255922 70032 0 3 0x4000080 fifor syz-executor.0 73246 387727 70032 0 3 0x4000080 fsleep syz-executor.0 70032 243019 58573 0 3 0x82 nanoslp syz-executor.0 36355 341753 58573 0 3 0x82 piperd syz-executor.3 61839 276438 58573 0 3 0x82 piperd syz-executor.1 81141 467107 0 0 3 0x14200 acct acct 98471 53192 58573 0 3 0x82 piperd syz-executor.5 4482 184913 58573 0 3 0x82 piperd syz-executor.4 58749 172553 0 0 3 0x14280 nfsidl nfsio 18129 305822 0 0 3 0x14280 nfsidl nfsio 83935 41839 0 0 3 0x14280 nfsidl nfsio 55760 48982 0 0 3 0x14280 nfsidl nfsio 38236 165761 0 0 3 0x14280 nfsidl nfsio 79911 424618 0 0 3 0x14280 nfsidl nfsio 16737 295807 0 0 3 0x14280 nfsidl nfsio 67139 54134 0 0 3 0x14280 nfsidl nfsio 64318 131322 0 0 3 0x14280 nfsidl nfsio 87097 247699 0 0 3 0x14280 nfsidl nfsio 65414 95390 0 0 3 0x14280 nfsidl nfsio 29315 331035 0 0 3 0x14280 nfsidl nfsio 46494 255483 0 0 3 0x14280 nfsidl nfsio 53076 332522 0 0 3 0x14280 nfsidl nfsio 67929 9792 0 0 3 0x14280 nfsidl nfsio 24616 193827 0 0 3 0x14280 nfsidl nfsio 85162 444298 0 0 3 0x14280 nfsidl nfsio 3858 32784 0 0 3 0x14280 nfsidl nfsio 67401 251755 0 0 3 0x14280 nfsidl nfsio 82758 245273 0 0 3 0x14280 nfsidl nfsio 62845 359295 58573 0 3 0x82 piperd syz-executor.2 7561 58677 1 0 3 0x100083 ttyin getty 99810 19987 0 0 3 0x14200 bored sosplice 26845 106711 58573 0 3 0x82 piperd syz-executor.6 91520 100410 58573 0 3 0x82 nanoslp syz-executor.7 58573 424329 62970 0 3 0x82 wait syz-fuzzer 58573 341293 62970 0 3 0x4000082 thrsleep syz-fuzzer 58573 252934 62970 0 3 0x4000082 wait syz-fuzzer 58573 475579 62970 0 3 0x4000082 thrsleep syz-fuzzer 58573 15394 62970 0 3 0x4000082 wait syz-fuzzer 58573 376686 62970 0 3 0x4000082 wait syz-fuzzer 58573 195382 62970 0 3 0x4000082 thrsleep syz-fuzzer 58573 69071 62970 0 3 0x4000082 thrsleep syz-fuzzer 58573 349761 62970 0 3 0x4000082 thrsleep syz-fuzzer 58573 157594 62970 0 3 0x4000082 kqread syz-fuzzer 58573 213526 62970 0 3 0x4000082 wait syz-fuzzer 58573 280915 62970 0 3 0x4000082 wait syz-fuzzer 58573 24722 62970 0 3 0x4000082 wait syz-fuzzer 58573 120959 62970 0 3 0x4000082 wait syz-fuzzer 62970 122979 26327 0 3 0x10008a sigsusp ksh 26327 486138 89178 0 3 0x9a kqread sshd 89178 46697 1 0 3 0x88 kqread sshd 45378 442030 39095 73 3 0x1100090 kqread syslogd 39095 367949 1 0 3 0x100082 netio syslogd 71704 189058 1 0 3 0x100080 kqread resolvd 65419 320966 51350 77 3 0x100092 kqread dhcpleased 2014 109567 51350 77 3 0x100092 kqread dhcpleased 51350 61805 1 0 3 0x80 kqread dhcpleased 57119 325338 0 0 3 0x14200 bored smr 50505 414089 0 0 2 0x14200 zerothread 15295 179931 0 0 3 0x14200 aiodoned aiodoned 671 295345 0 0 3 0x14200 syncer update 56025 265422 0 0 3 0x14200 cleaner cleaner 48814 82087 0 0 3 0x14200 reaper reaper 95226 272698 0 0 3 0x14200 pgdaemon pagedaemon 20156 354285 0 0 3 0x14200 bored viomb 87411 363919 0 0 3 0x40014200 acpi0 acpi0 94173 60036 0 0 3 0x14200 bored softnet 2069 179449 0 0 3 0x14200 bored softnet 28573 25038 0 0 3 0x14200 bored softnet 5643 89745 0 0 3 0x14200 bored softnet 3186 512827 0 0 3 0x14200 bored systqmp 17244 47426 0 0 3 0x14200 bored systq 11555 184239 0 0 3 0x40014200 bored softclock 95247 39473 0 0 3 0x40014200 idle0 1 317453 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 10202 6426K 6877K 78643K 15228 0 pcb 13 14K 16K 78643K 364 0 rtable 237 20K 20K 78643K 1212 0 ifaddr 106 23K 23K 78643K 705 0 sysctl 2 0K 0K 78643K 2 0 counters 26 17K 17K 78643K 151 0 ioctlops 0 0K 4K 78643K 838 0 iov 0 0K 16K 78643K 285 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1522 95K 95K 78643K 3034 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 0K 0K 78643K 2 0 sem 23 2K 3K 78643K 185 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 73K 78643K 2751 0 sigio 0 0K 0K 78643K 22 0 proc 61 59K 83K 78643K 966 0 subproc 104 6K 6K 78643K 286 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 100 0 in_multi 88 5K 6K 78643K 335 0 ether_multi 1 0K 0K 78643K 23 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 181 811K 811K 78643K 181 0 exec 0 0K 2K 78643K 1516 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 246 132K 141K 78643K 16017 0 UVM aobj 88 3K 3K 78643K 94 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 94 0 NDP 15 0K 2K 78643K 116 0 temp 131 4718K 5742K 78643K 30973 0 kqueue 12 18K 28K 78643K 231 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 205 0 202 3 2 1 3 0 8 0 rtentry 112 362 0 267 4 1 3 4 0 8 0 unpcb 144 5024 0 5008 22 16 6 6 0 8 5 syncache 296 20 0 20 4 4 0 1 0 8 0 tcpqe 32 81 0 81 3 3 0 1 0 8 0 tcpcb 768 811 0 734 37 29 8 8 0 8 0 arp 88 53 0 37 1 0 1 1 0 8 0 ipq 40 3 0 2 2 1 1 1 0 8 0 ipqe 40 43 0 42 2 1 1 1 0 8 0 inpcb 336 5156 0 5143 31 21 10 10 0 8 8 nd6 48 76 0 52 1 0 1 1 0 8 0 pkpcb 40 77 0 77 3 3 0 1 0 8 0 kcovpl 48 22 0 14 1 0 1 1 0 8 0 ppxss 1160 95 0 95 6 6 0 1 0 8 0 pfstscr 40 18 0 13 1 0 1 1 0 8 0 pfrktable 1344 39 0 30 2 1 1 1 0 8 0 pfanchor 1280 32 0 6 4 1 3 3 0 8 0 pftag 88 36 0 35 2 1 1 1 0 8 0 pfstitem 24 28 0 18 1 0 1 1 0 8 0 pfstkey 120 36 0 30 1 0 1 1 0 8 0 pfstate 336 18 0 13 1 0 1 1 0 8 0 pfrule 1360 209 0 172 4 0 4 4 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 3 0 2 3 2 1 2 0 8 0 art_heap4 256 1408 0 973 39 11 28 29 0 8 0 art_table 32 1411 0 975 4 0 4 4 0 8 0 art_node 16 325 0 242 1 0 1 1 0 8 0 sysvmsgpl 40 69 0 46 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 176 0 155 1 0 1 1 0 8 0 shmpl 112 91 0 6 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5051 0 3623 92 1 91 91 0 8 0 ffsino 240 5051 0 3623 85 0 85 85 0 8 0 nchpl 144 8716 0 7083 63 0 63 63 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 34105 0 34105 3 1 2 2 0 8 2 vcpupl 2048 3 0 0 1 0 1 1 0 8 0 vmpool 536 12 0 9 2 1 1 1 0 8 0 pfiaddrpl 120 24 0 6 2 1 1 1 0 8 0 kstatmem 264 136 0 110 2 0 2 2 0 8 0 scxspl 216 24135 0 24135 9 8 1 8 0 8 1 plimitpl 152 360 0 346 1 0 1 1 0 8 0 sigapl 424 3032 0 2971 9 1 8 8 0 8 0 futexpl 64 30426 0 30425 1 0 1 1 0 8 0 knotepl 120 35339 0 35259 18 15 3 11 0 8 0 kqueuepl 184 529 0 521 5 3 2 3 0 8 1 pipepl 288 710 0 682 20 13 7 7 0 8 5 fdescpl 432 2994 0 2971 5 1 4 4 0 8 0 filepl 120 26678 0 26374 51 33 18 21 0 8 6 lockfpl 104 828 0 826 3 2 1 2 0 8 0 lockfspl 48 391 0 389 1 0 1 1 0 8 0 sessionpl 144 39 0 23 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 2311 0 2301 1 0 1 1 0 8 0 zombiepl 144 2971 0 2971 1 0 1 1 0 8 1 processpl 1000 3032 0 2971 10 1 9 9 0 8 0 procpl 672 6995 0 6917 12 4 8 9 0 8 0 sosppl 168 12 0 10 3 2 1 1 0 8 0 sockpl 456 10462 0 10430 204 175 29 34 0 8 24 mcl64k 65536 65 0 65 3 2 1 1 0 8 1 mcl16k 16384 35 0 35 5 4 1 1 0 8 1 mcl12k 12288 93 0 93 5 4 1 1 0 8 1 mcl9k 9216 39 0 39 7 6 1 1 0 8 1 mcl8k 8192 165 0 165 3 2 1 1 0 8 1 mcl4k 4096 285 0 285 2 1 1 1 0 8 1 mcl2k2 2112 20 0 20 7 7 0 1 0 8 0 mcl2k 2048 76249 0 76185 17 7 10 15 0 8 0 mtagpl 96 326 0 306 7 6 1 5 0 8 0 mbufpl 256 140832 0 140592 92 71 21 65 0 8 0 bufpl 288 7600 0 1199 458 0 458 458 0 8 0 anonpl 24 537278 0 522419 137 32 105 128 0 188 0 amapchunkpl 152 45789 0 45168 54 21 33 40 0 158 5 amappl16 200 7094 0 6514 48 15 33 43 0 8 0 amappl15 192 730 0 723 1 0 1 1 0 8 0 amappl14 184 240 0 237 1 0 1 1 0 8 0 amappl13 176 848 0 844 1 0 1 1 0 8 0 amappl12 168 448 0 440 1 0 1 1 0 8 0 amappl11 160 94 0 79 1 0 1 1 0 8 0 amappl10 152 78 0 77 1 0 1 1 0 8 0 amappl9 144 968 0 960 1 0 1 1 0 8 0 amappl8 136 1031 0 959 3 0 3 3 0 8 0 amappl7 128 415 0 393 1 0 1 1 0 8 0 amappl6 120 772 0 752 2 1 1 2 0 8 0 amappl5 112 1966 0 1956 1 0 1 1 0 8 0 amappl4 104 1347 0 1317 2 1 1 2 0 8 0 amappl3 96 8766 0 8724 3 1 2 2 0 8 0 amappl2 88 1324 0 1286 2 0 2 2 0 8 0 amappl1 80 74023 0 73459 19 4 15 19 0 8 0 amappl 88 15292 0 15149 5 1 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 93 0 6 2 0 2 2 0 8 0 uaddrrnd 24 3006 0 2980 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3006 0 2980 1 0 1 1 0 8 0 vmmpekpl 168 25414 0 25353 3 0 3 3 0 8 0 vmmpepl 168 295503 0 293287 150 25 125 130 0 357 7 vmsppl 272 3005 0 2980 5 2 3 3 0 8 0 rwobjpl 24 75715 0 68189 47 0 47 47 0 8 0 pdppl 4096 6018 0 5963 228 161 67 68 0 8 12 pvpl 32 1149079 0 1130740 274 98 176 230 0 265 0 pmappl 216 3005 0 2980 3 1 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1098 0 301 24 0 24 24 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(fffffd806808a3f8) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8068d09b90,3,0,fffffd8007077010) at sosplice+0x547 sosetopt(fffffd8068d09b90,ffff,1023,fffffd8065146d00) at sosetopt+0x7ec sys_setsockopt(ffff8000231ec2b0,ffff800029c5d5e8,ffff800029c5d640) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029c5d6b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e626b6fa20, 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(fffffd806808a3f8) at rw_assert_wrlock+0xb7 sys/kern/kern_rwlock.c:388 sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 soassertlocked sys/kern/uipc_socket2.c:414 [inline] sbunlock(fffffd806808a3f0,fffffd806808a518) at sbunlock+0xc9 sys/kern/uipc_socket2.c:479 sosplice(fffffd8068d09b90,3,0,fffffd8007077010) at sosplice+0x547 sosetopt(fffffd8068d09b90,ffff,1023,fffffd8065146d00) at sosetopt+0x7ec sys_setsockopt(ffff8000231ec2b0,ffff800029c5d5e8,ffff800029c5d640) at sys_setsockopt+0x1f5 sys/kern/uipc_syscalls.c:1233 syscall(ffff800029c5d6b0) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6e626b6fa20, count: -9