panic: receive 3: so 0xfffffd806f67c320, so_type 3, m 0xfffffd807f01e800, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 8733 21355 0 0x2 0x4000000 0 syz-fuzzer * 9262 33008 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e192e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c320,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd8073df7390,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc410, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 3: so 0xfffffd806f67c320, so_type 3, m 0xfffffd807f01e800, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e192e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c320,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd8073df7390,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc410, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e610 rbx 0xffff800020e1e6c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8196d1bf kprintf+0x16f r9 0x1 r10 0x2 r11 0x6857d89e173c677f r12 0x3000000008 r13 0xffff800020e1e620 r14 0x100 r15 0x1 rip 0xffffffff811fcd98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=9262 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd5f8,0xffff800020ddc018 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807efff5c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 70164 152181 69353 0 2 0 syz-executor.1 70164 294049 69353 0 2 0x4000080 syz-executor.1 69353 179955 21355 0 3 0x82 nanosleep syz-executor.1 21956 511714 0 0 3 0x14200 bored sosplice 87579 67154 21355 0 3 0x82 piperd syz-executor.0 21355 361088 99029 0 3 0x82 kqread syz-fuzzer 21355 445762 99029 0 3 0x4000082 nanosleep syz-fuzzer 21355 344721 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 39653 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 512202 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 105505 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 475981 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 186716 99029 0 3 0x4000082 thrsleep syz-fuzzer 21355 8733 99029 0 7 0x4000002 syz-fuzzer 21355 475371 99029 0 3 0x4000082 thrsleep syz-fuzzer 99029 20833 7212 0 3 0x10008a pause ksh 7212 425944 27796 0 3 0x92 select sshd 2375 397254 1 0 3 0x100083 ttyin getty 27796 420988 1 0 3 0x80 select sshd 86617 346084 95389 74 3 0x100092 bpf pflogd 95389 260843 1 0 3 0x80 netio pflogd 50836 80075 37963 73 3 0x100090 kqread syslogd 37963 258925 1 0 3 0x100082 netio syslogd 68036 183815 1 77 3 0x100090 poll dhclient *33008 9262 1 0 7 0 dhclient 64642 227801 0 0 3 0x14200 bored smr 3152 493716 0 0 2 0x14200 zerothread 69592 390166 0 0 3 0x14200 aiodoned aiodoned 40744 261020 0 0 3 0x14200 syncer update 51366 489851 0 0 3 0x14200 cleaner cleaner 75137 459295 0 0 3 0x14200 reaper reaper 59329 86007 0 0 3 0x14200 pgdaemon pagedaemon 11581 41049 0 0 3 0x14200 bored crynlk 93794 133001 0 0 3 0x14200 bored crypto 50773 506265 0 0 3 0x40014200 acpi0 acpi0 36365 169159 0 0 3 0x40014200 idle1 90004 378697 0 0 3 0x14200 bored softnet 48938 337185 0 0 3 0x14200 bored systqmp 97083 312451 0 0 3 0x14200 bored systq 25524 97415 0 0 3 0x40014200 bored softclock 62826 129452 0 0 3 0x40014200 idle0 1 235098 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 33008 (dhclient) thread 0xffff800020ddc278 (9262) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b8098) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9487 6404K 6984K 78643K 11291 0 pcb 13 8K 8K 78643K 47 0 rtable 110 4K 5K 78643K 306 0 ifaddr 59 13K 13K 78643K 102 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1505 0 iov 0 0K 12K 78643K 15 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1413 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 40 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 242 0 sigio 0 0K 0K 78643K 18 0 proc 61 63K 95K 78643K 489 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 49 0 in_multi 47 2K 3K 78643K 96 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 225 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 115 22K 27K 78643K 1638 0 UVM aobj 9 4K 4K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 30 0 NDP 8 0K 0K 78643K 25 0 temp 90 3857K 3921K 78643K 3262 0 kqueue 3 4K 8K 78643K 5 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 64 0 20 2 0 2 2 0 8 0 unpcb 120 190 0 180 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 128 0 128 1 1 0 1 0 8 0 tcpcb 544 115 0 111 1 0 1 1 0 8 0 inpcb 296 292 0 285 3 1 2 2 0 8 1 nd6 48 16 0 10 1 0 1 1 0 8 0 pkpcb 40 128 0 128 3 2 1 1 0 8 1 pffrent 40 4 0 4 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 4 0 2 1 0 1 1 0 8 0 pfstitem 24 15 0 13 1 0 1 1 0 8 0 pfstkey 112 15 0 13 1 0 1 1 0 8 0 pfstate 328 15 0 13 2 1 1 2 0 8 0 pfrule 1360 29 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 44 12 0 12 12 0 8 0 art_table 32 233 0 44 2 0 2 2 0 8 0 art_node 16 63 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 12 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1692 0 285 89 0 89 89 0 8 0 ffsino 272 1692 0 285 96 1 95 95 0 8 1 nchpl 144 2191 0 591 60 0 60 60 0 8 0 uvmvnodes 72 1908 0 0 35 0 35 35 0 8 0 vnodes 208 1908 0 0 101 0 101 101 0 8 0 namei 1024 6203 0 6203 3 2 1 1 0 8 1 percpumem 16 39 0 6 1 0 1 1 0 8 0 pfiaddrpl 120 8 0 4 1 0 1 1 0 8 0 scxspl 192 6781 0 6781 12 10 2 7 0 8 2 plimitpl 152 28 0 20 1 0 1 1 0 8 0 sigapl 424 455 0 423 4 0 4 4 0 8 0 futexpl 56 3712 0 3712 3 2 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 24 0 22 1 0 1 1 0 8 0 pipepl 304 105 0 95 2 0 2 2 0 8 1 fdescpl 496 439 0 423 3 0 3 3 0 8 0 filepl 152 2637 0 2536 7 2 5 5 0 8 1 lockfpl 104 47 0 46 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 291 0 282 1 0 1 1 0 8 0 zombiepl 144 423 0 423 1 0 1 1 0 8 1 processpl 992 455 0 423 6 1 5 5 0 8 0 procpl 624 833 0 791 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 637 0 618 7 4 3 4 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 188 0 0 23 1 22 23 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 241 0 0 13 0 13 13 0 8 0 bufpl 280 3910 0 133 270 0 270 270 0 8 0 anonpl 16 62761 0 46616 88 1 87 87 0 124 16 amapchunkpl 152 2233 0 2069 12 3 9 12 0 158 0 amappl16 192 2022 0 1105 59 5 54 58 0 8 8 amappl15 184 132 0 130 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 36 0 33 1 0 1 1 0 8 0 amappl12 160 22 0 18 1 0 1 1 0 8 0 amappl11 152 124 0 107 1 0 1 1 0 8 0 amappl10 144 149 0 143 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 378 0 346 2 0 2 2 0 8 0 amappl7 120 258 0 243 1 0 1 1 0 8 0 amappl6 112 90 0 83 2 1 1 1 0 8 0 amappl5 104 328 0 313 1 0 1 1 0 8 0 amappl4 96 501 0 474 1 0 1 1 0 8 0 amappl3 88 105 0 98 1 0 1 1 0 8 0 amappl2 80 2464 0 2392 2 0 2 2 0 8 0 amappl1 72 21576 0 21129 23 13 10 18 0 8 0 amappl 80 1100 0 1053 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 14 0 6 1 0 1 1 0 8 0 uaddrrnd 24 439 0 423 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 439 0 423 1 0 1 1 0 8 0 vmmpekpl 168 7137 0 7100 2 0 2 2 0 8 0 vmmpepl 168 62900 0 60810 157 30 127 127 0 357 32 vmsppl 368 438 0 423 2 0 2 2 0 8 0 pdppl 4096 885 0 846 7 1 6 6 0 8 1 pvpl 32 199937 0 180609 203 0 203 203 0 265 37 pmappl 232 438 0 423 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 268 0 12 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82739ff0) 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(ffffffff828b7e90) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b7e90) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc0036f6ae8, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82739ff0) 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(ffffffff828b7e90) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b7e90) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc0036f6ae8, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e192e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c320,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd8073df7390,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc410, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e192e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c320,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd8073df7390,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc410, count: -8