panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 247395 88850 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221e89e) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800021fb6a28,ffff800021fb6ab0,cdb) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800021fb6a28,ffff800021fb6ab0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800021fb6a28,ffff800021fb6ab0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd80671399c0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd80671399c0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd80671399c0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80657d47d8,ffff800020e6d868) at soo_close+0x40 fdrop(fffffd80657d47d8,ffff800020e6d868) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657d47d8,ffff800020e6d868) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e6d868) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e6d868,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e6d868,ffff800021fb6e80,ffff800021fb6ed0) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff800021fb6f40, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic sbdrop ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221e89e) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800021fb6a28,ffff800021fb6ab0,cdb) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800021fb6a28,ffff800021fb6ab0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800021fb6a28,ffff800021fb6ab0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd80671399c0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd80671399c0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd80671399c0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80657d47d8,ffff800020e6d868) at soo_close+0x40 fdrop(fffffd80657d47d8,ffff800020e6d868) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657d47d8,ffff800020e6d868) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e6d868) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e6d868,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e6d868,ffff800021fb6e80,ffff800021fb6ed0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800021fb6f50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fb6f50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0740, count: -16 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021fb6870 rbx 0xffff800021fb6920 rdx 0xffff800020e6d868 rcx 0 rax 0 r8 0xffffffff814db7df kprintf+0x16f r9 0x1 r10 0x25 r11 0xafe33b57e4141dd8 r12 0x3000000008 r13 0xffff800021fb6880 r14 0x100 r15 0x1 rip 0xffffffff817e1ae8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021fb6860 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=401259 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed9398,0xffff800020ed8508 process=0xffff800020ece3f8 user=0xffff800021fb2000, vmspace=0xfffffd807c560b98 estcpu=33, cpticks=15, pctcpu=0.18 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 80394 166057 28402 0 2 0 syz-executor.0 80394 443796 28402 0 3 0x4000080 netio syz-executor.0 80394 488672 28402 0 3 0x4000080 netio syz-executor.0 80394 120709 28402 0 3 0x4000080 netio syz-executor.0 80394 116714 28402 0 2 0x4000000 syz-executor.0 80394 118136 28402 0 3 0x4000080 fsleep syz-executor.0 49413 137540 1 0 3 0x100083 ttyin getty 28402 49772 24025 0 3 0x82 nanosleep syz-executor.0 93683 190558 24025 0 3 0x82 nanosleep syz-executor.1 84457 202515 0 0 3 0x14200 bored sosplice 24025 189142 68010 0 3 0x82 thrsleep syz-fuzzer 24025 389318 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 148485 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 90640 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 462546 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 242694 68010 0 3 0x4000082 kqread syz-fuzzer 24025 509573 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 177532 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 351014 68010 0 3 0x4000082 thrsleep syz-fuzzer 24025 154250 68010 0 3 0x4000082 thrsleep syz-fuzzer 68010 381462 84506 0 3 0x10008a pause ksh 84506 489816 95524 0 3 0x92 select sshd 95524 155307 1 0 3 0x80 select sshd 14104 473820 91854 74 3 0x100092 bpf pflogd 91854 237241 1 0 3 0x80 netio pflogd 85478 327752 52458 73 3 0x100090 kqread syslogd 52458 177679 1 0 3 0x100082 netio syslogd 65174 39243 1 77 3 0x100090 poll dhclient 14351 218669 1 0 3 0x80 poll dhclient 51605 413922 0 0 3 0x14200 bored smr 14687 128223 0 0 2 0x14200 zerothread 66606 299370 0 0 3 0x14200 aiodoned aiodoned 17495 17977 0 0 3 0x14200 syncer update 90406 520861 0 0 3 0x14200 cleaner cleaner 88850 247395 0 0 7 0x14200 reaper 58815 362995 0 0 3 0x14200 pgdaemon pagedaemon 95245 474012 0 0 3 0x14200 bored crynlk 91160 516005 0 0 3 0x14200 bored crypto 91255 399027 0 0 3 0x40014200 acpi0 acpi0 26387 397172 0 0 3 0x40014200 idle1 59714 429406 0 0 3 0x14200 bored softnet 71530 479166 0 0 3 0x14200 bored systqmp 45605 32018 0 0 3 0x14200 bored systq 36321 254857 0 0 3 0x40014200 bored softclock 9817 337940 0 0 3 0x40014200 idle0 1 32537 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9557 6431K 6941K 78643K 11725 0 pcb 13 8K 8K 78643K 236 0 rtable 105 12K 12K 78643K 568 0 ifaddr 109 20K 21K 78643K 298 0 counters 43 33K 34K 78643K 107 0 ioctlops 0 0K 4K 78643K 1538 0 iov 0 0K 16K 78643K 166 0 mount 1 1K 1K 78643K 1 0 vnodes 1214 76K 77K 78643K 1679 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 130 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1823 197K 290K 78643K 12980 0 file desc 6 17K 25K 78643K 1154 0 sigio 0 0K 0K 78643K 27 0 proc 62 63K 95K 78643K 636 0 subproc 32 2K 2K 78643K 72 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 110 0 in_multi 105 5K 5K 78643K 256 0 ether_multi 1 0K 0K 78643K 43 0 mrt 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 320 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 190 252K 252K 78643K 5129 0 UVM aobj 21 2K 2K 78643K 35 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 189 0 NDP 17 0K 0K 78643K 59 0 temp 151 3047K 3123K 78643K 58869 0 kqueue 3 4K 12K 78643K 32 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 arp 64 12 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 87 0 85 1 0 1 1 0 8 0 rtentry 112 90 0 49 3 1 2 2 0 8 0 unpcb 120 2818 0 2804 3 2 1 2 0 8 0 syncache 264 15 0 15 6 6 0 1 0 8 0 tcpqe 32 60 0 60 2 2 0 1 0 8 0 tcpcb 544 424 0 416 1 0 1 1 0 8 0 inpcb 280 1226 0 1212 7 5 2 2 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 15 0 13 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 4 0 4 3 3 0 1 0 8 0 pffrag 232 6 0 6 4 4 0 1 0 482 0 pffrnode 88 6 0 6 4 4 0 1 0 8 0 pffrent 40 102 0 102 4 4 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 92 0 66 1 0 1 1 0 8 0 pfstkey 112 92 0 66 1 0 1 1 0 8 0 pfstate 328 92 0 66 4 1 3 3 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 372 0 199 15 2 13 13 0 8 0 art_table 32 373 0 199 2 0 2 2 0 8 0 art_node 16 89 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 45 0 27 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 123 0 113 1 0 1 1 0 8 0 shmpl 112 33 0 14 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3317 0 1914 89 0 89 89 0 8 0 ffsino 272 3317 0 1914 95 0 95 95 0 8 0 nchpl 144 5296 0 3700 60 0 60 60 0 8 0 uvmvnodes 72 3632 0 0 67 0 67 67 0 8 0 vnodes 208 3632 0 0 192 0 192 192 0 8 0 namei 1024 15052 0 15052 3 2 1 1 0 8 1 percpumem 16 64 0 32 1 0 1 1 0 8 0 vcpupl 1984 22 0 0 3 0 3 3 0 8 0 vmpool 560 22 0 0 2 0 2 2 0 8 0 scxspl 192 17685 0 17685 20 19 1 7 0 8 1 plimitpl 152 74 0 66 1 0 1 1 0 8 0 sigapl 424 1367 0 1334 4 0 4 4 0 8 0 futexpl 56 16642 0 16641 4 3 1 1 0 8 0 knotepl 112 117 0 98 1 0 1 1 0 8 0 kqueuepl 144 128 0 121 1 0 1 1 0 8 0 pipelkpl 48 261 0 251 1 0 1 1 0 8 0 pipepl 120 522 0 503 3 2 1 2 0 8 0 fdescpl 496 1349 0 1332 3 0 3 3 0 8 0 filepl 152 9970 0 9858 8 3 5 7 0 8 0 lockfpl 104 247 0 246 1 0 1 1 0 8 0 lockfspl 48 86 0 85 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 1023 0 1013 1 0 1 1 0 8 0 zombiepl 144 1335 0 1334 1 0 1 1 0 8 0 processpl 984 1367 0 1334 5 0 5 5 0 8 0 procpl 624 4185 0 4136 12 7 5 5 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 26 0 26 7 7 0 1 0 8 0 sockpl 400 4137 0 4107 13 8 5 5 0 8 1 mcl64k 65536 23 0 0 3 1 2 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 175 0 0 20 0 20 20 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 419 0 0 19 0 19 19 0 8 1 mbufpl: pool(0xffffffff8268b9a0:mbufpl): free list modified: page 0xfffffd806d61b000; item ordinal 3; addr 0xfffffd806d61bd00 (p 0xfffffd806dc55000); offset 0x0=0x0 mbufpl: pool(0xffffffff8268b9a0:mbufpl): page inconsistency: page 0xfffffd806d61b000; item ordinal 4; addr 0x8f47cb53ad2d3902 bufpl 280 8388 0 2144 447 0 447 447 0 8 0 anonpl 16 134592 0 120046 100 38 62 73 0 124 0 amapchunkpl 152 8507 0 8334 15 7 8 10 0 158 0 amappl16 192 6497 0 5692 73 32 41 51 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 28 0 20 1 0 1 1 0 8 0 amappl13 168 38 0 37 1 0 1 1 0 8 0 amappl12 160 27 0 22 1 0 1 1 0 8 0 amappl11 152 865 0 847 1 0 1 1 0 8 0 amappl10 144 23 0 18 1 0 1 1 0 8 0 amappl9 136 388 0 386 1 0 1 1 0 8 0 amappl8 128 424 0 380 2 0 2 2 0 8 0 amappl7 120 141 0 127 1 0 1 1 0 8 0 amappl6 112 835 0 825 1 0 1 1 0 8 0 amappl5 104 732 0 716 1 0 1 1 0 8 0 amappl4 96 1109 0 1074 1 0 1 1 0 8 0 amappl3 88 163 0 158 1 0 1 1 0 8 0 amappl2 80 9522 0 9441 2 0 2 2 0 8 0 amappl1 72 39058 0 38570 23 13 10 18 0 8 0 amappl 80 4481 0 4407 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 34 0 14 1 0 1 1 0 8 0 uaddrrnd 24 1371 0 1332 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1371 0 1332 1 0 1 1 0 8 0 vmmpekpl 168 14886 0 14845 2 0 2 2 0 8 0 vmmpepl 168 170652 0 168461 159 63 96 115 0 357 0 vmsppl 368 1370 0 1332 4 0 4 4 0 8 0 pdppl 4096 2750 0 2686 10 1 9 9 0 8 0 pvpl 32 400994 0 382909 242 79 163 175 0 265 16 pmappl 232 1370 0 1332 4 1 3 3 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 301 0 24 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff824abff0) 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 __mp_lock(ffffffff82692ef8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82692ef8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 reaper(ffff800020e19ad0) at reaper+0x14e sys/kern/kern_exit.c:444 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff824abff0) 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 __mp_lock(ffffffff82692ef8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82692ef8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 reaper(ffff800020e19ad0) at reaper+0x14e sys/kern/kern_exit.c:444 end trace frame: 0x0, count: -5 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:398 panic(ffffffff8221e89e) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800021fb6a28,ffff800021fb6ab0,cdb) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800021fb6a28,ffff800021fb6ab0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800021fb6a28,ffff800021fb6ab0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd80671399c0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd80671399c0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd80671399c0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80657d47d8,ffff800020e6d868) at soo_close+0x40 fdrop(fffffd80657d47d8,ffff800020e6d868) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657d47d8,ffff800020e6d868) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e6d868) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e6d868,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e6d868,ffff800021fb6e80,ffff800021fb6ed0) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff800021fb6f40, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221e89e) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800021fb6a28,ffff800021fb6ab0,cdb) at sbdrop+0x3c6 sys/kern/uipc_socket2.c:953 sbflush(ffff800021fb6a28,ffff800021fb6ab0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800021fb6a28,ffff800021fb6ab0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd80671399c0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd80671399c0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd80671399c0,0) at soclose+0x270 sys/kern/uipc_socket.c:338 soo_close(fffffd80657d47d8,ffff800020e6d868) at soo_close+0x40 fdrop(fffffd80657d47d8,ffff800020e6d868) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657d47d8,ffff800020e6d868) at closef+0x11c sys/kern/kern_descrip.c:1260 fdfree(ffff800020e6d868) at fdfree+0x101 sys/kern/kern_descrip.c:1192 exit1(ffff800020e6d868,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff800020e6d868,ffff800021fb6e80,ffff800021fb6ed0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800021fb6f50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fb6f50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0740, count: -16