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(ffffffff8221bdf4) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd80679694d0,fffffd80679695c8,bfdc) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(fffffd80679694d0,fffffd80679695c8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd80679694d0,fffffd80679695c8) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd80679694d0,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd80679694d0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd8067b2d2f8,ffff800020ecfae8) at soo_close+0x40 fdrop(fffffd8067b2d2f8,ffff800020ecfae8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8067b2d2f8,ffff800020ecfae8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020ecfae8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020ecfae8,0,0,3) at exit1+0x32c sys/kern/kern_exit.c:197 single_thread_check(ffff800020ecfae8,0) at single_thread_check+0x14b sys/kern/kern_sig.c:1918 userret(ffff800020ecfae8) at userret+0x345 sys/kern/kern_sig.c:1891 end trace frame: 0xffff800023f9b7d0, 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(ffffffff8221bdf4) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd80679694d0,fffffd80679695c8,bfdc) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(fffffd80679694d0,fffffd80679695c8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd80679694d0,fffffd80679695c8) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd80679694d0,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd80679694d0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd8067b2d2f8,ffff800020ecfae8) at soo_close+0x40 fdrop(fffffd8067b2d2f8,ffff800020ecfae8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8067b2d2f8,ffff800020ecfae8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020ecfae8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020ecfae8,0,0,3) at exit1+0x32c sys/kern/kern_exit.c:197 single_thread_check(ffff800020ecfae8,0) at single_thread_check+0x14b sys/kern/kern_sig.c:1918 userret(ffff800020ecfae8) at userret+0x345 sys/kern/kern_sig.c:1891 syscall(ffff800023f9b7e0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800023f9b7e0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7f80, count: -16 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800023f9b260 rbx 0xffff800023f9b310 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff814a3bdf kprintf+0x16f r9 0x1 r10 0x2 r11 0xd6c9fc42bbe9911b r12 0x3000000008 r13 0xffff800023f9b270 r14 0x100 r15 0x1 rip 0xffffffff81bf1358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023f9b250 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=442625 stat=onproc flags process=1008 proc=82000 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ece018,0xffffffff82655490 process=0xffff800020ed8400 user=0xffff800023f96000, vmspace=0xfffffd807f000730 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 77593 115282 0 0 3 0x14200 bored sosplice 66103 148024 12003 0 3 0x82 wait syz-executor.1 67379 169410 12003 0 3 0x82 piperd syz-executor.0 12003 209456 8394 0 3 0x82 thrsleep syz-fuzzer 12003 244561 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 284609 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 425321 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 165679 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 508499 8394 0 3 0x4000082 kqread syz-fuzzer 12003 379123 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 293275 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 491088 8394 0 3 0x4000082 thrsleep syz-fuzzer 12003 28175 8394 0 3 0x4000082 thrsleep syz-fuzzer 8394 408150 68967 0 3 0x10008a pause ksh 68967 122573 3893 0 3 0x92 select sshd 45650 436766 1 0 3 0x100083 ttyin getty 3893 141432 1 0 3 0x80 select sshd 60822 462610 37456 74 3 0x100092 bpf pflogd 37456 11985 1 0 3 0x80 netio pflogd 64485 222844 70952 73 3 0x100090 kqread syslogd 70952 64494 1 0 3 0x100082 netio syslogd 98580 31717 1 77 3 0x100090 poll dhclient 90331 135110 1 0 3 0x80 poll dhclient 81539 445436 0 0 3 0x14200 bored smr 40019 177927 0 0 3 0x14200 pgzero zerothread 58215 356214 0 0 3 0x14200 aiodoned aiodoned 63611 366442 0 0 3 0x14200 syncer update 38194 285118 0 0 3 0x14200 cleaner cleaner 61891 312407 0 0 3 0x14200 reaper reaper 22652 126685 0 0 3 0x14200 pgdaemon pagedaemon 33428 413927 0 0 3 0x14200 bored crynlk 3811 346717 0 0 3 0x14200 bored crypto 55463 502342 0 0 3 0x40014200 acpi0 acpi0 11960 159039 0 0 7 0x40014200 idle1 13818 1415 0 0 3 0x14200 bored softnet 55901 72384 0 0 3 0x14200 bored systqmp 66585 188094 0 0 3 0x14200 bored systq 47492 131036 0 0 3 0x40014200 bored softclock 90259 276851 0 0 3 0x40014200 idle0 1 450241 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 9513 6417K 6740K 78643K 10836 0 pcb 13 8K 8K 78643K 66 0 rtable 81 2K 3K 78643K 237 0 ifaddr 68 13K 13K 78643K 88 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1479 0 iov 0 0K 16K 78643K 28 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1300 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 34 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 271 0 proc 61 63K 83K 78643K 456 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 19 0 in_multi 40 2K 2K 78643K 65 0 ether_multi 1 0K 0K 78643K 6 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 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 32K 78643K 1734 0 UVM aobj 10 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 36 0 NDP 11 0K 0K 78643K 18 0 temp 99 3039K 3103K 78643K 2735 0 kqueue 3 4K 6K 78643K 4 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 50 0 18 2 0 2 2 0 8 0 unpcb 120 131 0 121 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 721 0 721 2 2 0 2 0 8 0 tcpcb 544 84 0 77 1 0 1 1 0 8 0 inpcb 280 263 0 256 3 2 1 2 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pffrag 232 2 0 2 2 2 0 1 0 482 0 pffrnode 88 2 0 2 2 2 0 1 0 8 0 pffrent 40 4 0 4 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 33 0 24 1 0 1 1 0 8 0 pfstkey 112 35 0 26 1 0 1 1 0 8 0 pfstate 328 33 0 24 2 0 2 2 0 8 0 pfrule 1360 21 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 226 0 94 13 4 9 13 0 8 0 art_table 32 227 0 94 2 0 2 2 0 8 0 art_node 16 49 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 8 3 3 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 31 0 21 1 0 1 1 0 8 0 shmpl 112 10 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1742 0 338 90 2 88 89 0 8 0 ffsino 272 1742 0 338 95 1 94 94 0 8 0 nchpl 144 2283 0 674 60 0 60 60 0 8 0 uvmvnodes 72 1839 0 0 34 0 34 34 0 8 0 vnodes 208 1839 0 0 97 0 97 97 0 8 0 namei 1024 6208 0 6208 2 1 1 1 0 8 1 percpumem 16 34 0 2 1 0 1 1 0 8 0 vmpool 560 1 0 1 1 1 0 1 0 8 0 scxspl 192 6545 0 6545 8 7 1 7 0 8 1 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 424 487 0 455 4 0 4 4 0 8 0 futexpl 56 6245 0 6245 1 0 1 1 0 8 1 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 288 0 286 1 0 1 1 0 8 0 pipelkpl 48 102 0 92 1 0 1 1 0 8 0 pipepl 120 204 0 185 1 0 1 1 0 8 0 fdescpl 496 471 0 455 3 0 3 3 0 8 0 filepl 152 2646 0 2545 6 1 5 5 0 8 0 lockfpl 104 32 0 31 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 359 0 350 1 0 1 1 0 8 0 zombiepl 144 456 0 455 2 1 1 1 0 8 0 processpl 984 487 0 455 6 1 5 5 0 8 0 procpl 624 901 0 860 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 419 0 399 5 2 3 3 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 223 0 0 27 1 26 27 0 8 1 mtagpl 80 16 0 0 1 0 1 1 0 8 0 mbufpl 256 272 0 0 18 1 17 17 0 8 0 bufpl 280 3859 0 134 267 0 267 267 0 8 0 anonpl 16 57853 0 43159 80 20 60 74 0 124 0 amapchunkpl 152 2162 0 2035 11 5 6 9 0 158 0 amappl16 192 2204 0 1407 59 18 41 51 0 8 0 amappl15 184 107 0 102 1 0 1 1 0 8 0 amappl14 176 26 0 19 1 0 1 1 0 8 0 amappl13 168 37 0 33 1 0 1 1 0 8 0 amappl12 160 7 0 6 1 0 1 1 0 8 0 amappl11 152 49 0 34 1 0 1 1 0 8 0 amappl10 144 152 0 145 1 0 1 1 0 8 0 amappl9 136 70 0 68 1 0 1 1 0 8 0 amappl8 128 365 0 331 2 0 2 2 0 8 0 amappl7 120 251 0 240 1 0 1 1 0 8 0 amappl6 112 28 0 23 1 0 1 1 0 8 0 amappl5 104 999 0 984 1 0 1 1 0 8 0 amappl4 96 490 0 460 1 0 1 1 0 8 0 amappl3 88 116 0 110 1 0 1 1 0 8 0 amappl2 80 2914 0 2840 2 0 2 2 0 8 0 amappl1 72 19941 0 19502 23 13 10 18 0 8 0 amappl 80 1150 0 1109 1 0 1 1 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 11 0 2 1 0 1 1 0 8 0 uaddrrnd 24 472 0 456 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 472 0 456 1 0 1 1 0 8 0 vmmpekpl 168 7220 0 7191 2 0 2 2 0 8 0 vmmpepl 168 64604 0 62652 129 38 91 104 0 357 0 vmsppl 368 471 0 456 2 0 2 2 0 8 0 pdppl 4096 952 0 912 6 0 6 6 0 8 0 pvpl 32 190043 0 172220 200 49 151 178 0 265 6 pmappl 232 471 0 456 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 275 0 15 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(ffffffff8221bdf4) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd80679694d0,fffffd80679695c8,bfdc) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(fffffd80679694d0,fffffd80679695c8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd80679694d0,fffffd80679695c8) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd80679694d0,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd80679694d0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd8067b2d2f8,ffff800020ecfae8) at soo_close+0x40 fdrop(fffffd8067b2d2f8,ffff800020ecfae8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8067b2d2f8,ffff800020ecfae8) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020ecfae8) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020ecfae8,0,0,3) at exit1+0x32c sys/kern/kern_exit.c:197 single_thread_check(ffff800020ecfae8,0) at single_thread_check+0x14b sys/kern/kern_sig.c:1918 userret(ffff800020ecfae8) at userret+0x345 sys/kern/kern_sig.c:1891 syscall(ffff800023f9b7e0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff800023f9b7e0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7f80, count: -16 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020e00ff0) 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(ffff800020e00ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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(ffff800020e00ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5