panic: receive 3: so 0xfffffd806f669320, so_type 3, m 0xfffffd807f00d200, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 284225 11857 0 0 0 1 syz-executor.1 *253493 18960 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669320,0,ffff800020e1e238,0,0,ffff800020e1e144) at soreceive+0x1727 soo_read(fffffd80771f0000,ffff800020e1e238,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e238,0,ffff800020e1e320) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e2d0,ffff800020e1e320) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e3a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e3a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc27e0, 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 0xfffffd806f669320, so_type 3, m 0xfffffd807f00d200, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669320,0,ffff800020e1e238,0,0,ffff800020e1e144) at soreceive+0x1727 soo_read(fffffd80771f0000,ffff800020e1e238,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e238,0,ffff800020e1e320) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e2d0,ffff800020e1e320) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e3a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e3a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc27e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1df80 rbx 0xffff800020e1e030 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1df40 r9 0xffffffff8167b47f kprintf+0x16f r10 0x1 r11 0x288b7a4d69d032f1 r12 0x3000000008 r13 0xffff800020e1df90 r14 0x100 r15 0x1 rip 0xffffffff8215e708 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1df70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=253493 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020dd64f8,0xffff800020dd7650 process=0xffff800020df0400 user=0xffff800020e19000, vmspace=0xfffffd807effe450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 11857 284225 30498 0 7 0 syz-executor.1 11857 271402 30498 0 3 0x4000000 smrbar syz-executor.1 95202 367112 0 0 3 0x14280 nfsidl nfsio 12824 493267 0 0 3 0x14280 nfsidl nfsio 62162 135741 0 0 3 0x14280 nfsidl nfsio 46 174293 0 0 3 0x14280 nfsidl nfsio 67236 243137 0 0 3 0x14280 nfsidl nfsio 82556 504477 0 0 3 0x14280 nfsidl nfsio 53201 445587 0 0 3 0x14280 nfsidl nfsio 34800 401125 0 0 3 0x14280 nfsidl nfsio 69923 410935 0 0 3 0x14280 nfsidl nfsio 79921 386690 0 0 3 0x14280 nfsidl nfsio 36036 39692 0 0 3 0x14280 nfsidl nfsio 89201 301769 0 0 3 0x14280 nfsidl nfsio 83421 104482 0 0 3 0x14280 nfsidl nfsio 30200 154936 0 0 3 0x14280 nfsidl nfsio 87911 82213 0 0 3 0x14280 nfsidl nfsio 56266 179073 0 0 3 0x14280 nfsidl nfsio 48148 414204 0 0 3 0x14280 nfsidl nfsio 11223 350557 0 0 3 0x14280 nfsidl nfsio 60138 91435 0 0 3 0x14280 nfsidl nfsio 23770 134479 0 0 3 0x14280 nfsidl nfsio 9330 347422 43151 0 3 0x82 nanosleep syz-executor.0 49303 93043 0 0 3 0x14200 bored sosplice 30498 252689 43151 0 3 0x82 nanosleep syz-executor.1 43151 60145 75009 0 3 0x82 thrsleep syz-fuzzer 43151 340112 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 502091 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 95723 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 268363 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 407476 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 101413 75009 0 3 0x4000082 thrsleep syz-fuzzer 43151 387616 75009 0 3 0x4000082 kqread syz-fuzzer 75009 301954 34246 0 3 0x10008a pause ksh 34246 95515 56570 0 3 0x92 select sshd 17968 345111 1 0 3 0x100083 ttyin getty 56570 462718 1 0 3 0x80 select sshd 39262 132726 56479 74 3 0x100092 bpf pflogd 56479 57251 1 0 3 0x80 netio pflogd 35755 22819 99316 73 3 0x100090 kqread syslogd 99316 511899 1 0 3 0x100082 netio syslogd 5886 401362 1 77 3 0x100090 poll dhclient *18960 253493 1 0 7 0 dhclient 46534 415105 0 0 3 0x14200 bored smr 20193 261743 0 0 3 0x14200 pgzero zerothread 48517 229558 0 0 3 0x14200 aiodoned aiodoned 59490 485712 0 0 3 0x14200 syncer update 58096 68762 0 0 3 0x14200 cleaner cleaner 46841 276519 0 0 3 0x14200 reaper reaper 73494 291807 0 0 3 0x14200 pgdaemon pagedaemon 31493 378397 0 0 3 0x14200 bored crynlk 11020 53822 0 0 3 0x14200 bored crypto 45060 244870 0 0 3 0x40014200 acpi0 acpi0 53878 36807 0 0 3 0x40014200 idle1 66284 68004 0 0 3 0x14200 bored softnet 52789 477286 0 0 3 0x14200 bored systqmp 49227 414732 0 0 3 0x14200 bored systq 97497 186153 0 0 3 0x40014200 bored softclock 84584 498450 0 0 3 0x40014200 idle0 1 47969 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18960 (dhclient) thread 0xffff800020dd6c60 (253493) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8293cf68) #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 9545 6618K 7253K 78643K 12840 0 pcb 13 8K 8K 78643K 91 0 rtable 105 16K 17K 78643K 597 0 ifaddr 87 16K 16K 78643K 211 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 71 0 ioctlops 0 0K 4K 78643K 1594 0 iov 0 0K 16K 78643K 59 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1826 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 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 158 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 708 0 sigio 0 0K 0K 78643K 2 0 proc 62 63K 83K 78643K 521 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 78 0 in_multi 36 2K 2K 78643K 143 0 ether_multi 1 0K 0K 78643K 11 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 260 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 178 106K 107K 78643K 3256 0 UVM aobj 23 2K 2K 78643K 23 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 69 0 NDP 14 0K 0K 78643K 43 0 temp 144 3882K 3946K 78643K 5829 0 kqueue 3 4K 8K 78643K 22 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 10 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 49 0 47 1 0 1 1 0 8 0 rtentry 112 98 0 66 2 0 2 2 0 8 0 unpcb 120 272 0 261 1 0 1 1 0 8 0 syncache 272 5 0 5 2 1 1 1 0 8 1 tcpqe 32 516 0 516 2 1 1 1 0 8 1 tcpcb 592 221 0 206 3 1 2 2 0 8 0 inpcb 296 695 0 686 3 1 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 29 0 25 1 0 1 1 0 8 0 pkpcb 40 10 0 10 2 1 1 1 0 8 1 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 4 2 2 0 1 0 8 0 pffrag 232 5 0 5 3 2 1 1 0 482 1 pffrnode 88 5 0 5 3 2 1 1 0 8 1 pffrent 40 227 0 227 4 3 1 1 0 8 1 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 78 0 69 2 1 1 1 0 8 0 pfstitem 24 14 0 6 1 0 1 1 0 8 0 pfstkey 112 22 0 14 1 0 1 1 0 8 0 pfstate 328 18 0 10 2 0 2 2 0 8 0 pfrule 1360 47 0 34 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 422 0 273 16 3 13 15 0 8 2 art_table 32 423 0 273 2 0 2 2 0 8 0 art_node 16 97 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 152 0 142 1 0 1 1 0 8 0 shmpl 112 20 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2269 0 868 88 0 88 88 0 8 0 ffsino 272 2269 0 868 95 1 94 94 0 8 0 nchpl 144 3783 0 2186 60 0 60 60 0 8 0 uvmvnodes 72 2841 0 0 52 0 52 52 0 8 0 vnodes 208 2841 0 0 150 0 150 150 0 8 0 namei 1024 10168 0 10168 2 1 1 1 0 8 1 percpumem 16 46 0 13 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 26 0 19 2 1 1 1 0 8 0 scxspl 200 10531 0 10531 10 9 1 7 0 8 1 plimitpl 152 54 0 46 1 0 1 1 0 8 0 sigapl 424 941 0 889 6 0 6 6 0 8 0 futexpl 56 10005 0 10005 1 0 1 1 0 8 1 knotepl 112 98 0 78 1 0 1 1 0 8 0 kqueuepl 152 62 0 60 1 0 1 1 0 8 0 pipepl 304 159 0 148 2 0 2 2 0 8 1 fdescpl 496 905 0 889 3 0 3 3 0 8 0 filepl 152 5094 0 4992 7 2 5 6 0 8 1 lockfpl 104 108 0 107 1 0 1 1 0 8 0 lockfspl 48 31 0 30 1 0 1 1 0 8 0 sessionpl 120 19 0 8 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 343 0 332 1 0 1 1 0 8 0 zombiepl 144 889 0 888 2 1 1 1 0 8 0 processpl 1008 941 0 888 8 1 7 7 0 8 0 procpl 632 2379 0 2318 7 1 6 6 0 8 0 sosppl 144 7 0 7 2 1 1 1 0 8 1 sockpl 400 1026 0 1005 7 4 3 5 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 283 0 0 35 0 35 35 0 8 0 mtagpl 96 176 0 0 5 0 5 5 0 8 0 mbufpl 256 565 0 0 34 0 34 34 0 8 0 bufpl 280 4633 0 129 322 0 322 322 0 8 0 anonpl 16 119742 0 101264 104 13 91 91 0 124 14 amapchunkpl 152 5865 0 5569 22 5 17 19 0 158 3 amappl16 192 4426 0 3524 74 20 54 58 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 13 0 9 1 0 1 1 0 8 0 amappl13 168 192 0 188 1 0 1 1 0 8 0 amappl12 160 173 0 169 1 0 1 1 0 8 0 amappl11 152 62 0 45 1 0 1 1 0 8 0 amappl10 144 343 0 338 1 0 1 1 0 8 0 amappl9 136 532 0 530 1 0 1 1 0 8 0 amappl8 128 561 0 520 2 0 2 2 0 8 0 amappl7 120 446 0 433 1 0 1 1 0 8 0 amappl6 112 32 0 26 1 0 1 1 0 8 0 amappl5 104 840 0 824 1 0 1 1 0 8 0 amappl4 96 507 0 479 1 0 1 1 0 8 0 amappl3 88 141 0 132 1 0 1 1 0 8 0 amappl2 80 6370 0 6297 2 0 2 2 0 8 0 amappl1 72 35656 0 35209 23 13 10 18 0 8 0 amappl 80 2684 0 2599 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 22 0 0 1 0 1 1 0 8 0 uaddrrnd 24 913 0 890 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 913 0 890 1 0 1 1 0 8 0 vmmpekpl 168 9821 0 9776 3 0 3 3 0 8 0 vmmpepl 168 124022 0 121891 147 34 113 129 0 357 16 vmsppl 368 912 0 890 3 0 3 3 0 8 0 pdppl 4096 1833 0 1787 8 1 7 7 0 8 0 pvpl 32 343769 0 322003 230 14 216 216 0 265 33 pmappl 232 912 0 890 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 305 0 14 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(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669320,0,ffff800020e1e238,0,0,ffff800020e1e144) at soreceive+0x1727 soo_read(fffffd80771f0000,ffff800020e1e238,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e238,0,ffff800020e1e320) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e2d0,ffff800020e1e320) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e3a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e3a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc27e0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffdf470, count: 12 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0x7f7ffffdf470, count: -3