panic: receive 1a: so 0xfffffd806f6834b0, so_type 3, m 0xfffffd80689f8600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 470441 66635 0 0x2 0 1 syz-executor.0 *247123 29359 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb67f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6834b0,0,ffff800020e1e918,0,0,ffff800020e1e824) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8072207428,ffff800020e1e918,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e918,0,ffff800020e1ea00) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e9b0,ffff800020e1ea00) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3b20, 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 1a: so 0xfffffd806f6834b0, so_type 3, m 0xfffffd80689f8600, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb67f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6834b0,0,ffff800020e1e918,0,0,ffff800020e1e824) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8072207428,ffff800020e1e918,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e918,0,ffff800020e1ea00) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e9b0,ffff800020e1ea00) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3b20, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e660 rbx 0xffff800020e1e710 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff811209cf kprintf+0x16f r9 0x1 r10 0x2 r11 0x9d0790309aa8cf0f r12 0x3000000008 r13 0xffff800020e1e670 r14 0x100 r15 0x1 rip 0xffffffff81de3468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e650 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=247123 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddc768 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38450 219175 66635 0 2 0 syz-executor.0 38450 342215 66635 0 3 0x4000080 fsleep syz-executor.0 66635 470441 1833 0 7 0x2 syz-executor.0 38147 129835 1833 0 2 0x482 syz-executor.1 15328 124189 0 0 3 0x14280 nfsidl nfsio 93480 448774 0 0 3 0x14280 nfsidl nfsio 71410 178750 0 0 3 0x14280 nfsidl nfsio 62974 510387 0 0 3 0x14280 nfsidl nfsio 87651 48296 0 0 3 0x14280 nfsidl nfsio 897 183351 0 0 3 0x14280 nfsidl nfsio 58061 340332 0 0 3 0x14280 nfsidl nfsio 51185 265457 0 0 3 0x14280 nfsidl nfsio 18471 281088 0 0 3 0x14280 nfsidl nfsio 19565 336353 0 0 3 0x14280 nfsidl nfsio 27001 319510 0 0 3 0x14280 nfsidl nfsio 88700 39134 0 0 3 0x14280 nfsidl nfsio 38593 263442 0 0 3 0x14280 nfsidl nfsio 98389 403621 0 0 3 0x14280 nfsidl nfsio 24731 400062 0 0 3 0x14280 nfsidl nfsio 39154 467740 0 0 3 0x14280 nfsidl nfsio 17093 279343 0 0 3 0x14280 nfsidl nfsio 92066 142445 0 0 3 0x14280 nfsidl nfsio 30973 517676 0 0 3 0x14280 nfsidl nfsio 36719 83707 0 0 3 0x14280 nfsidl nfsio 24513 495769 0 0 3 0x14200 bored sosplice 1833 367604 31672 0 3 0x82 thrsleep syz-fuzzer 1833 484337 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 408758 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 291711 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 231954 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 300196 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 394418 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 392721 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 15798 31672 0 3 0x4000082 thrsleep syz-fuzzer 1833 23111 31672 0 3 0x4000082 kqread syz-fuzzer 31672 3781 62141 0 3 0x10008a pause ksh 62141 424485 25524 0 3 0x92 select sshd 75405 198309 1 0 3 0x100083 ttyin getty 25524 24826 1 0 3 0x80 select sshd 45079 355285 70355 74 3 0x100092 bpf pflogd 70355 168901 1 0 3 0x80 netio pflogd 37405 342428 93533 73 3 0x100090 kqread syslogd 93533 1514 1 0 3 0x100082 netio syslogd 21568 272804 1 77 3 0x100090 poll dhclient *29359 247123 1 0 7 0 dhclient 55751 344456 0 0 3 0x14200 bored smr 83209 278773 0 0 3 0x14200 pgzero zerothread 22737 9394 0 0 3 0x14200 aiodoned aiodoned 75394 231459 0 0 3 0x14200 syncer update 34890 498876 0 0 3 0x14200 cleaner cleaner 57251 307558 0 0 3 0x14200 reaper reaper 96644 475716 0 0 3 0x14200 pgdaemon pagedaemon 13118 360338 0 0 3 0x14200 bored crynlk 28864 111745 0 0 3 0x14200 bored crypto 83068 41218 0 0 3 0x40014200 acpi0 acpi0 38631 212239 0 0 3 0x40014200 idle1 33414 187173 0 0 3 0x14200 bored softnet 23310 106329 0 0 3 0x14200 bored systqmp 2695 241997 0 0 3 0x14200 bored systq 37945 306021 0 0 3 0x40014200 bored softclock 99274 258015 0 0 3 0x40014200 idle0 1 265555 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29359 (dhclient) thread 0xffff800020ddc4e8 (247123) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82919f20) #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 9485 6402K 6725K 78643K 11053 0 pcb 13 8K 8K 78643K 57 0 rtable 98 5K 8K 78643K 365 0 ifaddr 51 11K 12K 78643K 101 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1514 0 iov 0 0K 12K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1237 78K 78K 78643K 1444 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 67 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 395 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 83K 78643K 558 0 subproc 32 2K 3K 78643K 85 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 5 0 in_multi 41 2K 2K 78643K 89 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 246 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 126 23K 35K 78643K 2161 0 UVM aobj 21 2K 2K 78643K 25 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 7 0 NDP 7 0K 0K 78643K 22 0 temp 92 3858K 3922K 78643K 5696 0 kqueue 3 4K 6K 78643K 4 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 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 79 0 43 3 1 2 2 0 8 0 unpcb 120 714 0 704 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 73 0 73 2 2 0 1 0 8 0 tcpcb 544 138 0 134 1 0 1 1 0 8 0 inpcb 296 356 0 349 3 2 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 19 0 14 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 4 0 4 1 1 0 1 0 482 0 pffrnode 88 4 0 4 1 1 0 1 0 8 0 pffrent 40 12 0 12 1 1 0 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 22 0 18 1 0 1 1 0 8 0 pfstitem 24 19 0 10 1 0 1 1 0 8 0 pfstkey 112 19 0 10 1 0 1 1 0 8 0 pfstate 328 19 0 10 2 0 2 2 0 8 0 pfrule 1360 29 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 373 0 206 15 4 11 13 0 8 0 art_table 32 374 0 206 2 0 2 2 0 8 0 art_node 16 78 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 8 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 65 0 55 1 0 1 1 0 8 0 shmpl 112 22 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1853 0 445 89 0 89 89 0 8 0 ffsino 272 1853 0 445 95 0 95 95 0 8 0 nchpl 144 2599 0 1001 60 0 60 60 0 8 0 uvmvnodes 72 2054 0 0 38 0 38 38 0 8 0 vnodes 208 2054 0 0 109 0 109 109 0 8 0 namei 1024 7578 0 7578 2 1 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 9 0 5 1 0 1 1 0 8 0 scxspl 192 7383 0 7383 8 7 1 7 0 8 1 plimitpl 152 40 0 32 1 0 1 1 0 8 0 sigapl 424 622 0 570 7 0 7 7 0 8 0 futexpl 56 4458 0 4457 2 1 1 1 0 8 0 knotepl 112 98 0 79 1 0 1 1 0 8 0 kqueuepl 144 36 0 34 1 0 1 1 0 8 0 pipepl 304 130 0 120 2 1 1 2 0 8 0 fdescpl 496 586 0 570 3 0 3 3 0 8 0 filepl 152 3800 0 3699 5 0 5 5 0 8 0 lockfpl 104 40 0 39 1 0 1 1 0 8 0 lockfspl 48 16 0 15 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 658 0 649 1 0 1 1 0 8 0 zombiepl 144 570 0 569 2 1 1 1 0 8 0 processpl 992 622 0 569 8 1 7 7 0 8 0 procpl 624 1304 0 1241 7 1 6 6 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 1103 0 1084 7 3 4 4 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 255 0 0 31 0 31 31 0 8 0 mtagpl 96 30 0 0 1 0 1 1 0 8 0 mbufpl 256 276 0 0 17 0 17 17 0 8 0 bufpl 280 3934 0 132 272 0 272 272 0 8 0 anonpl 16 73502 0 56402 71 1 70 70 0 124 0 amapchunkpl 152 3276 0 3126 8 1 7 8 0 158 0 amappl16 192 2288 0 1371 47 0 47 47 0 8 0 amappl15 184 65 0 63 1 0 1 1 0 8 0 amappl14 176 127 0 121 1 0 1 1 0 8 0 amappl13 168 150 0 146 1 0 1 1 0 8 0 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 158 0 142 1 0 1 1 0 8 0 amappl10 144 94 0 88 1 0 1 1 0 8 0 amappl9 136 444 0 441 1 0 1 1 0 8 0 amappl8 128 487 0 443 2 0 2 2 0 8 0 amappl7 120 132 0 119 1 0 1 1 0 8 0 amappl6 112 30 0 23 1 0 1 1 0 8 0 amappl5 104 398 0 382 1 0 1 1 0 8 0 amappl4 96 721 0 692 1 0 1 1 0 8 0 amappl3 88 209 0 201 1 0 1 1 0 8 0 amappl2 80 3687 0 3614 2 0 2 2 0 8 0 amappl1 72 25932 0 25478 23 13 10 18 0 8 0 amappl 80 1574 0 1528 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 24 0 4 1 0 1 1 0 8 0 uaddrrnd 24 588 0 572 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 588 0 572 1 0 1 1 0 8 0 vmmpekpl 168 8319 0 8273 3 0 3 3 0 8 0 vmmpepl 168 83548 0 81430 154 31 123 132 0 357 25 vmsppl 368 587 0 572 2 0 2 2 0 8 0 pdppl 4096 1183 0 1144 8 2 6 6 0 8 0 pvpl 32 247949 0 227528 178 8 170 170 0 265 3 pmappl 232 587 0 572 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 287 0 14 8 0 8 8 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(ffffffff823eb67f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6834b0,0,ffff800020e1e918,0,0,ffff800020e1e824) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8072207428,ffff800020e1e918,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1e918,0,ffff800020e1ea00) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1e9b0,ffff800020e1ea00) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3b20, 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 __mp_lock(ffffffff82919d18) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82919d18) at __mp_lock+0x127 sys/kern/kern_lock.c:147 sleep_setup(ffff80002311aaf0,ffffffff827b5bb4,120,ffffffff823f08ad) at sleep_setup+0xcf sys/kern/kern_synch.c:373 tsleep(ffffffff827b5bb4,120,ffffffff823f08ad,2) at tsleep+0xe6 sleep_setup_timeout sys/kern/kern_synch.c:435 [inline] tsleep(ffffffff827b5bb4,120,ffffffff823f08ad,2) at tsleep+0xe6 sys/kern/kern_synch.c:151 sys_nanosleep(ffff8000228f5ed0,ffff80002311ac20,ffff80002311ac70) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff80002311acf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002311acf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5b00, count: 6 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(ffffffff82919d18) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82919d18) at __mp_lock+0x127 sys/kern/kern_lock.c:147 sleep_setup(ffff80002311aaf0,ffffffff827b5bb4,120,ffffffff823f08ad) at sleep_setup+0xcf sys/kern/kern_synch.c:373 tsleep(ffffffff827b5bb4,120,ffffffff823f08ad,2) at tsleep+0xe6 sleep_setup_timeout sys/kern/kern_synch.c:435 [inline] tsleep(ffffffff827b5bb4,120,ffffffff823f08ad,2) at tsleep+0xe6 sys/kern/kern_synch.c:151 sys_nanosleep(ffff8000228f5ed0,ffff80002311ac20,ffff80002311ac70) at sys_nanosleep+0x205 sys/kern/kern_time.c:297 syscall(ffff80002311acf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002311acf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5b00, count: -9