panic: receive 3: so 0xfffffd806f668af0, so_type 1, m 0xfffffd807d1c6900, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 21914 81400 0 0x2 0x4000000 1 syz-fuzzer * 65833 33941 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e7d72) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f668af0,ffff800020e1df40,ffff800020e1df08,0,ffff800020e1df38,ffff800020e1e0b4) at soreceive+0x1727 recvit(ffff800020ddc9c8,4,ffff800020e1e088,0,ffff800020e1e170) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e120,ffff800020e1e170) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e1f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4fa0, count: 8 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 0xfffffd806f668af0, so_type 1, m 0xfffffd807d1c6900, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e7d72) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f668af0,ffff800020e1df40,ffff800020e1df08,0,ffff800020e1df38,ffff800020e1e0b4) at soreceive+0x1727 recvit(ffff800020ddc9c8,4,ffff800020e1e088,0,ffff800020e1e170) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e120,ffff800020e1e170) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e1f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4fa0, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dd50 rbx 0xffff800020e1de00 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1dd10 r9 0xffffffff81379bbf kprintf+0x16f r10 0x1 r11 0x84c48a94b3353abf r12 0x3000000008 r13 0xffff800020e1dd60 r14 0x100 r15 0x1 rip 0xffffffff81f0e6b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dd40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=65833 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21162 416204 79221 0 3 0x80 nanosleep syz-executor.0 21162 311294 79221 0 3 0x4000080 netcon syz-executor.0 21162 23106 79221 0 3 0x4000080 fsleep syz-executor.0 86235 404786 0 0 3 0x14280 nfsidl nfsio 17750 240108 0 0 3 0x14280 nfsidl nfsio 51132 411310 0 0 3 0x14280 nfsidl nfsio 61342 124869 0 0 3 0x14280 nfsidl nfsio 45337 7575 0 0 3 0x14280 nfsidl nfsio 36027 173916 0 0 3 0x14280 nfsidl nfsio 2375 76364 0 0 3 0x14280 nfsidl nfsio 53026 340426 0 0 3 0x14280 nfsidl nfsio 64043 350732 0 0 3 0x14280 nfsidl nfsio 72844 518138 0 0 3 0x14280 nfsidl nfsio 8503 17958 0 0 3 0x14280 nfsidl nfsio 77006 378096 0 0 3 0x14280 nfsidl nfsio 26391 375509 0 0 3 0x14280 nfsidl nfsio 34979 460880 0 0 3 0x14280 nfsidl nfsio 92078 143110 0 0 3 0x14280 nfsidl nfsio 66576 162127 0 0 3 0x14280 nfsidl nfsio 41412 369495 0 0 3 0x14280 nfsidl nfsio 51334 170210 0 0 3 0x14280 nfsidl nfsio 10189 244216 0 0 3 0x14280 nfsidl nfsio 97221 68084 0 0 3 0x14280 nfsidl nfsio 82295 409910 0 0 3 0x14200 bored sosplice 95490 68093 81400 0 3 0x82 piperd syz-executor.1 79221 112866 81400 0 3 0x82 nanosleep syz-executor.0 81400 149246 93262 0 3 0x82 thrsleep syz-fuzzer 81400 18203 93262 0 3 0x4000082 nanosleep syz-fuzzer 81400 137444 93262 0 3 0x4000082 thrsleep syz-fuzzer 81400 21914 93262 0 7 0x4000002 syz-fuzzer 81400 472547 93262 0 3 0x4000082 thrsleep syz-fuzzer 81400 307437 93262 0 3 0x4000082 thrsleep syz-fuzzer 81400 281273 93262 0 3 0x4000082 thrsleep syz-fuzzer 81400 430047 93262 0 2 0x4000002 syz-fuzzer 93262 500380 96508 0 3 0x10008a pause ksh 96508 161447 87293 0 3 0x92 select sshd 33498 135520 1 0 3 0x100083 ttyin getty 87293 475324 1 0 3 0x80 select sshd 88844 493055 74709 74 3 0x100092 bpf pflogd 74709 150025 1 0 3 0x80 netio pflogd 99549 456179 51732 73 3 0x100090 kqread syslogd 51732 518769 1 0 3 0x100082 netio syslogd 7928 21265 1 77 3 0x100090 poll dhclient *33941 65833 1 0 7 0 dhclient 93913 297862 0 0 3 0x14200 bored smr 58737 506745 0 0 3 0x14200 pgzero zerothread 63996 204479 0 0 3 0x14200 aiodoned aiodoned 65375 398148 0 0 3 0x14200 syncer update 76652 240138 0 0 3 0x14200 cleaner cleaner 3724 95006 0 0 3 0x14200 reaper reaper 61388 160397 0 0 3 0x14200 pgdaemon pagedaemon 22903 135542 0 0 3 0x14200 bored crynlk 72965 256722 0 0 3 0x14200 bored crypto 66422 19061 0 0 3 0x40014200 acpi0 acpi0 10824 11087 0 0 3 0x40014200 idle1 40965 317183 0 0 3 0x14200 bored softnet 30380 415141 0 0 3 0x14200 bored systqmp 89107 493244 0 0 3 0x14200 bored systq 9702 274357 0 0 3 0x40014200 bored softclock 4019 254895 0 0 3 0x40014200 idle0 1 101292 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33941 (dhclient) thread 0xffff800020ddc9c8 (65833) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82934728) #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 recvit+0x32b sys/kern/uipc_syscalls.c:817 #4 sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9526 6433K 6688K 78643K 11101 0 pcb 13 8K 8K 78643K 100 0 rtable 105 6K 9K 78643K 527 0 ifaddr 89 17K 18K 78643K 175 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1594 0 iov 0 0K 16K 78643K 43 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1495 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 15 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 743 0 sigio 0 0K 0K 78643K 4 0 proc 65 63K 83K 78643K 488 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 52 0 in_multi 57 2K 2K 78643K 145 0 ether_multi 1 0K 0K 78643K 10 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 233 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 192 109K 125K 78643K 3277 0 UVM aobj 30 4K 4K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 71 0 NDP 13 0K 0K 78643K 33 0 temp 138 3868K 3936K 78643K 14488 0 kqueue 3 4K 12K 78643K 19 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 11 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 54 0 52 1 0 1 1 0 8 0 rtentry 112 101 0 66 2 0 2 2 0 8 0 unpcb 120 611 0 601 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 20 0 20 1 1 0 1 0 8 0 tcpcb 544 240 0 235 3 1 2 2 0 8 1 inpcb 296 692 0 684 5 3 2 2 0 8 1 nd6 48 19 0 17 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pffrag 232 2 0 2 2 1 1 1 0 482 1 pffrnode 88 2 0 2 2 1 1 1 0 8 1 pffrent 40 7 0 7 2 1 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 60 0 54 2 1 1 1 0 8 0 pftag 88 2 0 2 1 0 1 1 0 8 1 pfstitem 24 36 0 29 1 0 1 1 0 8 0 pfstkey 112 36 0 29 1 0 1 1 0 8 0 pfstate 328 36 0 29 3 0 3 3 0 8 0 pfrule 1360 37 0 27 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 455 0 334 15 3 12 13 0 8 2 art_table 32 456 0 334 2 0 2 2 0 8 0 art_node 16 93 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 30 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2564 0 1163 89 1 88 89 0 8 0 ffsino 272 2564 0 1163 94 0 94 94 0 8 0 nchpl 144 3867 0 2261 60 0 60 60 0 8 0 uvmvnodes 72 2724 0 0 50 0 50 50 0 8 0 vnodes 208 2724 0 0 144 0 144 144 0 8 0 namei 1024 11620 0 11620 3 2 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 11 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 18 0 14 2 1 1 1 0 8 0 scxspl 192 11050 0 11050 11 8 3 7 0 8 3 plimitpl 152 55 0 47 1 0 1 1 0 8 0 sigapl 424 979 0 927 6 0 6 6 0 8 0 futexpl 56 10085 0 10084 3 2 1 1 0 8 0 knotepl 112 81 0 61 1 0 1 1 0 8 0 kqueuepl 144 92 0 89 1 0 1 1 0 8 0 pipepl 304 152 0 141 6 4 2 2 0 8 1 fdescpl 496 943 0 927 3 0 3 3 0 8 0 filepl 152 6270 0 6165 7 2 5 6 0 8 0 lockfpl 104 1167 0 1166 1 0 1 1 0 8 0 lockfspl 48 300 0 299 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 1656 0 1647 1 0 1 1 0 8 0 zombiepl 144 927 0 927 1 0 1 1 0 8 1 processpl 992 979 0 927 8 1 7 7 0 8 0 procpl 624 2430 0 2369 8 2 6 6 0 8 1 sosppl 128 17 0 17 4 3 1 1 0 8 1 sockpl 400 1370 0 1350 10 6 4 5 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 157 0 0 19 0 19 19 0 8 1 mtagpl 96 27 0 0 1 0 1 1 0 8 0 mbufpl 256 601 0 0 34 0 34 34 0 8 0 bufpl 280 4522 0 127 314 0 314 314 0 8 0 anonpl 16 105152 0 87053 108 26 82 93 0 124 6 amapchunkpl 152 5904 0 5569 41 14 27 27 0 158 13 amappl16 192 4304 0 3448 66 22 44 55 0 8 1 amappl15 184 10 0 7 1 0 1 1 0 8 0 amappl14 176 3 0 2 2 1 1 1 0 8 0 amappl13 168 30 0 26 1 0 1 1 0 8 0 amappl12 160 375 0 371 1 0 1 1 0 8 0 amappl11 152 63 0 47 1 0 1 1 0 8 0 amappl10 144 20 0 13 1 0 1 1 0 8 0 amappl9 136 725 0 722 1 0 1 1 0 8 0 amappl8 128 716 0 673 2 0 2 2 0 8 0 amappl7 120 116 0 104 1 0 1 1 0 8 0 amappl6 112 28 0 24 1 0 1 1 0 8 0 amappl5 104 1145 0 1128 1 0 1 1 0 8 0 amappl4 96 492 0 465 1 0 1 1 0 8 0 amappl3 88 141 0 132 1 0 1 1 0 8 0 amappl2 80 6407 0 6336 2 0 2 2 0 8 0 amappl1 72 36038 0 35580 22 11 11 18 0 8 0 amappl 80 2721 0 2629 3 0 3 3 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 32 0 3 1 0 1 1 0 8 0 uaddrrnd 24 954 0 930 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 954 0 930 1 0 1 1 0 8 0 vmmpekpl 168 10730 0 10690 2 0 2 2 0 8 0 vmmpepl 168 125898 0 123789 133 35 98 113 0 357 3 vmsppl 368 953 0 930 3 0 3 3 0 8 0 pdppl 4096 1915 0 1868 8 1 7 7 0 8 1 pvpl 32 317248 0 295839 240 44 196 218 0 265 17 pmappl 232 953 0 930 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 298 0 19 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(ffffffff823e7d72) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f668af0,ffff800020e1df40,ffff800020e1df08,0,ffff800020e1df38,ffff800020e1e0b4) at soreceive+0x1727 recvit(ffff800020ddc9c8,4,ffff800020e1e088,0,ffff800020e1e170) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e120,ffff800020e1e170) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e1f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4fa0, count: -7 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 __mp_lock(ffffffff82934520) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82934520) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020e96990) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020e96990) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000039f10, count: 9 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 __mp_lock(ffffffff82934520) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82934520) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020e96990) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020e96990) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000039f10, count: -6