login: panic: receive 1a: so 0xfffffd806f68f190, so_type 3, m 0xfffffd8069e29100, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 76757 44697 0 0 0 0 syz-executor.0 *483192 29983 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f190,0,ffff800020e1e9c8,0,0,ffff800020e1e8d4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8073ff6558,ffff800020e1e9c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e9c8,0,ffff800020e1eab0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ea60,ffff800020e1eab0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7b90, 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 0xfffffd806f68f190, so_type 3, m 0xfffffd8069e29100, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f190,0,ffff800020e1e9c8,0,0,ffff800020e1e8d4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8073ff6558,ffff800020e1e9c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e9c8,0,ffff800020e1eab0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ea60,ffff800020e1eab0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7b90, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e710 rbx 0xffff800020e1e7c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff812cad1f kprintf+0x16f r9 0x1 r10 0x2 r11 0xcda63e7ada3112ed r12 0x3000000008 r13 0xffff800020e1e720 r14 0x100 r15 0x1 rip 0xffffffff81ae9b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e700 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=483192 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddc9d8 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44697 76757 11052 0 7 0 syz-executor.0 44697 201771 11052 0 3 0x4000080 fsleep syz-executor.0 95135 340305 37939 0 2 0 syz-executor.1 95135 114775 37939 0 3 0x4000080 fsleep syz-executor.1 11052 84162 83727 0 3 0x82 nanosleep syz-executor.0 89813 435837 0 0 3 0x14200 acct acct 75807 206859 0 0 3 0x14200 bored sosplice 37939 524250 83727 0 3 0x82 nanosleep syz-executor.1 83727 189108 92735 0 3 0x82 thrsleep syz-fuzzer 83727 294954 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 105091 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 151130 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 480766 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 428287 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 420179 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 452088 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 175256 92735 0 3 0x4000082 thrsleep syz-fuzzer 83727 19976 92735 0 3 0x4000082 kqread syz-fuzzer 92735 83235 56323 0 3 0x10008a pause ksh 56323 304074 28960 0 3 0x92 select sshd 70569 116145 1 0 3 0x100083 ttyin getty 28960 141289 1 0 3 0x80 select sshd 67635 339147 48313 74 3 0x100092 bpf pflogd 48313 63454 1 0 3 0x80 netio pflogd 62822 515527 17726 73 3 0x100090 kqread syslogd 17726 476730 1 0 3 0x100082 netio syslogd 40703 165630 1 77 3 0x100090 poll dhclient *29983 483192 1 0 7 0 dhclient 94906 65076 0 0 3 0x14200 bored smr 84116 521905 0 0 2 0x14200 zerothread 72384 37401 0 0 3 0x14200 aiodoned aiodoned 63448 339284 0 0 3 0x14200 syncer update 76813 354424 0 0 3 0x14200 cleaner cleaner 7915 360119 0 0 3 0x14200 reaper reaper 62799 234447 0 0 3 0x14200 pgdaemon pagedaemon 23310 365183 0 0 3 0x14200 bored crynlk 20960 186734 0 0 3 0x14200 bored crypto 60206 120024 0 0 3 0x40014200 acpi0 acpi0 61420 304622 0 0 3 0x40014200 idle1 30948 508225 0 0 3 0x14200 bored softnet 6879 396293 0 0 3 0x14200 bored systqmp 36700 49075 0 0 3 0x14200 bored systq 56681 84427 0 0 3 0x40014200 bored softclock 14150 208546 0 0 3 0x40014200 idle0 1 240132 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 29983 (dhclient) thread 0xffff800020ddc758 (483192) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829062a8) #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 9520 6481K 6930K 78643K 11004 0 pcb 13 8K 8K 78643K 68 0 rtable 106 4K 7K 78643K 420 0 ifaddr 74 14K 14K 78643K 134 0 sysctl 1 1K 1K 78643K 1 0 counters 45 34K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1631 0 iov 0 0K 16K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1360 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 72 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 288 0 sigio 0 0K 0K 78643K 8 0 proc 63 63K 95K 78643K 496 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 18 0 in_multi 48 2K 3K 78643K 136 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 7 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 242 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 112 22K 24K 78643K 1843 0 UVM aobj 18 2K 2K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 48 0 NDP 12 0K 0K 78643K 35 0 temp 104 3865K 3929K 78643K 10730 0 kqueue 3 4K 16K 78643K 22 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 39 0 37 1 0 1 1 0 8 0 rtentry 112 81 0 40 2 0 2 2 0 8 0 unpcb 120 126 0 116 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1209 0 1209 1 1 0 1 0 8 0 tcpcb 544 74 0 70 1 0 1 1 0 8 0 inpcb 296 287 0 280 3 1 2 2 0 8 1 rttmr 72 2 0 2 2 1 1 1 0 8 1 nd6 48 23 0 19 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 45 0 45 1 0 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 45 0 42 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 264 125 0 4 9 0 9 9 0 8 0 pfstitem 24 18 0 4 1 0 1 1 0 8 0 pfstkey 112 19 0 5 1 0 1 1 0 8 0 pfstate 328 19 0 5 2 0 2 2 0 8 0 pfrule 1360 32 0 22 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 303 0 132 12 1 11 12 0 8 0 art_table 32 304 0 132 2 0 2 2 0 8 0 art_node 16 80 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 70 0 60 1 0 1 1 0 8 0 shmpl 112 19 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1773 0 364 89 0 89 89 0 8 0 ffsino 272 1773 0 364 96 1 95 95 0 8 0 nchpl 144 2339 0 738 60 0 60 60 0 8 0 uvmvnodes 72 1915 0 0 35 0 35 35 0 8 0 vnodes 208 1915 0 0 101 0 101 101 0 8 0 namei 1024 6728 0 6728 2 1 1 1 0 8 1 percpumem 16 36 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 14 0 12 1 0 1 1 0 8 0 scxspl 192 7454 0 7454 6 5 1 4 0 8 1 plimitpl 152 32 0 24 1 0 1 1 0 8 0 sigapl 424 503 0 469 4 0 4 4 0 8 0 futexpl 56 4107 0 4105 1 0 1 1 0 8 0 knotepl 112 98 0 79 1 0 1 1 0 8 0 kqueuepl 144 56 0 52 1 0 1 1 0 8 0 pipepl 304 114 0 103 1 0 1 1 0 8 0 fdescpl 496 485 0 468 3 0 3 3 0 8 0 filepl 152 2811 0 2707 6 1 5 5 0 8 1 lockfpl 104 65 0 63 1 0 1 1 0 8 0 lockfspl 48 24 0 22 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 290 0 281 1 0 1 1 0 8 0 zombiepl 144 469 0 469 2 1 1 1 0 8 1 processpl 992 503 0 469 6 1 5 5 0 8 0 procpl 624 1048 0 1003 4 0 4 4 0 8 0 sosppl 128 4 0 4 2 1 1 1 0 8 1 sockpl 400 454 0 435 4 1 3 3 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 193 0 0 24 0 24 24 0 8 0 mtagpl 96 23 0 0 1 0 1 1 0 8 0 mbufpl 256 349 0 0 21 0 21 21 0 8 0 bufpl 280 4139 0 134 287 0 287 287 0 8 0 anonpl 16 61613 0 45853 70 1 69 69 0 124 0 amapchunkpl 152 2790 0 2639 15 1 14 14 0 158 6 amappl16 192 2067 0 1146 48 0 48 48 0 8 1 amappl15 184 11 0 8 1 0 1 1 0 8 0 amappl14 176 150 0 145 1 0 1 1 0 8 0 amappl13 168 36 0 33 1 0 1 1 0 8 0 amappl12 160 84 0 82 1 0 1 1 0 8 0 amappl11 152 195 0 178 1 0 1 1 0 8 0 amappl10 144 21 0 16 1 0 1 1 0 8 0 amappl9 136 433 0 430 1 0 1 1 0 8 0 amappl8 128 387 0 361 1 0 1 1 0 8 0 amappl7 120 124 0 112 1 0 1 1 0 8 0 amappl6 112 21 0 20 1 0 1 1 0 8 0 amappl5 104 317 0 301 1 0 1 1 0 8 0 amappl4 96 630 0 598 1 0 1 1 0 8 0 amappl3 88 236 0 229 1 0 1 1 0 8 0 amappl2 80 2864 0 2784 2 0 2 2 0 8 0 amappl1 72 20625 0 20175 23 13 10 18 0 8 0 amappl 80 1308 0 1262 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 21 0 4 1 0 1 1 0 8 0 uaddrrnd 24 485 0 468 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 485 0 468 1 0 1 1 0 8 0 vmmpekpl 168 7753 0 7718 2 0 2 2 0 8 0 vmmpepl 168 66644 0 64470 139 13 126 126 0 357 31 vmsppl 368 484 0 468 2 0 2 2 0 8 0 pdppl 4096 977 0 936 7 1 6 6 0 8 0 pvpl 32 203996 0 185005 167 0 167 167 0 265 4 pmappl 232 484 0 468 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 8 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff826f9ff0) 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 __sanitizer_cov_trace_cmp4(ffffffff829060a0,ffffffff829060a0) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff829060a0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829060a0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020ec3cf0) at syscall+0x348 mi_syscall sys/sys/syscall_mi.h:75 [inline] syscall(ffff800020ec3cf0) at syscall+0x348 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50b0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff826f9ff0) 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 __sanitizer_cov_trace_cmp4(ffffffff829060a0,ffffffff829060a0) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff829060a0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829060a0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020ec3cf0) at syscall+0x348 mi_syscall sys/sys/syscall_mi.h:75 [inline] syscall(ffff800020ec3cf0) at syscall+0x348 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50b0, count: -9 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(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f190,0,ffff800020e1e9c8,0,0,ffff800020e1e8d4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8073ff6558,ffff800020e1e9c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e9c8,0,ffff800020e1eab0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ea60,ffff800020e1eab0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7b90, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e977b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f190,0,ffff800020e1e9c8,0,0,ffff800020e1e8d4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8073ff6558,ffff800020e1e9c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e9c8,0,ffff800020e1eab0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ea60,ffff800020e1eab0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7b90, count: -8