panic: receive 3: so 0xfffffd805f327190, so_type 3, m 0xfffffd8057441200, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *299073 15259 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c946e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805f327190,0,ffff80001d6e1d38,0,0,ffff80001d6e1c44) at soreceive+0x16e7 soo_read(fffffd805f3f2780,ffff80001d6e1d38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff8000ffff8770,6,ffff80001d6e1d38,0,ffff80001d6e1e20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff8000ffff8770,ffff80001d6e1dd0,ffff80001d6e1e20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e1ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd88e0, 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 3: so 0xfffffd805f327190, so_type 3, m 0xfffffd8057441200, m_type 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c946e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805f327190,0,ffff80001d6e1d38,0,0,ffff80001d6e1c44) at soreceive+0x16e7 soo_read(fffffd805f3f2780,ffff80001d6e1d38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff8000ffff8770,6,ffff80001d6e1d38,0,ffff80001d6e1e20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff8000ffff8770,ffff80001d6e1dd0,ffff80001d6e1e20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e1ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd88e0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6e1a80 rbx 0xffff80001d6e1b30 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6e1a40 r9 0xffffffff821f998f kprintf+0x15f r10 0x1 r11 0x32a17e6bd6fe453c r12 0x3000000008 r13 0xffff80001d6e1a90 r14 0x100 r15 0x1 rip 0xffffffff81589c68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6e1a70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=299073 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff9150,0xffff8000ffff89f8 process=0xffff80001d6c0770 user=0xffff80001d6dc000, vmspace=0xfffffd806bc0a220 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54670 58167 34557 0 3 0x80 fsleep syz-executor.1 54670 236742 34557 0 3 0x4000000 smrbar syz-executor.1 21382 520022 0 0 3 0x14200 acct acct 24240 90022 70215 0 3 0x82 piperd syz-executor.0 34557 242016 70215 0 3 0x82 nanosleep syz-executor.1 4130 136913 0 0 3 0x14280 nfsidl nfsio 80381 416092 0 0 3 0x14280 nfsidl nfsio 34677 274895 0 0 3 0x14280 nfsidl nfsio 17794 463954 0 0 3 0x14280 nfsidl nfsio 6954 350884 0 0 3 0x14280 nfsidl nfsio 76110 377912 0 0 3 0x14280 nfsidl nfsio 69957 44545 0 0 3 0x14280 nfsidl nfsio 3264 103936 0 0 3 0x14280 nfsidl nfsio 31559 95601 0 0 3 0x14280 nfsidl nfsio 19775 459944 0 0 3 0x14280 nfsidl nfsio 99112 513862 0 0 3 0x14280 nfsidl nfsio 17081 75311 0 0 3 0x14280 nfsidl nfsio 34649 229720 0 0 3 0x14280 nfsidl nfsio 71480 57040 0 0 3 0x14280 nfsidl nfsio 60210 436809 0 0 3 0x14280 nfsidl nfsio 33996 68676 0 0 3 0x14280 nfsidl nfsio 64756 362481 0 0 3 0x14280 nfsidl nfsio 28200 52214 0 0 3 0x14280 nfsidl nfsio 12710 459008 0 0 3 0x14280 nfsidl nfsio 3630 477839 0 0 3 0x14280 nfsidl nfsio 5290 233037 0 0 3 0x14200 bored sosplice 70215 323463 86203 0 3 0x82 thrsleep syz-fuzzer 70215 465550 86203 0 3 0x4000082 nanosleep syz-fuzzer 70215 371150 86203 0 3 0x4000082 thrsleep syz-fuzzer 70215 93108 86203 0 2 0x4000002 syz-fuzzer 70215 515782 86203 0 3 0x4000082 thrsleep syz-fuzzer 70215 480443 86203 0 3 0x4000082 thrsleep syz-fuzzer 70215 153987 86203 0 3 0x4000082 thrsleep syz-fuzzer 86203 495359 84175 0 3 0x10008a pause ksh 84175 489764 99655 0 3 0x92 select sshd 41953 110392 1 0 3 0x100083 ttyin getty 99655 499017 1 0 3 0x80 select sshd 97846 341480 48065 73 3 0x100090 kqread syslogd 48065 403104 1 0 3 0x100082 netio syslogd 22589 317774 1 77 2 0x100010 dhclient *15259 299073 1 0 7 0 dhclient 27747 179514 0 0 3 0x14200 bored smr 71212 515577 0 0 2 0x14200 zerothread 72198 169193 0 0 3 0x14200 aiodoned aiodoned 49220 276078 0 0 3 0x14200 syncer update 22432 487519 0 0 3 0x14200 cleaner cleaner 87774 322928 0 0 3 0x14200 reaper reaper 12007 146421 0 0 3 0x14200 pgdaemon pagedaemon 87630 188506 0 0 3 0x14200 bored crynlk 38210 4376 0 0 3 0x14200 bored crypto 47721 98591 0 0 3 0x40014200 acpi0 acpi0 26396 350690 0 0 2 0x14200 softnet 11907 426394 0 0 3 0x14200 bored systqmp 6563 320891 0 0 3 0x14200 bored systq 36819 426682 0 0 3 0x40014200 bored softclock 40964 103018 0 0 3 0x40014200 idle0 1 45325 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 9498 6349K 6719K 78643K 11544 0 pcb 13 8K 8K 78643K 81 0 rtable 119 7K 11K 78643K 751 0 ifaddr 75 14K 15K 78643K 221 0 counters 22 16K 16K 78643K 32 0 ioctlops 0 0K 4K 78643K 151 0 iov 0 0K 12K 78643K 55 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1595 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 236 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 573 0 sigio 0 0K 0K 78643K 4 0 proc 49 38K 63K 78643K 563 0 subproc 32 2K 2K 78643K 102 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 50 0 in_multi 36 2K 2K 78643K 205 0 ether_multi 1 0K 0K 78643K 12 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 268 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 146 104K 104K 78643K 2349 0 UVM aobj 21 2K 2K 78643K 26 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 52 0 NDP 13 0K 0K 78643K 48 0 temp 111 3862K 3926K 78643K 12457 0 kqueue 3 4K 10K 78643K 29 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 16 0 10 1 0 1 1 0 8 0 rtpcb 88 47 0 45 1 0 1 1 0 8 0 rtentry 112 136 0 95 2 0 2 2 0 8 0 unpcb 120 223 0 215 1 0 1 1 0 8 0 syncache 272 7 0 7 2 2 0 1 0 8 0 tcpqe 32 502 0 502 1 1 0 1 0 8 0 tcpcb 592 446 0 438 6 4 2 3 0 8 1 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 90 0 90 1 1 0 1 0 8 0 inpcb 296 784 0 777 4 2 2 2 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 42 0 38 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 1 0 1 0 8 0 ppxss 1136 4 0 4 3 3 0 1 0 8 0 pfrktable 1344 112 0 105 2 1 1 2 0 8 0 pftag 88 20 0 20 3 3 0 1 0 8 0 pfrule 1360 40 0 28 3 2 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 591 0 419 18 5 13 16 0 8 0 art_table 32 592 0 419 3 1 2 3 0 8 0 art_node 16 135 0 97 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 234 0 224 1 0 1 1 0 8 0 shmpl 112 23 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2130 0 736 88 0 88 88 0 8 0 ffsino 240 2130 0 736 83 0 83 83 0 8 0 nchpl 144 3118 0 1528 60 0 60 60 0 8 0 uvmvnodes 72 2502 0 0 46 0 46 46 0 8 0 vnodes 208 2502 0 0 132 0 132 132 0 8 0 namei 1024 9106 0 9106 3 2 1 1 0 8 1 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 528 9 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 34 0 30 2 1 1 1 0 8 0 scxspl 200 13068 0 13068 1 0 1 1 0 8 1 plimitpl 152 43 0 36 1 0 1 1 0 8 0 sigapl 424 769 0 719 6 0 6 6 0 8 0 futexpl 56 10991 0 10990 1 0 1 1 0 8 0 knotepl 112 145 0 125 1 0 1 1 0 8 0 kqueuepl 152 69 0 66 1 0 1 1 0 8 0 pipepl 272 166 0 155 3 2 1 2 0 8 0 fdescpl 432 733 0 719 2 0 2 2 0 8 0 filepl 120 4476 0 4378 5 1 4 5 0 8 1 lockfpl 104 296 0 295 1 0 1 1 0 8 0 lockfspl 48 126 0 125 1 0 1 1 0 8 0 sessionpl 120 21 0 11 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 462 0 455 1 0 1 1 0 8 0 zombiepl 144 719 0 719 3 2 1 1 0 8 1 processpl 944 769 0 719 7 0 7 7 0 8 0 procpl 632 1431 0 1374 7 2 5 6 0 8 0 sosppl 144 4 0 4 1 1 0 1 0 8 0 sockpl 400 1062 0 1045 5 2 3 4 0 8 1 mcl64k 65536 15 0 15 5 5 0 1 0 8 0 mcl16k 16384 3 0 3 2 1 1 1 0 8 1 mcl12k 12288 12 0 12 4 3 1 1 0 8 1 mcl9k 9216 5 0 5 4 4 0 1 0 8 0 mcl8k 8192 13 0 13 4 3 1 1 0 8 1 mcl4k 4096 39 0 39 4 3 1 1 0 8 1 mcl2k2 2112 5 0 5 3 3 0 1 0 8 0 mcl2k 2048 85723 0 85657 22 13 9 18 0 8 0 mtagpl 96 49 0 22 2 1 1 1 0 8 0 mbufpl 256 140235 0 139942 29 8 21 21 0 8 1 bufpl 280 6044 0 690 383 0 383 383 0 8 0 anonpl 16 113416 0 94557 92 16 76 82 0 107 0 amapchunkpl 152 6967 0 6763 31 22 9 22 0 158 0 amappl16 192 3301 0 2320 65 15 50 61 0 8 0 amappl15 184 111 0 109 1 0 1 1 0 8 0 amappl14 176 9 0 9 2 2 0 1 0 8 0 amappl13 168 131 0 126 1 0 1 1 0 8 0 amappl12 160 100 0 95 1 0 1 1 0 8 0 amappl11 152 80 0 70 1 0 1 1 0 8 0 amappl10 144 336 0 330 1 0 1 1 0 8 0 amappl9 136 421 0 420 1 0 1 1 0 8 0 amappl8 128 455 0 414 2 0 2 2 0 8 0 amappl7 120 444 0 431 1 0 1 1 0 8 0 amappl6 112 50 0 44 1 0 1 1 0 8 0 amappl5 104 581 0 569 1 0 1 1 0 8 0 amappl4 96 549 0 525 1 0 1 1 0 8 0 amappl3 88 213 0 205 1 0 1 1 0 8 0 amappl2 80 4778 0 4711 2 0 2 2 0 8 0 amappl1 72 27127 0 26713 24 15 9 17 0 8 0 amappl 80 1743 0 1685 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 25 0 5 1 0 1 1 0 8 0 uaddrrnd 24 742 0 721 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 742 0 721 1 0 1 1 0 8 0 vmmpekpl 168 8680 0 8651 2 0 2 2 0 8 0 vmmpepl 168 100496 0 98394 151 58 93 134 0 357 0 vmsppl 272 741 0 721 2 0 2 2 0 8 0 pdppl 4096 1490 0 1449 8 2 6 6 0 8 0 pvpl 32 352070 0 330568 304 45 259 301 0 265 81 pmappl 200 741 0 721 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 287 0 52 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(ffffffff823c946e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805f327190,0,ffff80001d6e1d38,0,0,ffff80001d6e1c44) at soreceive+0x16e7 soo_read(fffffd805f3f2780,ffff80001d6e1d38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff8000ffff8770,6,ffff80001d6e1d38,0,ffff80001d6e1e20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff8000ffff8770,ffff80001d6e1dd0,ffff80001d6e1e20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e1ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd88e0, 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(ffffffff823c946e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805f327190,0,ffff80001d6e1d38,0,0,ffff80001d6e1c44) at soreceive+0x16e7 soo_read(fffffd805f3f2780,ffff80001d6e1d38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff8000ffff8770,6,ffff80001d6e1d38,0,ffff80001d6e1e20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff8000ffff8770,ffff80001d6e1dd0,ffff80001d6e1e20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e1ea0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd88e0, count: -8