panic: receive 1: so 0xfffffd806f6d94b0, so_type 3, sb_cc 264 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 2691 45511 0 0x2 0x4000000 0 syz-fuzzer * 72157 27574 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0408) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d94b0,0,ffff800020eadaf8,0,0,ffff800020eada04) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807aa141c8,ffff800020eadaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cc38,6,ffff800020eadaf8,0,ffff800020eadbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cc38,ffff800020eadb90,ffff800020eadbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020eadc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eadc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffece20, 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 1: so 0xfffffd806f6d94b0, so_type 3, sb_cc 264 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0408) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d94b0,0,ffff800020eadaf8,0,0,ffff800020eada04) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807aa141c8,ffff800020eadaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cc38,6,ffff800020eadaf8,0,ffff800020eadbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cc38,ffff800020eadb90,ffff800020eadbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020eadc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eadc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffece20, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ead840 rbx 0xffff800020ead8f0 rdx 0xffff800020e6cc38 rcx 0 rax 0 r8 0xffffffff812e6c3f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3440c1ffc37dd8bf r12 0x3000000008 r13 0xffff800020ead850 r14 0x100 r15 0x1 rip 0xffffffff81078cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ead830 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=72157 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e6c9c8,0xffff800020e6d128 process=0xffff800020e81348 user=0xffff800020ea8000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44739 389532 23117 0 2 0 syz-executor.0 44739 312707 23117 0 2 0x4000000 syz-executor.0 5409 147422 0 0 3 0x14200 bored sosplice 58724 188160 45511 0 3 0x82 piperd syz-executor.1 23703 245769 0 0 3 0x14200 acct acct 23117 389422 45511 0 3 0x82 nanosleep syz-executor.0 45511 342631 43009 0 3 0x82 thrsleep syz-fuzzer 45511 255132 43009 0 3 0x4000082 nanosleep syz-fuzzer 45511 485960 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 388057 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 76456 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 24533 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 347970 43009 0 3 0x4000082 kqread syz-fuzzer 45511 230395 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 283490 43009 0 3 0x4000082 thrsleep syz-fuzzer 45511 2691 43009 0 7 0x4000002 syz-fuzzer 43009 127133 64255 0 3 0x10008a pause ksh 64255 346593 37727 0 3 0x92 select sshd 18168 200132 1 0 3 0x100083 ttyin getty 37727 119055 1 0 3 0x80 select sshd 55476 453661 23610 74 3 0x100092 bpf pflogd 23610 410916 1 0 3 0x80 netio pflogd 26228 377935 80470 73 3 0x100090 kqread syslogd 80470 331786 1 0 3 0x100082 netio syslogd 95441 59486 1 77 3 0x100090 poll dhclient *27574 72157 1 0 7 0 dhclient 36752 351732 0 0 3 0x14200 bored smr 1245 440138 0 0 2 0x14200 zerothread 8606 209126 0 0 3 0x14200 aiodoned aiodoned 49265 300362 0 0 3 0x14200 syncer update 86292 45707 0 0 3 0x14200 cleaner cleaner 55569 416292 0 0 3 0x14200 reaper reaper 88668 328584 0 0 3 0x14200 pgdaemon pagedaemon 72905 346744 0 0 3 0x14200 bored crynlk 31684 398892 0 0 3 0x14200 bored crypto 55783 57498 0 0 3 0x40014200 acpi0 acpi0 13103 19379 0 0 3 0x40014200 idle1 22114 236106 0 0 3 0x14200 bored softnet 27445 338436 0 0 3 0x14200 bored systqmp 7410 183719 0 0 3 0x14200 bored systq 62873 215788 0 0 3 0x40014200 bored softclock 50177 404858 0 0 3 0x40014200 idle0 1 442040 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 27574 (dhclient) thread 0xffff800020e6cc38 (72157) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265c988) #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:731 #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 9560 6447K 6822K 78643K 13063 0 pcb 13 8K 8K 78643K 436 0 rtable 93 12K 12K 78643K 891 0 ifaddr 129 25K 25K 78643K 378 0 counters 45 34K 34K 78643K 123 0 ioctlops 0 0K 4K 78643K 1591 0 iov 0 0K 16K 78643K 270 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 2144 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 20 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 245 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1765 0 sigio 0 0K 0K 78643K 57 0 proc 63 63K 83K 78643K 715 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 180 0 in_multi 140 5K 5K 78643K 444 0 ether_multi 1 0K 0K 78643K 68 0 mrt 0 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 396 0 pfkey data 0 0K 1K 78643K 2 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 152 153K 153K 78643K 6396 0 UVM aobj 55 7K 7K 78643K 61 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 312 0 NDP 17 0K 0K 78643K 84 0 temp 158 3051K 3119K 78643K 30682 0 kqueue 3 4K 12K 78643K 86 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 13 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 301 0 299 1 0 1 1 0 8 0 rtentry 112 162 0 129 2 0 2 2 0 8 0 unpcb 120 731 0 719 1 0 1 1 0 8 0 syncache 264 30 0 30 7 7 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 564 0 564 4 4 0 2 0 8 0 tcpcb 544 3096 0 3092 7 6 1 2 0 8 0 ipq 40 4 0 4 1 1 0 1 0 8 0 ipqe 40 8 0 8 1 1 0 1 0 8 0 inpcb 280 4582 0 4575 3 1 2 3 0 8 1 rttmr 72 4 0 4 4 4 0 1 0 8 0 nd6 48 35 0 33 1 0 1 1 0 8 0 pkpcb 40 11 0 11 5 5 0 1 0 8 0 ppxss 1128 10 0 10 6 6 0 1 0 8 0 pffrag 232 12 0 12 4 4 0 1 0 482 0 pffrnode 88 12 0 12 4 4 0 1 0 8 0 pffrent 40 117 0 117 5 5 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 pfstitem 24 140 0 122 1 0 1 1 0 8 0 pfstkey 112 140 0 122 2 0 2 2 0 8 0 pfstate 328 140 0 122 5 2 3 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 831 0 693 20 10 10 13 0 8 0 art_table 32 833 0 693 2 0 2 2 0 8 0 art_node 16 161 0 133 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 14 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 237 0 227 1 0 1 1 0 8 0 shmpl 112 59 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4109 0 2712 89 0 89 89 0 8 0 ffsino 272 4109 0 2712 96 1 95 95 0 8 0 nchpl 144 6917 0 5332 60 0 60 60 0 8 0 uvmvnodes 72 4701 0 0 86 0 86 86 0 8 0 vnodes 208 4701 0 0 248 0 248 248 0 8 0 namei 1024 19051 0 19051 4 3 1 1 0 8 1 percpumem 16 72 0 39 1 0 1 1 0 8 0 vcpupl 1984 16 0 0 2 0 2 2 0 8 0 vmpool 560 25 0 9 3 1 2 2 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 18785 0 18785 16 15 1 7 0 8 1 plimitpl 152 131 0 123 1 0 1 1 0 8 0 sigapl 424 1979 0 1946 4 0 4 4 0 8 0 futexpl 56 32129 0 32129 3 2 1 1 0 8 1 knotepl 112 174 0 155 1 0 1 1 0 8 0 kqueuepl 144 283 0 278 1 0 1 1 0 8 0 pipelkpl 48 369 0 359 1 0 1 1 0 8 0 pipepl 120 738 0 719 2 1 1 2 0 8 0 fdescpl 496 1962 0 1946 3 0 3 3 0 8 0 filepl 152 13199 0 13098 9 4 5 6 0 8 0 lockfpl 104 592 0 591 1 0 1 1 0 8 0 lockfspl 48 218 0 217 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 60 0 49 1 0 1 1 0 8 0 ucredpl 96 989 0 979 1 0 1 1 0 8 0 zombiepl 144 1946 0 1946 2 1 1 1 0 8 1 processpl 984 1979 0 1946 7 2 5 5 0 8 0 procpl 624 5503 0 5460 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 24 0 24 10 9 1 1 0 8 1 sockpl 400 5633 0 5612 16 12 4 5 0 8 1 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 216 0 0 26 4 22 26 0 8 0 mtagpl 80 117 0 0 3 0 3 3 0 8 0 mbufpl 256 629 0 0 28 0 28 28 0 8 0 bufpl 280 6819 0 575 447 0 447 447 0 8 0 anonpl 16 181391 0 166268 121 57 64 75 0 124 0 amapchunkpl 152 11728 0 11591 53 46 7 20 0 158 0 amappl16 192 9631 0 8786 96 52 44 53 0 8 0 amappl15 184 114 0 112 1 0 1 1 0 8 0 amappl14 176 65 0 61 1 0 1 1 0 8 0 amappl13 168 68 0 66 1 0 1 1 0 8 0 amappl12 160 120 0 116 3 2 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 13 0 10 1 0 1 1 0 8 0 amappl9 136 1762 0 1759 1 0 1 1 0 8 0 amappl8 128 1944 0 1908 3 1 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 27 0 22 1 0 1 1 0 8 0 amappl5 104 2225 0 2208 1 0 1 1 0 8 0 amappl4 96 558 0 527 1 0 1 1 0 8 0 amappl3 88 256 0 250 1 0 1 1 0 8 0 amappl2 80 14819 0 14746 2 0 2 2 0 8 0 amappl1 72 49990 0 49548 22 12 10 18 0 8 0 amappl 80 5779 0 5723 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 60 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1987 0 1955 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1987 0 1955 1 0 1 1 0 8 0 vmmpekpl 168 17498 0 17459 2 0 2 2 0 8 0 vmmpepl 168 242014 0 239963 148 54 94 114 0 357 0 vmsppl 368 1986 0 1955 3 0 3 3 0 8 0 pdppl 4096 3982 0 3926 11 3 8 8 0 8 0 pvpl 32 539232 0 521973 245 101 144 176 0 265 4 pmappl 232 1986 0 1955 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 319 0 42 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff824d8ff0) 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(ffffffff8265c780) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8265c780) at __mp_lock+0x12e 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: 0xc002bc2c20, count: 9 ddb{0}> trace x86_ipi_db(ffffffff824d8ff0) 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(ffffffff8265c780) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8265c780) at __mp_lock+0x12e 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: 0xc002bc2c20, 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(ffffffff821f0408) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d94b0,0,ffff800020eadaf8,0,0,ffff800020eada04) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807aa141c8,ffff800020eadaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cc38,6,ffff800020eadaf8,0,ffff800020eadbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cc38,ffff800020eadb90,ffff800020eadbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020eadc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eadc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffece20, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0408) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d94b0,0,ffff800020eadaf8,0,0,ffff800020eada04) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807aa141c8,ffff800020eadaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6cc38,6,ffff800020eadaf8,0,ffff800020eadbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6cc38,ffff800020eadb90,ffff800020eadbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020eadc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020eadc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffece20, count: -8