panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824258af) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023f19218,ffff800023f192a0,30) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023f19218,ffff800023f192a0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023f19218,ffff800023f192a0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064126b28) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064126b28,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064126b28,0) at soclose+0x270 sys/kern/uipc_socket.c:344 soo_close(fffffd8067ff34c8,ffff800020e22288) at soo_close+0x40 fdrop(fffffd8067ff34c8,ffff800020e22288) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067ff34c8,ffff800020e22288) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e22288) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e22288,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e22288,ffff800023f19670,ffff800023f196c0) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff800023f19730, count: 0 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic sbdrop ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824258af) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023f19218,ffff800023f192a0,30) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023f19218,ffff800023f192a0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023f19218,ffff800023f192a0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064126b28) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064126b28,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064126b28,0) at soclose+0x270 sys/kern/uipc_socket.c:344 soo_close(fffffd8067ff34c8,ffff800020e22288) at soo_close+0x40 fdrop(fffffd8067ff34c8,ffff800020e22288) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067ff34c8,ffff800020e22288) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e22288) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e22288,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e22288,ffff800023f19670,ffff800023f196c0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023f19740) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f19740) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0430, count: -16 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800023f19060 rbx 0xffff800023f19110 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81d40d1f kprintf+0x16f r9 0x1 r10 0x2 r11 0xfb9feef591b5ba55 r12 0x3000000008 r13 0xffff800023f19070 r14 0x100 r15 0x1 rip 0xffffffff8135f6b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023f19050 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=362503 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020e23d58,0xffffffff828ee200 process=0xffff800020e39728 user=0xffff800023f14000, vmspace=0xfffffd806e8efa18 estcpu=3, cpticks=0, pctcpu=0.6 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74351 284596 50331 0 3 0x82 nanosleep syz-executor.1 74243 324664 50331 0 3 0x82 piperd syz-executor.0 50331 98849 13750 0 3 0x82 thrsleep syz-fuzzer 50331 106340 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 235416 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 378679 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 120624 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 64952 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 103744 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 422109 13750 0 3 0x4000082 thrsleep syz-fuzzer 50331 116050 13750 0 3 0x4000082 kqread syz-fuzzer 50331 292622 13750 0 3 0x4000082 thrsleep syz-fuzzer 13750 419978 76916 0 3 0x10008a pause ksh 76916 411582 63887 0 3 0x92 select sshd 79571 217273 1 0 3 0x100083 ttyin getty 63887 284626 1 0 3 0x80 select sshd 94915 503208 64736 74 3 0x100092 bpf pflogd 64736 357590 1 0 3 0x80 netio pflogd 10512 371294 27983 73 3 0x100090 kqread syslogd 27983 191385 1 0 3 0x100082 netio syslogd 28187 479579 1 77 3 0x100090 poll dhclient 58255 183297 1 0 3 0x80 poll dhclient 55468 218833 0 0 3 0x14200 bored smr 9507 8908 0 0 3 0x14200 pgzero zerothread 38351 187136 0 0 3 0x14200 aiodoned aiodoned 12760 168472 0 0 3 0x14200 syncer update 40777 268747 0 0 3 0x14200 cleaner cleaner 74102 346712 0 0 3 0x14200 reaper reaper 44448 135311 0 0 3 0x14200 pgdaemon pagedaemon 64289 399639 0 0 3 0x14200 bored crynlk 9750 288641 0 0 3 0x14200 bored crypto 1808 120525 0 0 3 0x40014200 acpi0 acpi0 56090 57560 0 0 7 0x40014200 idle1 96140 20710 0 0 3 0x14200 bored softnet 61692 414507 0 0 3 0x14200 bored systqmp 79207 395577 0 0 3 0x14200 bored systq 95229 147909 0 0 3 0x40014200 bored softclock 94499 308564 0 0 3 0x40014200 idle0 1 157963 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9496 6407K 6725K 78643K 10775 0 pcb 13 8K 8K 78643K 31 0 rtable 114 6K 7K 78643K 264 0 ifaddr 60 12K 13K 78643K 89 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1484 0 iov 0 0K 12K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1277 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 130 0 sigio 0 0K 0K 78643K 8 0 proc 61 63K 83K 78643K 451 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 5 0 in_multi 36 2K 2K 78643K 70 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 220 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 121 22K 23K 78643K 1389 0 UVM aobj 2 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 9 0K 0K 78643K 18 0 temp 84 3859K 3923K 78643K 2685 0 kqueue 3 4K 10K 78643K 8 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 21 0 19 1 0 1 1 0 8 0 rtentry 112 54 0 13 2 0 2 2 0 8 0 unpcb 120 344 0 329 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 517 0 517 2 2 0 2 0 8 0 tcpcb 544 43 0 39 1 0 1 1 0 8 0 inpcb 296 151 0 144 2 1 1 2 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 8 0 2 1 0 1 1 0 8 0 pfstitem 24 17 0 6 1 0 1 1 0 8 0 pfstkey 112 17 0 6 1 0 1 1 0 8 0 pfstate 328 17 0 6 2 0 2 2 0 8 0 pfrule 1360 25 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 218 0 46 13 0 13 13 0 8 0 art_table 32 219 0 46 2 0 2 2 0 8 0 art_node 16 53 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 2 0 2 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1591 0 187 89 0 89 89 0 8 0 ffsino 272 1591 0 187 95 1 94 94 0 8 0 nchpl 144 1945 0 333 60 0 60 60 0 8 0 uvmvnodes 72 1669 0 0 31 0 31 31 0 8 0 vnodes 208 1669 0 0 88 0 88 88 0 8 0 namei 1024 5206 0 5206 2 1 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 4 0 0 1 0 1 1 0 8 0 scxspl 192 5702 0 5702 8 7 1 7 0 8 1 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 424 345 0 314 4 0 4 4 0 8 0 futexpl 56 1730 0 1730 1 0 1 1 0 8 1 knotepl 112 67 0 48 1 0 1 1 0 8 0 kqueuepl 144 24 0 22 1 0 1 1 0 8 0 pipelkpl 48 88 0 78 1 0 1 1 0 8 0 pipepl 120 176 0 157 1 0 1 1 0 8 0 fdescpl 496 330 0 314 3 0 3 3 0 8 0 filepl 152 1953 0 1847 7 2 5 5 0 8 0 lockfpl 104 27 0 26 1 0 1 1 0 8 0 lockfspl 48 10 0 9 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 148 0 139 1 0 1 1 0 8 0 zombiepl 144 315 0 314 2 1 1 1 0 8 0 processpl 984 345 0 314 7 2 5 5 0 8 1 procpl 624 626 0 586 4 0 4 4 0 8 0 sockpl 400 517 0 492 8 4 4 5 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 212 0 0 26 0 26 26 0 8 0 mtagpl 96 17 0 0 1 0 1 1 0 8 0 mbufpl 256 250 0 0 16 0 16 16 0 8 0 bufpl 280 3488 0 135 240 0 240 240 0 8 0 anonpl 16 47695 0 31668 76 1 75 75 0 124 9 amapchunkpl 152 1700 0 1545 9 2 7 9 0 158 0 amappl16 192 1499 0 646 51 0 51 51 0 8 8 amappl15 184 47 0 45 3 2 1 1 0 8 0 amappl14 176 25 0 21 1 0 1 1 0 8 0 amappl13 168 32 0 27 1 0 1 1 0 8 0 amappl12 160 66 0 63 2 1 1 1 0 8 0 amappl11 152 113 0 95 1 0 1 1 0 8 0 amappl10 144 19 0 15 1 0 1 1 0 8 0 amappl9 136 379 0 378 1 0 1 1 0 8 0 amappl8 128 346 0 310 2 0 2 2 0 8 0 amappl7 120 116 0 105 1 0 1 1 0 8 0 amappl6 112 27 0 22 1 0 1 1 0 8 0 amappl5 104 289 0 273 1 0 1 1 0 8 0 amappl4 96 486 0 458 1 0 1 1 0 8 0 amappl3 88 110 0 102 1 0 1 1 0 8 0 amappl2 80 1740 0 1667 2 0 2 2 0 8 0 amappl1 72 17441 0 16978 23 13 10 18 0 8 0 amappl 80 872 0 825 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 3 0 2 1 0 1 1 0 8 0 uaddrrnd 24 330 0 314 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 330 0 314 1 0 1 1 0 8 0 vmmpekpl 168 6700 0 6665 2 0 2 2 0 8 0 vmmpepl 168 47751 0 45708 122 20 102 116 0 357 9 vmsppl 368 329 0 314 2 0 2 2 0 8 0 pdppl 4096 667 0 628 6 0 6 6 0 8 0 pvpl 32 159437 0 140266 183 0 183 183 0 265 27 pmappl 232 329 0 314 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 9 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824258af) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800023f19218,ffff800023f192a0,30) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800023f19218,ffff800023f192a0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800023f19218,ffff800023f192a0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064126b28) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064126b28,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064126b28,0) at soclose+0x270 sys/kern/uipc_socket.c:344 soo_close(fffffd8067ff34c8,ffff800020e22288) at soo_close+0x40 fdrop(fffffd8067ff34c8,ffff800020e22288) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8067ff34c8,ffff800020e22288) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800020e22288) at fdfree+0x101 sys/kern/kern_descrip.c:1195 exit1(ffff800020e22288,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e22288,ffff800023f19670,ffff800023f196c0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800023f19740) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f19740) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0430, count: -16 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5