panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *475716 27434 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ef030) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd806b630960,fffffd806b630a58,bfdc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd806b630960,fffffd806b630a58) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd806b630960,fffffd806b630a58) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd806b630960,0) at sofree+0x13f sys/kern/uipc_socket.c:256 in_pcbdetach(fffffd806b62fc08) at in_pcbdetach+0x92 sys/netinet/in_pcb.c:571 tcp_close(ffff800000abf220) at tcp_close+0x12f sys/netinet/tcp_subr.c:526 tcp_input(ffff80001d6783c8,ffff80001d6783d4,6,2) at tcp_input+0x22ff ip_deliver(ffff80001d6783c8,ffff80001d6783d4,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d6783c8,ffff80001d6783d4,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d6783c8,ffff80001d6783d4,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd8057912d00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd8057912d00,2) at if_input_local+0xf9 sys/net/if.c:775 end trace frame: 0xffff80001d6784b0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic sbdrop ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ef030) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd806b630960,fffffd806b630a58,bfdc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd806b630960,fffffd806b630a58) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd806b630960,fffffd806b630a58) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd806b630960,0) at sofree+0x13f sys/kern/uipc_socket.c:256 in_pcbdetach(fffffd806b62fc08) at in_pcbdetach+0x92 sys/netinet/in_pcb.c:571 tcp_close(ffff800000abf220) at tcp_close+0x12f sys/netinet/tcp_subr.c:526 tcp_input(ffff80001d6783c8,ffff80001d6783d4,6,2) at tcp_input+0x22ff ip_deliver(ffff80001d6783c8,ffff80001d6783d4,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d6783c8,ffff80001d6783d4,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d6783c8,ffff80001d6783d4,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd8057912d00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd8057912d00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd8057912d00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -18 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d677de0 rbx 0xffff80001d677e90 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81203d6f kprintf+0x15f r9 0x1 r10 0x2 r11 0xa18ec7b326d18d64 r12 0x3000000008 r13 0xffff80001d677df0 r14 0x100 r15 0x1 rip 0xffffffff81869548 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d677dd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=475716 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d651000,0xffff80001d6519d0 process=0xffff8000ffffe730 user=0xffff80001d673000, vmspace=0xffffffff827ea8f8 estcpu=0, cpticks=0, pctcpu=0.24 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88431 449176 0 0 3 0x14280 nfsidl nfsio 91630 483457 0 0 3 0x14280 nfsidl nfsio 73090 294516 0 0 3 0x14280 nfsidl nfsio 90508 505641 0 0 3 0x14280 nfsidl nfsio 20714 102036 0 0 3 0x14280 nfsidl nfsio 20297 458000 0 0 3 0x14280 nfsidl nfsio 48797 497062 0 0 3 0x14280 nfsidl nfsio 39716 239022 0 0 3 0x14280 nfsidl nfsio 75033 460710 0 0 3 0x14280 nfsidl nfsio 42561 98688 0 0 3 0x14280 nfsidl nfsio 97661 124259 0 0 3 0x14280 nfsidl nfsio 62634 285917 0 0 3 0x14280 nfsidl nfsio 49210 224824 0 0 3 0x14280 nfsidl nfsio 45348 7279 0 0 3 0x14280 nfsidl nfsio 58224 231416 0 0 3 0x14280 nfsidl nfsio 89135 95958 0 0 3 0x14280 nfsidl nfsio 31376 83133 0 0 3 0x14280 nfsidl nfsio 53949 517781 0 0 3 0x14280 nfsidl nfsio 1422 92998 0 0 3 0x14280 nfsidl nfsio 42431 346081 0 0 3 0x14280 nfsidl nfsio 66319 326236 0 0 3 0x14200 bored sosplice 76242 266039 42194 0 3 0x82 nanosleep syz-executor.0 22154 441205 42194 0 2 0x2 syz-executor.1 42194 439914 4312 0 3 0x82 thrsleep syz-fuzzer 42194 360873 4312 0 3 0x4000082 nanosleep syz-fuzzer 42194 223622 4312 0 3 0x4000082 thrsleep syz-fuzzer 42194 117580 4312 0 3 0x4000082 thrsleep syz-fuzzer 42194 477407 4312 0 3 0x4000082 thrsleep syz-fuzzer 42194 291178 4312 0 3 0x4000082 kqread syz-fuzzer 42194 425764 4312 0 3 0x4000082 thrsleep syz-fuzzer 42194 511736 4312 0 3 0x4000082 thrsleep syz-fuzzer 4312 289745 87609 0 3 0x10008a pause ksh 87609 226608 81190 0 3 0x92 select sshd 23077 480792 1 0 3 0x100083 ttyin getty 81190 308349 1 0 3 0x80 select sshd 24723 392242 61994 73 3 0x100090 kqread syslogd 61994 47985 1 0 3 0x100082 netio syslogd 25086 366871 1 77 3 0x100090 poll dhclient 37879 195720 1 0 3 0x80 poll dhclient 15983 169764 0 0 3 0x14200 bored smr 68940 309645 0 0 2 0x14200 zerothread 66995 147979 0 0 3 0x14200 aiodoned aiodoned 95894 372717 0 0 3 0x14200 syncer update 55956 83947 0 0 3 0x14200 cleaner cleaner 60821 464665 0 0 3 0x14200 reaper reaper 35662 378107 0 0 3 0x14200 pgdaemon pagedaemon 61052 503022 0 0 3 0x14200 bored crynlk 62917 319359 0 0 3 0x14200 bored crypto 44734 410918 0 0 3 0x40014200 acpi0 acpi0 *27434 475716 0 0 7 0x14200 softnet 21539 489112 0 0 3 0x14200 bored systqmp 86185 335927 0 0 3 0x14200 bored systq 99847 344907 0 0 3 0x40014200 bored softclock 72965 493273 0 0 3 0x40014200 idle0 1 289438 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 9510 6473K 6729K 78643K 10991 0 pcb 13 8K 8K 78643K 61 0 rtable 121 16K 18K 78643K 459 0 ifaddr 85 17K 17K 78643K 146 0 counters 21 16K 16K 78643K 23 0 ioctlops 0 0K 4K 78643K 61 0 iov 0 0K 16K 78643K 52 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1350 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 42 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 320 0 sigio 0 0K 0K 78643K 4 0 proc 49 38K 54K 78643K 385 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 24 0 in_multi 73 3K 3K 78643K 100 0 ether_multi 1 0K 0K 78643K 8 0 mrt 0 0K 0K 78643K 2 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 201 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 141 88K 88K 78643K 1603 0 UVM aobj 8 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 46 0 NDP 12 0K 0K 78643K 19 0 temp 99 3851K 3915K 78643K 6762 0 kqueue 3 4K 10K 78643K 14 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 arp 64 9 0 5 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 63 0 25 2 0 2 2 0 8 0 unpcb 120 159 0 151 1 0 1 1 0 8 0 syncache 264 6 0 6 3 2 1 1 0 8 1 tcpqe 32 251 0 251 2 1 1 1 0 8 1 tcpcb 544 126 0 117 1 0 1 1 0 8 0 ipq 40 6 0 6 2 2 0 1 0 8 0 ipqe 40 16 0 16 2 2 0 1 0 8 0 inpcb 280 338 0 330 2 1 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 7 0 3 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 77 0 69 2 1 1 2 0 8 0 pftag 88 11 0 10 1 0 1 1 0 8 0 pfrule 1360 17 0 10 1 0 1 1 0 8 0 art_heap8 4096 3 0 1 3 0 3 3 0 8 1 art_heap4 256 261 0 67 14 1 13 13 0 8 0 art_table 32 264 0 68 2 0 2 2 0 8 0 art_node 16 60 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 8 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 10 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1826 0 425 88 0 88 88 0 8 0 ffsino 240 1826 0 425 83 0 83 83 0 8 0 nchpl 144 2638 0 1036 60 0 60 60 0 8 0 uvmvnodes 72 1954 0 0 36 0 36 36 0 8 0 vnodes 208 1954 0 0 103 0 103 103 0 8 0 namei 1024 6936 0 6936 2 1 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 28 0 22 1 0 1 1 0 8 0 scxspl 192 7067 0 7067 2 1 1 1 0 8 1 plimitpl 152 40 0 33 1 0 1 1 0 8 0 sigapl 424 529 0 481 6 0 6 6 0 8 0 futexpl 56 6055 0 6055 2 1 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 42 0 40 1 0 1 1 0 8 0 pipepl 272 114 0 104 1 0 1 1 0 8 0 fdescpl 432 492 0 479 2 0 2 2 0 8 0 filepl 120 3118 0 3023 5 1 4 4 0 8 1 lockfpl 104 67 0 66 1 0 1 1 0 8 0 lockfspl 48 24 0 23 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 258 0 251 1 0 1 1 0 8 0 zombiepl 144 481 0 480 2 1 1 1 0 8 0 processpl 920 529 0 480 7 0 7 7 0 8 0 procpl 624 882 0 826 5 0 5 5 0 8 0 sosppl 128 12 0 12 2 1 1 1 0 8 1 sockpl 400 534 0 516 4 1 3 3 0 8 1 mcl64k 65536 31 0 31 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 11 0 11 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 30 0 30 3 2 1 1 0 8 1 mcl2k2 2112 5 0 5 3 2 1 1 0 8 1 mcl2k 2048 76291 0 76240 18 10 8 15 0 8 1 mtagpl 80 30 0 12 2 1 1 1 0 8 0 mbufpl 256 122752 0 122647 12 4 8 10 0 8 1 bufpl 280 3762 0 125 260 0 260 260 0 8 0 anonpl 16 63833 0 47624 79 3 76 78 0 107 7 amapchunkpl 152 2519 0 2379 22 2 20 20 0 158 14 amappl16 192 2457 0 1532 55 3 52 55 0 8 5 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 26 0 19 1 0 1 1 0 8 0 amappl13 168 27 0 24 1 0 1 1 0 8 0 amappl12 160 162 0 159 2 1 1 1 0 8 0 amappl11 152 192 0 181 1 0 1 1 0 8 0 amappl10 144 12 0 7 1 0 1 1 0 8 0 amappl9 136 368 0 366 1 0 1 1 0 8 0 amappl8 128 332 0 289 2 0 2 2 0 8 0 amappl7 120 109 0 97 1 0 1 1 0 8 0 amappl6 112 161 0 156 1 0 1 1 0 8 0 amappl5 104 586 0 576 1 0 1 1 0 8 0 amappl4 96 424 0 398 1 0 1 1 0 8 0 amappl3 88 116 0 110 1 0 1 1 0 8 0 amappl2 80 3127 0 3070 2 0 2 2 0 8 0 amappl1 72 17840 0 17435 24 15 9 17 0 8 0 amappl 80 1110 0 1064 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 11 0 4 1 0 1 1 0 8 0 uaddrrnd 24 498 0 479 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 498 0 479 1 0 1 1 0 8 0 vmmpekpl 168 7223 0 7195 2 0 2 2 0 8 0 vmmpepl 168 64585 0 62665 135 36 99 113 0 357 10 vmsppl 272 497 0 479 3 1 2 2 0 8 0 pdppl 4096 1002 0 964 7 1 6 6 0 8 0 pvpl 32 188762 0 169543 192 5 187 189 0 265 26 pmappl 200 497 0 479 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 255 0 25 7 0 7 7 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:398 panic(ffffffff823ef030) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd806b630960,fffffd806b630a58,bfdc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd806b630960,fffffd806b630a58) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd806b630960,fffffd806b630a58) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd806b630960,0) at sofree+0x13f sys/kern/uipc_socket.c:256 in_pcbdetach(fffffd806b62fc08) at in_pcbdetach+0x92 sys/netinet/in_pcb.c:571 tcp_close(ffff800000abf220) at tcp_close+0x12f sys/netinet/tcp_subr.c:526 tcp_input(ffff80001d6783c8,ffff80001d6783d4,6,2) at tcp_input+0x22ff ip_deliver(ffff80001d6783c8,ffff80001d6783d4,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d6783c8,ffff80001d6783d4,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d6783c8,ffff80001d6783d4,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd8057912d00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd8057912d00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd8057912d00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -18 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ef030) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd806b630960,fffffd806b630a58,bfdc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd806b630960,fffffd806b630a58) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd806b630960,fffffd806b630a58) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd806b630960,0) at sofree+0x13f sys/kern/uipc_socket.c:256 in_pcbdetach(fffffd806b62fc08) at in_pcbdetach+0x92 sys/netinet/in_pcb.c:571 tcp_close(ffff800000abf220) at tcp_close+0x12f sys/netinet/tcp_subr.c:526 tcp_input(ffff80001d6783c8,ffff80001d6783d4,6,2) at tcp_input+0x22ff ip_deliver(ffff80001d6783c8,ffff80001d6783d4,6,2) at ip_deliver+0x2e3 sys/netinet/ip_input.c:668 ip_ours(ffff80001d6783c8,ffff80001d6783d4,2,0) at ip_ours+0x4fe sys/netinet/ip_input.c:563 ip_input_if(ffff80001d6783c8,ffff80001d6783d4,4,0,ffff800000677800) at ip_input_if+0x571 ipv4_input(ffff800000677800,fffffd8057912d00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 if_input_local(ffff800000677800,fffffd8057912d00,2) at if_input_local+0xf9 sys/net/if.c:775 loinput(ffff800000677800,fffffd8057912d00,0) at loinput+0x4f sys/net/if_loop.c:239 if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 if_ih_input sys/net/if.c:908 [inline] if_input_process(ffff800000677800,ffff80001d678518) at if_input_process+0xf8 sys/net/if.c:942 ifiq_process(ffff800000677bb8) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -18