panic: receive 3: so 0xfffffd806f68e320, so_type 3, m 0xfffffd80693f5800, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 165821 70669 0 0x2 0x4000480 1 syz-fuzzer * 71541 50126 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e320,0,ffff800020e1e898,0,0,ffff800020e1e7a4) at soreceive+0x1727 soo_read(fffffd80753f8428,ffff800020e1e898,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e898,0,ffff800020e1e980) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e930,ffff800020e1e980) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf40, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic receive 3: so 0xfffffd806f68e320, so_type 3, m 0xfffffd80693f5800, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e320,0,ffff800020e1e898,0,0,ffff800020e1e7a4) at soreceive+0x1727 soo_read(fffffd80753f8428,ffff800020e1e898,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e898,0,ffff800020e1e980) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e930,ffff800020e1e980) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf40, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e5e0 rbx 0xffff800020e1e690 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e2547f kprintf+0x16f r9 0x1 r10 0x2 r11 0x6cc84c087e8dbeaa r12 0x3000000008 r13 0xffff800020e1e5f0 r14 0x100 r15 0x1 rip 0xffffffff820bb618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e5d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=71541 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc768 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86853 358588 72456 0 2 0 syz-executor.0 78266 506008 59114 0 2 0 syz-executor.1 78266 481372 59114 0 2 0x4000000 syz-executor.1 82844 397296 0 0 3 0x14200 bored sosplice 59114 415480 70669 0 2 0x482 syz-executor.1 72456 524097 70669 0 3 0x82 nanosleep syz-executor.0 70669 353695 18278 0 3 0x82 thrsleep syz-fuzzer 70669 280978 18278 0 2 0x4000002 syz-fuzzer 70669 257222 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 12140 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 129762 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 69232 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 172765 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 165821 18278 0 7 0x4000482 syz-fuzzer 70669 369134 18278 0 3 0x4000082 thrsleep syz-fuzzer 70669 221173 18278 0 3 0x4000082 kqread syz-fuzzer 18278 159348 57279 0 3 0x10008a pause ksh 57279 225542 90773 0 3 0x92 select sshd 92751 159410 1 0 3 0x100083 ttyin getty 90773 73967 1 0 3 0x80 select sshd 85006 231282 27761 74 3 0x100092 bpf pflogd 27761 198425 1 0 3 0x80 netio pflogd 12182 398043 24225 73 3 0x100090 kqread syslogd 24225 173617 1 0 3 0x100082 netio syslogd 71802 385512 1 77 3 0x100090 poll dhclient *50126 71541 1 0 7 0 dhclient 90344 54160 0 0 3 0x14200 bored smr 24265 15236 0 0 2 0x14200 zerothread 52908 382162 0 0 3 0x14200 aiodoned aiodoned 97993 397930 0 0 3 0x14200 syncer update 64180 392932 0 0 3 0x14200 cleaner cleaner 51072 142236 0 0 3 0x14200 reaper reaper 39889 41143 0 0 3 0x14200 pgdaemon pagedaemon 77103 63129 0 0 3 0x14200 bored crynlk 24395 31601 0 0 3 0x14200 bored crypto 49657 88160 0 0 3 0x40014200 acpi0 acpi0 70769 275241 0 0 3 0x40014200 idle1 36580 91027 0 0 3 0x14200 bored softnet 47460 227387 0 0 3 0x14200 bored systqmp 59543 177450 0 0 3 0x14200 bored systq 11168 8855 0 0 3 0x40014200 bored softclock 77662 490474 0 0 3 0x40014200 idle0 1 220769 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 50126 (dhclient) thread 0xffff800020ddc4e8 (71541) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292e900) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:737 #3 soo_read+0x53 sys/kern/sys_socket.c:70 #4 dofilereadv+0x1a1 sys/kern/sys_generic.c:237 #5 sys_read+0x83 sys/kern/sys_generic.c:157 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9484 6402K 6657K 78643K 10774 0 pcb 13 8K 8K 78643K 62 0 rtable 108 3K 7K 78643K 254 0 ifaddr 55 12K 13K 78643K 117 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1504 0 iov 0 0K 12K 78643K 15 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1282 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 39 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 413 0 sigio 0 0K 0K 78643K 38 0 proc 60 63K 95K 78643K 449 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 10 0 in_multi 54 3K 3K 78643K 92 0 ether_multi 1 0K 0K 78643K 5 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 220 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 120 39K 39K 78643K 2092 0 UVM aobj 12 7K 7K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 7 0K 0K 78643K 12 0 temp 75 3853K 3916K 78643K 3618 0 kqueue 3 4K 8K 78643K 5 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 804 0 802 1 0 1 1 0 8 0 rtentry 112 57 0 12 2 0 2 2 0 8 0 unpcb 120 179 0 169 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 73 0 73 1 1 0 1 0 8 0 tcpcb 544 78 0 74 2 0 2 2 0 8 1 inpcb 296 712 0 704 2 0 2 2 0 8 1 nd6 48 14 0 8 1 0 1 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 pfrktable 1344 8 0 8 1 0 1 1 0 8 1 pfstitem 24 26 0 6 1 0 1 1 0 8 0 pfstkey 112 26 0 6 1 0 1 1 0 8 0 pfstate 328 26 0 6 2 0 2 2 0 8 0 pfrule 1360 22 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 227 0 38 15 3 12 15 0 8 0 art_table 32 228 0 38 2 0 2 2 0 8 0 art_node 16 56 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 5 1 0 1 1 0 8 1 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 35 0 25 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1835 0 429 89 0 89 89 0 8 0 ffsino 272 1835 0 429 94 0 94 94 0 8 0 nchpl 144 2523 0 922 60 0 60 60 0 8 0 uvmvnodes 72 1927 0 0 36 0 36 36 0 8 0 vnodes 208 1927 0 0 102 0 102 102 0 8 0 namei 1024 6454 0 6454 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 7643 0 7643 8 7 1 7 0 8 1 plimitpl 152 28 0 20 1 0 1 1 0 8 0 sigapl 424 629 0 596 4 0 4 4 0 8 0 futexpl 56 6045 0 6045 1 0 1 1 0 8 1 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 16 0 14 1 0 1 1 0 8 0 pipepl 304 685 0 675 2 0 2 2 0 8 1 fdescpl 496 613 0 596 3 0 3 3 0 8 0 filepl 152 4717 0 4616 7 1 6 6 0 8 2 lockfpl 104 30 0 29 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 208 0 199 1 0 1 1 0 8 0 zombiepl 144 596 0 596 1 0 1 1 0 8 1 processpl 992 629 0 596 5 0 5 5 0 8 0 procpl 624 1324 0 1281 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 400 1695 0 1676 6 1 5 5 0 8 3 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 308 0 0 38 0 38 38 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 316 0 0 20 0 20 20 0 8 0 bufpl 280 4087 0 133 283 0 283 283 0 8 0 anonpl 16 66901 0 49848 70 1 69 69 0 124 0 amapchunkpl 152 2875 0 2726 8 0 8 8 0 158 0 amappl16 192 2292 0 1380 47 1 46 46 0 8 0 amappl15 184 380 0 376 1 0 1 1 0 8 0 amappl14 176 28 0 22 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 11 0 8 1 0 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 400 0 394 1 0 1 1 0 8 0 amappl9 136 393 0 391 1 0 1 1 0 8 0 amappl8 128 360 0 324 2 0 2 2 0 8 0 amappl7 120 287 0 273 1 0 1 1 0 8 0 amappl6 112 27 0 19 1 0 1 1 0 8 0 amappl5 104 510 0 494 1 0 1 1 0 8 0 amappl4 96 495 0 465 1 0 1 1 0 8 0 amappl3 88 106 0 101 1 0 1 1 0 8 0 amappl2 80 4161 0 4089 2 0 2 2 0 8 0 amappl1 72 26098 0 25645 23 13 10 18 0 8 0 amappl 80 1576 0 1531 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 0 1 0 1 1 0 8 0 uaddrrnd 24 615 0 596 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 615 0 596 1 0 1 1 0 8 0 vmmpekpl 168 10247 0 10211 2 0 2 2 0 8 0 vmmpepl 168 83085 0 80907 119 17 102 115 0 357 7 vmsppl 368 614 0 596 2 0 2 2 0 8 0 pdppl 4096 1237 0 1194 6 0 6 6 0 8 0 pvpl 32 225924 0 205901 166 2 164 165 0 265 2 pmappl 232 614 0 596 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 289 0 7 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e320,0,ffff800020e1e898,0,0,ffff800020e1e7a4) at soreceive+0x1727 soo_read(fffffd80753f8428,ffff800020e1e898,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e898,0,ffff800020e1e980) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e930,ffff800020e1e980) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf40, count: -8 ddb{0}> machine ddbcpu 1