panic: lock (rwlock) solock not locked Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *286210 99830 32767 0x10 0x4000000 1K syz-executor.2 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82585177) at panic+0x177 sys/kern/subr_prf.c:198 witness_assert(fffffd806e9a75e0,4) at witness_assert+0x3ef sys/kern/subr_witness.c:1950 somove(fffffd8077bc77d8,1) at somove+0x25d sbspace sys/sys/socketvar.h:209 [inline] somove(fffffd8077bc77d8,1) at somove+0x25d sys/kern/uipc_socket.c:1487 sosplice(fffffd8077bc77d8,3,0,fffffd806e4ed810) at sosplice+0x50b sys/kern/uipc_socket.c:1346 sosetopt(fffffd8077bc77d8,ffff,1023,fffffd80604c1900) at sosetopt+0x7f4 sys_setsockopt(ffff800027ffefc0,ffff8000233928f8,ffff800023392940) at sys_setsockopt+0x1f6 sys/kern/uipc_syscalls.c:1233 syscall(ffff8000233929c0) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000233929c0) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c862cdb4d0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: lock (rwlock) solock not locked ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82585177) at panic+0x177 sys/kern/subr_prf.c:198 witness_assert(fffffd806e9a75e0,4) at witness_assert+0x3ef sys/kern/subr_witness.c:1950 somove(fffffd8077bc77d8,1) at somove+0x25d sbspace sys/sys/socketvar.h:209 [inline] somove(fffffd8077bc77d8,1) at somove+0x25d sys/kern/uipc_socket.c:1487 sosplice(fffffd8077bc77d8,3,0,fffffd806e4ed810) at sosplice+0x50b sys/kern/uipc_socket.c:1346 sosetopt(fffffd8077bc77d8,ffff,1023,fffffd80604c1900) at sosetopt+0x7f4 sys_setsockopt(ffff800027ffefc0,ffff8000233928f8,ffff800023392940) at sys_setsockopt+0x1f6 sys/kern/uipc_syscalls.c:1233 syscall(ffff8000233929c0) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000233929c0) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c862cdb4d0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000233925f0 rbx 0xffff800020dd9b8f rdx 0xffff800000bd9780 rcx 0 rax 0xffff800027ffefc0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb2b65eac13e1cd8b r11 0xccd622b4acaa0eb1 r12 0xffff800020dd9990 r13 0 r14 0 r15 0x1 rip 0xffffffff81fd76c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000233925e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.2) pid=286210 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800027bf82b0,0xffffffff82b7cfd0 process=0xffff800027bf54e0 user=0xffff80002338d000, vmspace=0xfffffd8068c52e78 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14644 108085 32248 32767 2 0x10 syz-executor.5 14644 507546 32248 32767 3 0x4000090 fsleep syz-executor.5 96939 339636 67748 32767 3 0x90 nanoslp syz-executor.6 96939 273045 67748 32767 3 0x4000090 fsleep syz-executor.6 99830 479135 66750 32767 2 0x10 syz-executor.2 99830 110672 66750 32767 3 0x4000090 netcon2 syz-executor.2 *99830 286210 66750 32767 7 0x4000010 syz-executor.2 19045 75410 1197 32767 3 0x90 nanoslp syz-executor.7 19045 415251 1197 32767 3 0x4000090 fsleep syz-executor.7 67748 479137 78796 32767 3 0x90 nanoslp syz-executor.6 78796 451800 81402 0 3 0x82 wait syz-executor.6 89474 380871 16490 32767 3 0x90 piperd syz-executor.4 16490 332428 81402 0 3 0x82 wait syz-executor.4 1197 470230 18701 32767 3 0x90 nanoslp syz-executor.7 18701 281291 81402 0 3 0x82 wait syz-executor.7 99134 261982 82162 32767 3 0x90 piperd syz-executor.1 82162 419233 81402 0 3 0x82 wait syz-executor.1 32248 160461 40350 32767 3 0x90 nanoslp syz-executor.5 40350 413761 81402 0 3 0x82 wait syz-executor.5 40494 502989 59280 32767 3 0x90 nanoslp syz-executor.3 59280 357061 81402 0 3 0x82 wait syz-executor.3 93271 25432 14319 32767 3 0x90 nanoslp syz-executor.0 14319 324945 81402 0 3 0x82 wait syz-executor.0 11867 447831 0 0 3 0x14200 bored sosplice 66750 101432 21296 32767 3 0x90 nanoslp syz-executor.2 21296 433169 81402 0 3 0x82 wait syz-executor.2 81402 150989 9631 0 3 0x82 thrsleep syz-fuzzer 81402 489894 9631 0 3 0x4000082 nanoslp syz-fuzzer 81402 403308 9631 0 3 0x4000082 thrsleep syz-fuzzer 81402 79942 9631 0 3 0x4000082 wait syz-fuzzer 81402 132339 9631 0 3 0x4000082 wait syz-fuzzer 81402 81623 9631 0 3 0x4000082 wait syz-fuzzer 81402 82853 9631 0 3 0x4000082 thrsleep syz-fuzzer 81402 387995 9631 0 3 0x4000082 wait syz-fuzzer 81402 19901 9631 0 3 0x4000082 thrsleep syz-fuzzer 81402 424422 9631 0 3 0x4000082 wait syz-fuzzer 81402 408122 9631 0 3 0x4000082 kqread syz-fuzzer 81402 256159 9631 0 3 0x4000082 thrsleep syz-fuzzer 81402 72304 9631 0 3 0x4000082 wait syz-fuzzer 81402 237972 9631 0 3 0x4000082 wait syz-fuzzer 81402 152933 9631 0 3 0x4000082 thrsleep syz-fuzzer 81402 514835 9631 0 3 0x4000082 wait syz-fuzzer 9631 36159 69963 0 3 0x10008a sigsusp ksh 69963 55728 93409 0 3 0x9a kqread sshd 5856 252568 1 0 3 0x100083 ttyin getty 93409 250406 1 0 3 0x88 kqread sshd 6662 112312 22796 73 3 0x1100090 kqread syslogd 22796 122930 1 0 3 0x100082 netio syslogd 87497 221076 1 0 3 0x100080 kqread resolvd 6749 316404 55406 77 3 0x100092 kqread dhcpleased 82594 278236 55406 77 3 0x100092 kqread dhcpleased 55406 347788 1 0 3 0x80 kqread dhcpleased 66339 327880 0 0 3 0x14200 bored smr 78250 383997 0 0 2 0x14200 zerothread 96851 41022 0 0 3 0x14200 aiodoned aiodoned 6805 482639 0 0 3 0x14200 syncer update 10401 480889 0 0 3 0x14200 cleaner cleaner 13109 303253 0 0 3 0x14200 reaper reaper 55740 57081 0 0 3 0x14200 pgdaemon pagedaemon 24275 103740 0 0 3 0x14200 bored viomb 3781 377437 0 0 3 0x40014200 acpi0 acpi0 45996 450616 0 0 3 0x40014200 idle1 98070 438395 0 0 3 0x14200 bored softnet 53528 459423 0 0 3 0x14200 bored softnet 43149 368760 0 0 3 0x14200 bored softnet 6436 165327 0 0 3 0x14200 bored softnet 54555 349159 0 0 3 0x14200 bored systqmp 83409 523820 0 0 3 0x14200 bored systq 72968 443576 0 0 3 0x40014200 bored softclock 24813 293334 0 0 7 0x40014200 idle0 1 84901 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 99830 (syz-executor.2) thread 0xffff800027ffefc0 (286210) exclusive rwlock netlock r = 0 (0xffffffff82971a40) #0 witness_lock+0x44d #1 sys_setsockopt+0x1de sys/kern/uipc_syscalls.c:1233 #2 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #2 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #3 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a8d100) #0 witness_lock+0x44d #1 syscall+0x41d mi_syscall sys/sys/syscall_mi.h:100 [inline] #1 syscall+0x41d sys/arch/amd64/amd64/trap.c:585 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 6412K 6420K 78643K 11408 0 pcb 13 12K 14K 78643K 17 0 rtable 246 7K 7K 78643K 3404 0 ifaddr 82 17K 17K 78643K 326 0 sysctl 3 1K 3K 78643K 54 0 counters 56 35K 35K 78643K 124 0 ioctlops 0 0K 2K 78643K 195 0 iov 0 0K 28K 78643K 8515 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 5995 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 224 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 5532 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 121K 78643K 21816 0 sigio 0 0K 0K 78643K 1666 0 proc 56 78K 115K 78643K 2836 0 subproc 104 6K 6K 78643K 546 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 1 0K 0K 78643K 8729 0 in_multi 99 6K 7K 78643K 702 0 ether_multi 1 0K 0K 78643K 61 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 4331 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 430 97K 981K 78643K 134472 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 723 0 NDP 11 0K 2K 78643K 129 0 temp 124 4726K 4854K 78643K 56524 0 kqueue 13 20K 30K 78643K 2426 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 2002 0 1999 22 21 1 3 0 8 0 rtentry 112 525 0 409 4 0 4 4 0 8 0 unpcb 144 21382 0 21367 190 184 6 11 0 8 5 syncache 296 227 0 227 47 46 1 1 0 8 1 tcpqe 32 102 0 102 23 23 0 1 0 8 0 tcpcb 768 10427 0 10420 369 352 17 23 0 8 16 arp 120 95 0 75 1 0 1 1 0 8 0 ipq 40 35 0 34 13 12 1 1 0 8 0 ipqe 40 166 0 165 13 12 1 1 0 8 0 inpcb 368 41013 0 40999 383 373 10 17 0 8 8 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 157 0 129 1 0 1 1 0 8 0 kcovpl 48 42 0 34 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2076 0 1610 35 5 30 30 0 8 0 art_table 32 2077 0 1610 4 0 4 4 0 8 0 art_node 16 524 0 418 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 0 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 5528 0 5518 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 31020 0 29520 95 0 95 95 0 8 0 ffsino 272 31020 0 29520 101 0 101 101 0 8 0 nchpl 144 61516 0 59873 63 0 63 63 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 210828 0 210828 10 9 1 2 0 8 1 percpumem 16 74 0 34 1 0 1 1 0 8 0 kstatmem 264 90 0 68 2 0 2 2 0 8 0 scxspl 216 183377 0 183377 84 83 1 8 0 8 1 plimitpl 152 5263 0 5240 17 15 2 2 0 8 1 sigapl 424 22023 0 21970 7 0 7 7 0 8 0 futexpl 64 209398 0 209395 11 10 1 1 0 8 0 knotepl 120 1310 0 0 17 0 17 17 0 8 0 kqueuepl 216 6534 0 6525 111 110 1 5 0 8 0 pipepl 320 6490 0 6462 149 141 8 13 0 8 5 fdescpl 496 22005 0 21972 7 1 6 6 0 8 0 filepl 152 175868 0 175627 283 266 17 22 0 8 7 lockfpl 104 3562 0 3560 3 2 1 2 0 8 0 lockfspl 48 1048 0 1046 1 0 1 1 0 8 0 sessionpl 144 57 0 41 1 0 1 1 0 8 0 pgrppl 48 161 0 145 1 0 1 1 0 8 0 ucredpl 104 27922 0 27904 1 0 1 1 0 8 0 zombiepl 144 21972 0 21970 6 5 1 1 0 8 0 processpl 1064 22023 0 21970 5 1 4 5 0 8 0 procpl 672 66044 0 65971 48 40 8 9 0 8 0 sosppl 168 328 0 324 43 42 1 1 0 8 0 sockpl 488 65088 0 65055 1060 1047 13 41 0 8 8 mcl64k 65536 57 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 45 0 0 3 1 2 3 0 8 0 mcl9k 9216 55 0 0 3 1 2 3 0 8 0 mcl8k 8192 41 0 0 6 3 3 3 0 8 0 mcl4k 4096 65 0 0 4 1 3 4 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 520 0 0 33 12 21 33 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 7831 0 0 420 0 420 420 0 8 0 bufpl 288 40124 0 33794 453 0 453 453 0 8 0 anonpl 24 4619588 0 4605989 284 176 108 113 0 186 0 amapchunkpl 152 656708 0 656051 4564 4525 39 4415 0 158 6 amappl16 200 75314 0 74941 358 335 23 37 0 8 1 amappl15 192 2958 0 2951 1 0 1 1 0 8 0 amappl14 184 2111 0 2104 1 0 1 1 0 8 0 amappl13 176 4423 0 4420 1 0 1 1 0 8 0 amappl12 168 320 0 314 1 0 1 1 0 8 0 amappl11 160 5516 0 5494 3 1 2 2 0 8 0 amappl10 152 156 0 144 1 0 1 1 0 8 0 amappl9 144 2044 0 2042 1 0 1 1 0 8 0 amappl8 136 7897 0 7658 10 1 9 9 0 8 0 amappl7 128 5741 0 5715 7 6 1 2 0 8 0 amappl6 120 2036 0 2016 2 1 1 2 0 8 0 amappl5 112 17823 0 17800 1 0 1 1 0 8 0 amappl4 104 10446 0 10403 5 3 2 2 0 8 0 amappl3 96 69103 0 69047 2 0 2 2 0 8 0 amappl2 88 6110 0 6067 2 0 2 2 0 8 0 amappl1 80 551628 0 550923 22 5 17 20 0 8 0 amappl 88 132368 0 132170 7 1 6 6 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 22006 0 21973 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 22006 0 21973 1 0 1 1 0 8 0 vmmpekpl 168 183247 0 183177 4 0 4 4 0 8 0 vmmpepl 168 2196673 0 2193876 407 268 139 152 0 357 0 vmsppl 368 22005 0 21973 4 0 4 4 0 8 0 rwobjpl 56 555327 0 547724 130 18 112 112 0 8 0 pdppl 4096 44019 0 43946 646 565 81 93 0 8 8 pvpl 32 8533904 0 8515114 666 486 180 257 0 265 0 pmappl 248 22005 0 21973 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2203 0 970 36 0 36 36 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff829b9ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff829b9ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff829b9ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a8cef8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff829b9ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82585177) at panic+0x177 sys/kern/subr_prf.c:198 witness_assert(fffffd806e9a75e0,4) at witness_assert+0x3ef sys/kern/subr_witness.c:1950 somove(fffffd8077bc77d8,1) at somove+0x25d sbspace sys/sys/socketvar.h:209 [inline] somove(fffffd8077bc77d8,1) at somove+0x25d sys/kern/uipc_socket.c:1487 sosplice(fffffd8077bc77d8,3,0,fffffd806e4ed810) at sosplice+0x50b sys/kern/uipc_socket.c:1346 sosetopt(fffffd8077bc77d8,ffff,1023,fffffd80604c1900) at sosetopt+0x7f4 sys_setsockopt(ffff800027ffefc0,ffff8000233928f8,ffff800023392940) at sys_setsockopt+0x1f6 sys/kern/uipc_syscalls.c:1233 syscall(ffff8000233929c0) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000233929c0) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c862cdb4d0, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82585177) at panic+0x177 sys/kern/subr_prf.c:198 witness_assert(fffffd806e9a75e0,4) at witness_assert+0x3ef sys/kern/subr_witness.c:1950 somove(fffffd8077bc77d8,1) at somove+0x25d sbspace sys/sys/socketvar.h:209 [inline] somove(fffffd8077bc77d8,1) at somove+0x25d sys/kern/uipc_socket.c:1487 sosplice(fffffd8077bc77d8,3,0,fffffd806e4ed810) at sosplice+0x50b sys/kern/uipc_socket.c:1346 sosetopt(fffffd8077bc77d8,ffff,1023,fffffd80604c1900) at sosetopt+0x7f4 sys_setsockopt(ffff800027ffefc0,ffff8000233928f8,ffff800023392940) at sys_setsockopt+0x1f6 sys/kern/uipc_syscalls.c:1233 syscall(ffff8000233929c0) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff8000233929c0) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8c862cdb4d0, count: -9