panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *114542 93888 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ef64a) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001edacfb8,ffff80001edad040,472) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001edacfb8,ffff80001edad040) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001edacfb8,ffff80001edad040) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8062a30c80) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8062a30c80,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8062a30c80,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057471178,ffff80001d6c1eb8) at soo_close+0x40 fdrop(fffffd8057471178,ffff80001d6c1eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057471178,ffff80001d6c1eb8) at closef+0x117 sys/kern/kern_descrip.c:1263 syscall(ffff80001edad3d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8291ee84e20, count: 2 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(ffffffff823ef64a) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001edacfb8,ffff80001edad040,472) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001edacfb8,ffff80001edad040) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001edacfb8,ffff80001edad040) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8062a30c80) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8062a30c80,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8062a30c80,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057471178,ffff80001d6c1eb8) at soo_close+0x40 fdrop(fffffd8057471178,ffff80001d6c1eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057471178,ffff80001d6c1eb8) at closef+0x117 sys/kern/kern_descrip.c:1263 syscall(ffff80001edad3d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8291ee84e20, count: -13 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001edace00 rbx 0xffff80001edaceb0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff822352af kprintf+0x15f r9 0x1 r10 0x2 r11 0xaed5945b6283a43e r12 0x3000000008 r13 0xffff80001edace10 r14 0x100 r15 0x1 rip 0xffffffff81c03b08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001edacdf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=114542 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=62, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6c1288,0xffffffff8283d9e8 process=0xffff8000ffff95a8 user=0xffff80001eda8000, vmspace=0xfffffd8057857668 estcpu=12, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93888 51676 57023 0 2 0 syz-executor.1 93888 185123 57023 0 3 0x4000080 msgwait syz-executor.1 *93888 114542 57023 0 7 0x4000000 syz-executor.1 48819 209866 81122 0 3 0x82 piperd syz-executor.0 11386 394958 0 0 3 0x14200 bored sosplice 57023 181252 81122 0 3 0x82 nanosleep syz-executor.1 81122 225488 65042 0 3 0x82 thrsleep syz-fuzzer 81122 209069 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 522040 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 100901 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 187568 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 521756 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 164626 65042 0 3 0x4000082 thrsleep syz-fuzzer 81122 364273 65042 0 3 0x4000082 kqread syz-fuzzer 65042 414914 64089 0 3 0x10008a pause ksh 64089 12214 6210 0 3 0x92 select sshd 68613 9671 1 0 3 0x100083 ttyin getty 6210 462609 1 0 3 0x80 select sshd 77284 418934 9834 73 3 0x100090 kqread syslogd 9834 309647 1 0 3 0x100082 netio syslogd 40899 372691 1 77 3 0x100090 poll dhclient 65911 398057 1 0 3 0x80 poll dhclient 78561 65988 0 0 3 0x14200 bored smr 34510 55651 0 0 3 0x14200 pgzero zerothread 82694 467725 0 0 3 0x14200 aiodoned aiodoned 84275 98142 0 0 3 0x14200 syncer update 9584 469642 0 0 3 0x14200 cleaner cleaner 644 153681 0 0 3 0x14200 reaper reaper 29158 169223 0 0 3 0x14200 pgdaemon pagedaemon 68092 471686 0 0 3 0x14200 bored crynlk 82236 149275 0 0 3 0x14200 bored crypto 27587 218323 0 0 3 0x40014200 acpi0 acpi0 85361 40327 0 0 3 0x14200 bored softnet 9587 334878 0 0 3 0x14200 bored systqmp 4885 509405 0 0 3 0x14200 bored systq 57308 86956 0 0 3 0x40014200 bored softclock 86549 400272 0 0 3 0x40014200 idle0 1 368456 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 9469 6346K 6908K 78643K 10871 0 pcb 13 8K 8K 78643K 60 0 rtable 100 6K 9K 78643K 469 0 ifaddr 53 12K 13K 78643K 117 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 25 0 ioctlops 0 0K 4K 78643K 44 0 iov 0 0K 16K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1336 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 30 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 207 0 sigio 0 0K 0K 78643K 3 0 proc 49 38K 63K 78643K 415 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 274 0 in_multi 30 2K 2K 78643K 71 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 226 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 132 55K 56K 78643K 1356 0 UVM aobj 4 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 7 0K 0K 78643K 18 0 temp 81 3853K 3916K 78643K 5022 0 kqueue 3 4K 9K 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 12 0 5 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 76 0 42 2 0 2 2 0 8 0 unpcb 120 99 0 91 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 150 0 150 1 1 0 1 0 8 0 tcpcb 544 112 0 105 1 0 1 1 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 6 0 6 1 0 1 1 0 8 1 inpcb 296 476 0 465 2 0 2 2 0 8 1 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 10 0 4 1 0 1 1 0 8 0 pfrktable 1344 67 0 60 2 0 2 2 0 8 1 pftag 88 8 0 6 1 0 1 1 0 8 0 pfrule 1360 12 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 290 0 136 13 1 12 13 0 8 2 art_table 32 291 0 136 2 0 2 2 0 8 0 art_node 16 75 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 2 1 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 26 0 16 1 0 1 1 0 8 0 shmpl 112 6 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1650 0 253 88 0 88 88 0 8 0 ffsino 240 1650 0 253 83 0 83 83 0 8 0 nchpl 144 2110 0 523 60 0 60 60 0 8 0 uvmvnodes 72 1781 0 0 33 0 33 33 0 8 0 vnodes 208 1781 0 0 94 0 94 94 0 8 0 namei 1024 5613 0 5613 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 22 0 16 1 0 1 1 0 8 0 scxspl 192 6345 0 6345 1 0 1 1 0 8 1 plimitpl 152 29 0 22 1 0 1 1 0 8 0 sigapl 424 391 0 362 4 0 4 4 0 8 0 futexpl 56 3880 0 3880 1 0 1 1 0 8 1 knotepl 112 83 0 64 1 0 1 1 0 8 0 kqueuepl 144 38 0 36 1 0 1 1 0 8 0 pipelkpl 16 112 0 102 1 0 1 1 0 8 0 pipepl 120 224 0 205 1 0 1 1 0 8 0 fdescpl 432 376 0 362 2 0 2 2 0 8 0 filepl 120 2323 0 2224 4 0 4 4 0 8 0 lockfpl 104 84 0 83 1 0 1 1 0 8 0 lockfspl 48 29 0 28 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 214 0 207 1 0 1 1 0 8 0 zombiepl 144 362 0 362 1 0 1 1 0 8 1 processpl 920 391 0 362 4 0 4 4 0 8 0 procpl 624 608 0 570 4 0 4 4 0 8 0 sosppl 128 9 0 9 1 0 1 1 0 8 1 sockpl 400 607 0 586 3 0 3 3 0 8 0 mcl64k 65536 12 0 12 1 0 1 1 0 8 1 mcl12k 12288 4 0 4 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 8 0 8 1 0 1 1 0 8 1 mcl4k 4096 26 0 26 2 1 1 1 0 8 1 mcl2k 2048 77759 0 77712 17 10 7 16 0 8 0 mtagpl 96 21 0 16 2 1 1 1 0 8 0 mbufpl 256 124636 0 124527 15 4 11 13 0 8 3 bufpl 280 3669 0 128 253 0 253 253 0 8 0 anonpl 16 55615 0 40323 70 2 68 68 0 107 1 amapchunkpl 152 1805 0 1673 9 2 7 8 0 158 1 amappl16 192 1791 0 868 48 1 47 48 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 30 0 25 1 0 1 1 0 8 0 amappl13 168 128 0 123 1 0 1 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 75 0 70 1 0 1 1 0 8 0 amappl9 136 384 0 381 1 0 1 1 0 8 0 amappl8 128 362 0 325 2 0 2 2 0 8 0 amappl7 120 163 0 150 1 0 1 1 0 8 0 amappl6 112 27 0 22 1 0 1 1 0 8 0 amappl5 104 331 0 319 1 0 1 1 0 8 0 amappl4 96 520 0 488 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 2118 0 2053 2 0 2 2 0 8 0 amappl1 72 16656 0 16249 23 14 9 17 0 8 0 amappl 80 847 0 804 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 7 0 4 1 0 1 1 0 8 0 uaddrrnd 24 380 0 362 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 380 0 362 1 0 1 1 0 8 0 vmmpekpl 168 6616 0 6586 2 0 2 2 0 8 0 vmmpepl 168 52557 0 50548 132 8 124 124 0 357 34 vmsppl 272 379 0 362 2 0 2 2 0 8 0 pdppl 4096 766 0 728 6 0 6 6 0 8 0 pvpl 32 174466 0 156178 166 2 164 166 0 265 7 pmappl 200 379 0 362 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 244 0 18 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(ffffffff823ef64a) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001edacfb8,ffff80001edad040,472) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001edacfb8,ffff80001edad040) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001edacfb8,ffff80001edad040) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8062a30c80) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8062a30c80,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8062a30c80,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057471178,ffff80001d6c1eb8) at soo_close+0x40 fdrop(fffffd8057471178,ffff80001d6c1eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057471178,ffff80001d6c1eb8) at closef+0x117 sys/kern/kern_descrip.c:1263 syscall(ffff80001edad3d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8291ee84e20, count: -13 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ef64a) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001edacfb8,ffff80001edad040,472) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001edacfb8,ffff80001edad040) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001edacfb8,ffff80001edad040) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8062a30c80) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8062a30c80,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8062a30c80,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057471178,ffff80001d6c1eb8) at soo_close+0x40 fdrop(fffffd8057471178,ffff80001d6c1eb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057471178,ffff80001d6c1eb8) at closef+0x117 sys/kern/kern_descrip.c:1263 syscall(ffff80001edad3d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8291ee84e20, count: -13