panic: receive 1: so 0xfffffd805e555000, so_type 3, sb_cc 177 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *151888 42271 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cedc4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd805e555000,0,ffff80001d772888,0,0,ffff80001d772794) at soreceive+0x16ac sys/kern/uipc_socket.c:823 soo_read(fffffd8069bf30f0,ffff80001d772888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d739278,6,ffff80001d772888,0,ffff80001d772970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d739278,ffff80001d772920,ffff80001d772970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d7729f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9110, count: 7 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 receive 1: so 0xfffffd805e555000, so_type 3, sb_cc 177 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cedc4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd805e555000,0,ffff80001d772888,0,0,ffff80001d772794) at soreceive+0x16ac sys/kern/uipc_socket.c:823 soo_read(fffffd8069bf30f0,ffff80001d772888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d739278,6,ffff80001d772888,0,ffff80001d772970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d739278,ffff80001d772920,ffff80001d772970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d7729f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9110, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7725d0 rbx 0xffff80001d772680 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d772590 r9 0x1 r10 0 r11 0xba8f50febf628750 r12 0x3000000008 r13 0xffff80001d7725e0 r14 0x100 r15 0x1 rip 0xffffffff81259218 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7725c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=151888 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d73a118,0xffff80001d739768 process=0xffff8000ffffa740 user=0xffff80001d76d000, vmspace=0xfffffd806bc09660 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92846 118417 78959 0 2 0 syz-executor.1 92846 278647 78959 0 2 0x4000000 syz-executor.1 47071 129459 0 0 3 0x14200 acct acct 63779 321828 61926 0 2 0x2 syz-executor.0 63074 474444 0 0 3 0x14200 bored sosplice 78959 74123 61926 0 3 0x82 nanosleep syz-executor.1 61926 366196 47815 0 3 0x82 thrsleep syz-fuzzer 61926 366662 47815 0 3 0x4000082 nanosleep syz-fuzzer 61926 131061 47815 0 3 0x4000082 thrsleep syz-fuzzer 61926 385128 47815 0 3 0x4000082 thrsleep syz-fuzzer 61926 227968 47815 0 3 0x4000082 kqread syz-fuzzer 61926 179308 47815 0 3 0x4000082 thrsleep syz-fuzzer 61926 353748 47815 0 3 0x4000082 thrsleep syz-fuzzer 61926 138689 47815 0 3 0x4000082 thrsleep syz-fuzzer 47815 208629 81390 0 3 0x10008a pause ksh 81390 440275 81523 0 3 0x92 select sshd 75496 479106 1 0 3 0x100083 ttyin getty 81523 252389 1 0 3 0x80 select sshd 15894 140071 46838 73 3 0x100090 kqread syslogd 46838 232207 1 0 3 0x100082 netio syslogd 20360 195527 1 77 2 0x100010 dhclient *42271 151888 1 0 7 0 dhclient 30846 260636 0 0 3 0x14200 bored smr 681 173332 0 0 2 0x14200 zerothread 38436 115623 0 0 3 0x14200 aiodoned aiodoned 57764 268083 0 0 3 0x14200 syncer update 3529 279513 0 0 3 0x14200 cleaner cleaner 42751 373660 0 0 3 0x14200 reaper reaper 3151 298615 0 0 3 0x14200 pgdaemon pagedaemon 84024 3064 0 0 3 0x14200 bored crynlk 70853 256446 0 0 3 0x14200 bored crypto 97797 385608 0 0 3 0x40014200 acpi0 acpi0 78800 328997 0 0 3 0x14200 bored softnet 21495 508006 0 0 3 0x14200 bored systqmp 32714 32595 0 0 3 0x14200 bored systq 87173 263268 0 0 3 0x40014200 bored softclock 30805 470051 0 0 3 0x40014200 idle0 1 492284 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 9520 6365K 7400K 78643K 15048 0 pcb 13 8K 8K 78643K 205 0 rtable 95 3K 4K 78643K 718 0 ifaddr 107 21K 22K 78643K 196 0 counters 21 16K 16K 78643K 33 0 ioctlops 0 0K 2K 78643K 57 0 iov 0 0K 16K 78643K 176 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 2357 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 13 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 134 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1808 195K 288K 78643K 12860 0 file desc 5 13K 25K 78643K 1226 0 sigio 0 0K 0K 78643K 26 0 proc 50 38K 63K 78643K 521 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 94 0 in_multi 125 4K 5K 78643K 286 0 ether_multi 1 0K 0K 78643K 48 0 mrt 0 0K 0K 78643K 5 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 317 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 137 104K 124K 78643K 3616 0 UVM aobj 44 2K 2K 78643K 65 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 292 0 NDP 14 0K 0K 78643K 36 0 temp 113 3036K 3109K 78643K 43663 0 kqueue 5 8K 14K 78643K 62 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 474 0 472 1 0 1 1 0 8 0 rtentry 112 86 0 50 2 0 2 2 0 8 0 unpcb 120 431 0 421 1 0 1 1 0 8 0 syncache 264 18 0 18 4 4 0 1 0 8 0 tcpqe 32 35 0 35 3 3 0 1 0 8 0 tcpcb 544 485 0 480 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 47 0 47 2 2 0 1 0 8 0 inpcb 280 1660 0 1650 5 3 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 15 0 14 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 4 0 4 3 3 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 362 0 210 13 0 13 13 0 8 1 art_table 32 364 0 210 2 0 2 2 0 8 0 art_node 16 85 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 132 0 122 1 0 1 1 0 8 0 shmpl 112 63 0 21 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2988 0 1589 88 0 88 88 0 8 0 ffsino 240 2988 0 1589 83 0 83 83 0 8 0 nchpl 144 5010 0 3419 60 0 60 60 0 8 0 uvmvnodes 72 3997 0 0 73 0 73 73 0 8 0 vnodes 208 3997 0 0 211 0 211 211 0 8 0 namei 1024 14138 0 14138 3 2 1 1 0 8 1 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 528 16 0 5 1 0 1 1 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 14620 0 14620 1 0 1 1 0 8 1 plimitpl 152 110 0 103 1 0 1 1 0 8 0 sigapl 424 1408 0 1378 4 0 4 4 0 8 0 futexpl 56 24070 0 24070 3 2 1 1 0 8 1 knotepl 112 158 0 139 1 0 1 1 0 8 0 kqueuepl 144 454 0 442 1 0 1 1 0 8 0 pipelkpl 16 226 0 216 1 0 1 1 0 8 0 pipepl 120 452 0 433 2 1 1 2 0 8 0 fdescpl 432 1392 0 1378 2 0 2 2 0 8 0 filepl 120 8947 0 8849 5 1 4 5 0 8 1 lockfpl 104 210 0 209 1 0 1 1 0 8 0 lockfspl 48 73 0 72 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 982 0 974 1 0 1 1 0 8 0 zombiepl 144 1378 0 1378 1 0 1 1 0 8 1 processpl 920 1408 0 1378 4 0 4 4 0 8 0 procpl 624 2778 0 2740 4 0 4 4 0 8 0 sosppl 128 10 0 10 2 2 0 1 0 8 0 sockpl 400 2574 0 2552 8 5 3 4 0 8 0 mcl64k 65536 95 0 95 3 2 1 1 0 8 1 mcl16k 16384 9 0 9 5 4 1 1 0 8 1 mcl12k 12288 33 0 33 2 1 1 1 0 8 1 mcl9k 9216 13 0 13 4 4 0 1 0 8 0 mcl8k 8192 20 0 20 2 1 1 1 0 8 1 mcl4k 4096 105 0 105 4 3 1 1 0 8 1 mcl2k2 2112 9 0 9 4 3 1 1 0 8 1 mcl2k 2048 66075 0 66028 21 13 8 18 0 8 1 mtagpl 80 111 0 71 3 1 2 2 0 8 0 mbufpl 256 115011 0 114851 39 11 28 29 0 8 2 bufpl 280 7344 0 1983 384 0 384 384 0 8 0 anonpl 16 134105 0 119602 90 29 61 74 0 107 2 amapchunkpl 152 8900 0 8740 39 19 20 20 0 158 13 amappl16 192 5947 0 5176 57 18 39 50 0 8 0 amappl15 184 571 0 568 1 0 1 1 0 8 0 amappl14 176 504 0 495 1 0 1 1 0 8 0 amappl13 168 514 0 511 1 0 1 1 0 8 0 amappl12 160 9 0 7 2 1 1 1 0 8 0 amappl11 152 122 0 113 1 0 1 1 0 8 0 amappl10 144 66 0 60 1 0 1 1 0 8 0 amappl9 136 374 0 373 1 0 1 1 0 8 0 amappl8 128 420 0 376 2 0 2 2 0 8 0 amappl7 120 172 0 158 1 0 1 1 0 8 0 amappl6 112 98 0 90 1 0 1 1 0 8 0 amappl5 104 782 0 770 1 0 1 1 0 8 0 amappl4 96 1013 0 981 1 0 1 1 0 8 0 amappl3 88 607 0 600 1 0 1 1 0 8 0 amappl2 80 10843 0 10773 2 0 2 2 0 8 0 amappl1 72 32454 0 32048 24 15 9 17 0 8 0 amappl 80 3055 0 3008 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 64 0 21 1 0 1 1 0 8 0 uaddrrnd 24 1408 0 1383 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1408 0 1383 1 0 1 1 0 8 0 vmmpekpl 168 10967 0 10937 2 0 2 2 0 8 0 vmmpepl 168 166977 0 165078 123 34 89 108 0 357 0 vmsppl 272 1407 0 1383 2 0 2 2 0 8 0 pdppl 4096 2822 0 2777 7 1 6 6 0 8 0 pvpl 32 445645 0 428879 285 43 242 255 0 265 104 pmappl 200 1407 0 1383 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 290 0 44 8 0 8 8 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(ffffffff821cedc4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd805e555000,0,ffff80001d772888,0,0,ffff80001d772794) at soreceive+0x16ac sys/kern/uipc_socket.c:823 soo_read(fffffd8069bf30f0,ffff80001d772888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d739278,6,ffff80001d772888,0,ffff80001d772970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d739278,ffff80001d772920,ffff80001d772970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d7729f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9110, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cedc4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd805e555000,0,ffff80001d772888,0,0,ffff80001d772794) at soreceive+0x16ac sys/kern/uipc_socket.c:823 soo_read(fffffd8069bf30f0,ffff80001d772888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d739278,6,ffff80001d772888,0,ffff80001d772970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d739278,ffff80001d772920,ffff80001d772970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d7729f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9110, count: -8