panic: receive 1a: so 0xfffffd806f685320, so_type 3, m 0xfffffd8073257000, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 496028 10069 0 0 0 0 syz-executor.0 *518114 34825 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ee6cf) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685320,0,ffff800020e1ebf8,0,0,ffff800020e1eb04) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80733f8130,ffff800020e1ebf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1ebf8,0,ffff800020e1ece0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1ec90,ffff800020e1ece0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9480, 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 1a: so 0xfffffd806f685320, so_type 3, m 0xfffffd8073257000, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ee6cf) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685320,0,ffff800020e1ebf8,0,0,ffff800020e1eb04) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80733f8130,ffff800020e1ebf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1ebf8,0,ffff800020e1ece0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1ec90,ffff800020e1ece0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9480, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e940 rbx 0xffff800020e1e9f0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e2547f kprintf+0x16f r9 0x1 r10 0x2 r11 0x6ebc39bbef8a3ad0 r12 0x3000000008 r13 0xffff800020e1e950 r14 0x100 r15 0x1 rip 0xffffffff820bb618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e930 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=518114 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddd608 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10069 496028 55528 0 7 0 syz-executor.0 10069 136672 55528 0 2 0x4000000 syz-executor.0 49727 176380 668 0 2 0 syz-executor.1 49727 334289 668 0 2 0x4000000 syz-executor.1 46328 387179 0 0 3 0x14200 acct acct 29663 71800 0 0 3 0x14200 bored sosplice 668 271241 47484 0 3 0x82 nanosleep syz-executor.1 55528 393815 47484 0 3 0x82 nanosleep syz-executor.0 47484 173301 65773 0 3 0x82 thrsleep syz-fuzzer 47484 120512 65773 0 3 0x4000082 nanosleep syz-fuzzer 47484 222533 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 284974 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 245425 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 186221 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 57970 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 24882 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 138159 65773 0 3 0x4000082 thrsleep syz-fuzzer 47484 198064 65773 0 3 0x4000082 kqread syz-fuzzer 65773 353878 41385 0 3 0x10008a pause ksh 41385 61607 29288 0 3 0x92 select sshd 59481 34310 1 0 3 0x100083 ttyin getty 29288 132838 1 0 3 0x80 select sshd 96116 110675 58346 74 3 0x100092 bpf pflogd 58346 471512 1 0 3 0x80 netio pflogd 5492 110759 14220 73 3 0x100090 kqread syslogd 14220 191806 1 0 3 0x100082 netio syslogd 20656 124422 1 77 3 0x100090 poll dhclient *34825 518114 1 0 7 0 dhclient 71930 276313 0 0 3 0x14200 bored smr 86009 79768 0 0 2 0x14200 zerothread 96478 299900 0 0 3 0x14200 aiodoned aiodoned 78587 319932 0 0 3 0x14200 syncer update 57451 510317 0 0 3 0x14200 cleaner cleaner 66470 382423 0 0 3 0x14200 reaper reaper 61716 440098 0 0 3 0x14200 pgdaemon pagedaemon 11261 79848 0 0 3 0x14200 bored crynlk 28757 314099 0 0 3 0x14200 bored crypto 33140 197350 0 0 3 0x40014200 acpi0 acpi0 83975 86583 0 0 3 0x40014200 idle1 45311 40150 0 0 3 0x14200 bored softnet 83987 506947 0 0 3 0x14200 bored systqmp 39436 439553 0 0 3 0x14200 bored systq 55830 9604 0 0 3 0x40014200 bored softclock 55672 480030 0 0 3 0x40014200 idle0 1 393251 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 34825 (dhclient) thread 0xffff800020ddc9c8 (518114) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9484 6402K 6919K 78643K 11144 0 pcb 13 8K 8K 78643K 179 0 rtable 110 4K 7K 78643K 280 0 ifaddr 53 12K 12K 78643K 83 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1491 0 iov 0 0K 16K 78643K 55 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 77K 78643K 1370 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 90 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 228 0 sigio 0 0K 0K 78643K 5 0 proc 61 63K 95K 78643K 450 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 63 0 in_multi 43 2K 2K 78643K 67 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 216 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 119 22K 23K 78643K 1715 0 UVM aobj 35 4K 4K 78643K 37 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 22 0 NDP 7 0K 0K 78643K 13 0 temp 72 3854K 3933K 78643K 2665 0 kqueue 3 4K 8K 78643K 12 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 21 0 19 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 unpcb 120 121 0 111 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2284 0 2284 1 1 0 1 0 8 0 tcpcb 544 92 0 88 1 0 1 1 0 8 0 inpcb 296 392 0 385 2 0 2 2 0 8 1 nd6 48 8 0 2 1 0 1 1 0 8 0 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 8 0 7 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 35 0 33 2 1 1 1 0 8 0 pfstitem 24 14 0 6 1 0 1 1 0 8 0 pfstkey 112 14 0 6 1 0 1 1 0 8 0 pfstate 328 14 0 6 2 0 2 2 0 8 0 pfrule 1360 28 0 21 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 84 0 74 1 0 1 1 0 8 0 shmpl 112 34 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1669 0 260 89 0 89 89 0 8 0 ffsino 272 1669 0 260 96 1 95 95 0 8 0 nchpl 144 2202 0 601 60 0 60 60 0 8 0 uvmvnodes 72 1847 0 0 34 0 34 34 0 8 0 vnodes 208 1847 0 0 98 0 98 98 0 8 0 namei 1024 6079 0 6079 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 11 0 9 2 1 1 1 0 8 0 scxspl 192 6772 0 6772 9 6 3 6 0 8 3 plimitpl 152 28 0 20 1 0 1 1 0 8 0 sigapl 424 445 0 411 4 0 4 4 0 8 0 futexpl 56 3546 0 3546 1 0 1 1 0 8 1 knotepl 112 70 0 51 1 0 1 1 0 8 0 kqueuepl 144 26 0 23 1 0 1 1 0 8 0 pipepl 304 116 0 106 4 2 2 2 0 8 1 fdescpl 496 428 0 411 3 0 3 3 0 8 0 filepl 152 2569 0 2468 5 0 5 5 0 8 1 lockfpl 104 39 0 38 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 261 0 252 1 0 1 1 0 8 0 zombiepl 144 411 0 411 2 1 1 1 0 8 1 processpl 992 445 0 411 6 1 5 5 0 8 0 procpl 624 938 0 893 4 0 4 4 0 8 0 sosppl 128 7 0 7 2 1 1 1 0 8 1 sockpl 400 539 0 520 5 2 3 4 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 224 0 0 27 0 27 27 0 8 0 mtagpl 96 38 0 0 1 0 1 1 0 8 0 mbufpl 256 286 0 0 17 0 17 17 0 8 0 bufpl 280 4019 0 133 278 0 278 278 0 8 0 anonpl 16 57972 0 40828 79 8 71 78 0 124 1 amapchunkpl 152 2525 0 2359 14 6 8 12 0 158 0 amappl16 192 1693 0 786 48 1 47 47 0 8 1 amappl15 184 97 0 95 2 1 1 1 0 8 0 amappl14 176 125 0 117 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 7 0 4 1 0 1 1 0 8 0 amappl11 152 154 0 136 1 0 1 1 0 8 0 amappl10 144 119 0 111 1 0 1 1 0 8 0 amappl9 136 390 0 388 1 0 1 1 0 8 0 amappl8 128 354 0 322 2 0 2 2 0 8 0 amappl7 120 117 0 107 1 0 1 1 0 8 0 amappl6 112 21 0 19 1 0 1 1 0 8 0 amappl5 104 224 0 207 1 0 1 1 0 8 0 amappl4 96 584 0 555 1 0 1 1 0 8 0 amappl3 88 205 0 198 1 0 1 1 0 8 0 amappl2 80 2593 0 2513 2 0 2 2 0 8 0 amappl1 72 21416 0 20946 23 13 10 18 0 8 0 amappl 80 1197 0 1150 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 36 0 2 1 0 1 1 0 8 0 uaddrrnd 24 428 0 411 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 428 0 411 1 0 1 1 0 8 0 vmmpekpl 168 7493 0 7459 2 0 2 2 0 8 0 vmmpepl 168 61707 0 59506 123 24 99 120 0 357 3 vmsppl 368 427 0 411 2 0 2 2 0 8 0 pdppl 4096 863 0 822 6 0 6 6 0 8 0 pvpl 32 189981 0 169564 185 9 176 185 0 265 11 pmappl 232 427 0 411 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 272 0 6 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82793ff0) 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(ffffffff8292e6f8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292e6f8) 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 pvclock_get_timecount(ffffffff82709748) at pvclock_get_timecount+0x78 pvclock_read_done sys/dev/pv/pvclock.c:200 [inline] pvclock_get_timecount(ffffffff82709748) at pvclock_get_timecount+0x78 sys/dev/pv/pvclock.c:221 nanotime(ffff800023f0c638) at nanotime+0x6f tc_delta sys/kern/kern_tc.c:131 [inline] nanotime(ffff800023f0c638) at nanotime+0x6f bintime sys/kern/kern_tc.c:266 [inline] nanotime(ffff800023f0c638) at nanotime+0x6f sys/kern/kern_tc.c:277 clock_gettime(ffff800020e094f8,0,ffff800023f0c638) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff800020e094f8,ffff800023f0c6a0,ffff800023f0c6f0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800023f0c770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f0c770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3ba0, count: 3 ddb{0}> trace x86_ipi_db(ffffffff82793ff0) 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(ffffffff8292e6f8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292e6f8) 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 pvclock_get_timecount(ffffffff82709748) at pvclock_get_timecount+0x78 pvclock_read_done sys/dev/pv/pvclock.c:200 [inline] pvclock_get_timecount(ffffffff82709748) at pvclock_get_timecount+0x78 sys/dev/pv/pvclock.c:221 nanotime(ffff800023f0c638) at nanotime+0x6f tc_delta sys/kern/kern_tc.c:131 [inline] nanotime(ffff800023f0c638) at nanotime+0x6f bintime sys/kern/kern_tc.c:266 [inline] nanotime(ffff800023f0c638) at nanotime+0x6f sys/kern/kern_tc.c:277 clock_gettime(ffff800020e094f8,0,ffff800023f0c638) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff800020e094f8,ffff800023f0c6a0,ffff800023f0c6f0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800023f0c770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f0c770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3ba0, count: -12 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(ffffffff823ee6cf) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685320,0,ffff800020e1ebf8,0,0,ffff800020e1eb04) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80733f8130,ffff800020e1ebf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1ebf8,0,ffff800020e1ece0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1ec90,ffff800020e1ece0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9480, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ee6cf) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685320,0,ffff800020e1ebf8,0,0,ffff800020e1eb04) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80733f8130,ffff800020e1ebf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1ebf8,0,ffff800020e1ece0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1ec90,ffff800020e1ece0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe9480, count: -8