In the old, dark ages of the infancy of the OpenBSD/hppa port, wsdisplay
would attach at the end of the device configuration process, because at that
time it was quite common to hit a panic or the kernel debugger before reaching
that point, and we needed the kernel debugger to be usable.
The reliability of the code has improved a lot since then, and, using a
simple trick to use the prom console as input to wsdisplay, we do not need to
postpone attachment of wsdisplay any longer.
fix a bug where if an exit-status message arrives and then the TCP
connection is terminated before the session channel finishes draining
its buffered data, then ssh(1)'s exit status could reflect success
rather than an abnormally-terminated connection.
Anthropic ANT-2026-2LSSYBUV; feedback/ok markus@
Some performance improvements for sshbuf
1. When allocating, geometrically scale the buffer by 1.25x rather
than doing linear increments. This avoids quadratic behaviour in
some cases and expensive ramp up if the target state is a large
buffer.
2. Keep a 50% allocation headroom above the requested maximum size.
Because we need to sometime repack buffers by memmove()ing their
contents from the end of the buffer to the start, this avoids a
pathological state where an almost-full buffer that is doing
small get/put operations spends almost all of its time in memcpy.
ok markus@
add async DNS resolution for dynamic (SOCKS 4a/5) forwarding
using libc ASR. Avoids hangs in ssh/sshd when forwarding requests
lookup of a name that is slow to resolve.
Controlled using ASR option in Makefile.inc, on by default.
feedback/ok markus@
Fix FIN_WAIT_2 timeout of closed TCP sockets.
During keep alive timer refactoring at 2025-01-16 I messed up
tcp_keepidle and tcp_keepintvl variables when arming the FIN_WAIT_2
timer. As a consequence connections in FIN_WAIT_2 without socket
stay for 16 hours instead of 10 minutes. A peer that never sends
its FIN can exhaust kernel resources this way. Restore the old
behaviour.
from Acts1631; OK mvs@
don't use builtins for LDBL defines on arm64 and riscv64
Match other archs and drop the ifdef and builtin use. Use the same
values as the clang builtins.
ok miod@ kettenis@
When ForwardX11Timeout=0, explicitly ask for a xauth cookie that doesn't
expire. Prevents some fail-open behaviour because xauth by default will
make one that does expire.
Anthropic ANT-2026-GJIF7KJI
disallow users of forwarded agents from adding FIDO keys to ssh-agent
by default, as permitting this allows a remote user to probe which
credentials are present on a token.
A new allow-remote-fido startup option reenables the ability to do this.
Anthropic ANT-2026-0LK6RYG0
pppoe(4): match peer MAC address in session lookups
Per RFC 2516, a PPPoE session is identified by its session ID and both
Ethernet endpoint addresses. Require sc_dest to match the packets source
MAC in pppoe_find_softc_by_session() and pppoe_smr_find_by_session() to
prevent session hijacking, forged LCP termination, and session ID
collisions on a shared segment.
Reported by Acts1631, who also provided a reproducer, and this diff.
OK gnezdo@, dlg@
when building a KRL from a control file, do not treat a # character
that is not at the start of a line or preceeded by whitespace as the
start of a comment, as key IDs may legitimately contain these
Anthropic ANT-2026-ZF4XFAKS