]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
12 months agoupstream: memory leak on error path; bz3821
djm@openbsd.org [Wed, 7 May 2025 04:10:21 +0000 (04:10 +0000)] 
upstream: memory leak on error path; bz3821

OpenBSD-Commit-ID: 65577596a15ad6dd9a1ab3fc24c1c31303ee6e2b

12 months agoupstream: test ssh-agent with the -T flag to force the old /tmp
deraadt@openbsd.org [Tue, 6 May 2025 15:15:05 +0000 (15:15 +0000)] 
upstream: test ssh-agent with the -T flag to force the old /tmp

location rather than inside the homedir.  During relink operation,
/.ssh/agent was created which is surprising.  This test sequence could use
some improvement so this is a temporary fix. observed by florian, change ok
semarie

OpenBSD-Commit-ID: c7246a6b519ac390ca550719f91acfdaef1fa0f0

12 months agoupstream: finally remove DSA signature support from OpenSSH.
djm@openbsd.org [Tue, 6 May 2025 05:40:56 +0000 (05:40 +0000)] 
upstream: finally remove DSA signature support from OpenSSH.

feedback/ok tb@, ok deraadt@

OpenBSD-Commit-ID: bfe6ee73c1b676c81a2901030c791f8ec888228f

12 months agoupstream: Now that there's an I-D for certificate keys, refer to
djm@openbsd.org [Mon, 5 May 2025 05:51:11 +0000 (05:51 +0000)] 
upstream: Now that there's an I-D for certificate keys, refer to

that instead of the much more basic format description we had previously.

OpenBSD-Commit-ID: cf01e0727a813fee8626ad7b3aa240621cc92014

12 months agoupstream: - add full stop to the text in -a - move the -U and -u
jmc@openbsd.org [Mon, 5 May 2025 05:47:28 +0000 (05:47 +0000)] 
upstream: - add full stop to the text in -a - move the -U and -u

text to the correct place

OpenBSD-Commit-ID: 2fb484337a0978c703f61983bb14bc5cbaf898c2

12 months agoAdd minimal implementations of fstatat and unlinkat.
Darren Tucker [Tue, 6 May 2025 09:01:00 +0000 (19:01 +1000)] 
Add minimal implementations of fstatat and unlinkat.

Fixes build on some pre-POSIX.1-2008 platforms.

12 months agoNew location of cygwin setup.
Darren Tucker [Mon, 5 May 2025 22:15:34 +0000 (08:15 +1000)] 
New location of cygwin setup.

12 months agoBoringssl now puts libcrypto in a different place.
Darren Tucker [Mon, 5 May 2025 22:07:23 +0000 (08:07 +1000)] 
Boringssl now puts libcrypto in a different place.

12 months agoHandle systems that don't have st_mtim.
Darren Tucker [Mon, 5 May 2025 10:45:42 +0000 (20:45 +1000)] 
Handle systems that don't have st_mtim.

Ignores nanoseconds, but it's checking for >1h old so a few nanoseconds
shouldn't matter much.  Fixes build on Mac OS X.

12 months agoSupply timespecsub if needed.
Darren Tucker [Mon, 5 May 2025 09:09:25 +0000 (19:09 +1000)] 
Supply timespecsub if needed.

12 months agoincludes.h for compat, time.h for clock_gettime.
Darren Tucker [Mon, 5 May 2025 09:08:48 +0000 (19:08 +1000)] 
includes.h for compat, time.h for clock_gettime.

12 months agoCygwin install in back on D:
Darren Tucker [Mon, 5 May 2025 08:51:34 +0000 (18:51 +1000)] 
Cygwin install in back on D:

12 months agodepend
Damien Miller [Mon, 5 May 2025 04:59:30 +0000 (14:59 +1000)] 
depend

12 months agoupstream: missing file in previous commit
djm@openbsd.org [Mon, 5 May 2025 03:35:06 +0000 (03:35 +0000)] 
upstream: missing file in previous commit

OpenBSD-Commit-ID: e526c97fcb2fd9f0b7b229720972426ab437d7eb

12 months agoupstream: Move agent listener sockets from /tmp to under
djm@openbsd.org [Mon, 5 May 2025 02:48:06 +0000 (02:48 +0000)] 
upstream: Move agent listener sockets from /tmp to under

~/.ssh/agent for both ssh-agent(1) and forwarded sockets in sshd(8).

This ensures processes (such as Firefox) that have restricted
filesystem access that includes /tmp (via unveil(3)) do not have the
ability to use keys in an agent.

Moving the default directory has the consequence that the OS will no
longer clean up stale agent sockets, so ssh-agent now gains this
ability.

To support $HOME on NFS, the socket path includes a truncated hash of
the hostname. ssh-agent will by default only clean up sockets from
the same hostname.

ssh-agent gains some new flags: -U suppresses the automatic cleanup
of stale sockets when it starts. -u forces a cleanup without
keeping a running agent, -uu forces a cleanup that ignores the
hostname. -T makes ssh-agent put the socket back in /tmp.

feedback deraadt@ naddy@, doitdoitdoit deraadt@

OpenBSD-Commit-ID: 8383dabd98092fe5498d5f7f15c7d314b03a93e1

12 months agoupstream: correct log messages; the reap function is used for more
djm@openbsd.org [Mon, 5 May 2025 02:40:30 +0000 (02:40 +0000)] 
upstream: correct log messages; the reap function is used for more

than just the preauth process now

OpenBSD-Commit-ID: 768c5b674bd77802bb197c31dba78559f1174c02

13 months agoupstream: make writing known_hosts lines more atomic, by writing
djm@openbsd.org [Wed, 30 Apr 2025 05:26:15 +0000 (05:26 +0000)] 
upstream: make writing known_hosts lines more atomic, by writing

the entire line in one operation and using unbuffered stdio.

Usually writes to this file are serialised on the "Are you sure you
want to continue connecting?" prompt, but if host key checking is
disabled and connections were being made with high concurrency
then interleaved writes might have been possible.

feedback/ok deraadt@ millert@

OpenBSD-Commit-ID: d11222b49dabe5cfe0937b49cb439ba3d4847b08

13 months agoupstream: fix a out-of-bounds read if the known_hosts file is
djm@openbsd.org [Wed, 30 Apr 2025 05:23:15 +0000 (05:23 +0000)] 
upstream: fix a out-of-bounds read if the known_hosts file is

truncated after the hostname.

Reported by the OpenAI Security Research Team

ok deraadt@

OpenBSD-Commit-ID: c0b516d7c80c4779a403826f73bcd8adbbc54ebd

13 months agoSet Windows permssions on regress dir.
Darren Tucker [Sat, 19 Apr 2025 23:07:57 +0000 (09:07 +1000)] 
Set Windows permssions on regress dir.

Prevents "unprotected private key file" error when running tests.

13 months agoAdd 10.0 branch to test status page.
Darren Tucker [Thu, 17 Apr 2025 22:18:52 +0000 (08:18 +1000)] 
Add 10.0 branch to test status page.

13 months agocygwin-install-action now puts setup.exe on D:
Darren Tucker [Thu, 17 Apr 2025 22:14:16 +0000 (08:14 +1000)] 
cygwin-install-action now puts setup.exe on D:

13 months agoInclude time.h for clock_gettime().
Darren Tucker [Thu, 17 Apr 2025 22:10:32 +0000 (08:10 +1000)] 
Include time.h for clock_gettime().

13 months agoAdd includes.h for new tests.
Darren Tucker [Thu, 17 Apr 2025 06:51:14 +0000 (16:51 +1000)] 
Add includes.h for new tests.

Fixes builds on older platforms.

13 months agoProvide INFINITY if it's not provided.
Darren Tucker [Wed, 16 Apr 2025 12:29:17 +0000 (22:29 +1000)] 
Provide INFINITY if it's not provided.

INFINITY is specified in c99, so define if not provided.

13 months agoLook for sqrt(), possibly in libm.
Darren Tucker [Tue, 15 Apr 2025 11:58:49 +0000 (21:58 +1000)] 
Look for sqrt(), possibly in libm.

The unit tests now use sqrt(), which in some platforms (notably
DragonFlyBSD and Solaris) is not in libc but rather libm.  Since only
the unit tests use this, add TESTLIBS and if necessary put libm in it.

13 months agoupstream: Cast signalled_keydrop to int when logging to prevent warning
dtucker@openbsd.org [Tue, 15 Apr 2025 09:22:25 +0000 (09:22 +0000)] 
upstream: Cast signalled_keydrop to int when logging to prevent warning

on platforms where sig_atomic_t is not the same as int.  bz#3811, patch from
jlduran at gmail com.

OpenBSD-Commit-ID: b6bc9e9006e7f81ade57d41a48623a4323deca6c

13 months agoupstream: basic benchmarking support for the unit test framework enable
djm@openbsd.org [Tue, 15 Apr 2025 04:00:42 +0000 (04:00 +0000)] 
upstream: basic benchmarking support for the unit test framework enable

with "make UNITTEST_BENCHMARK=yes"

ok dtucker@

OpenBSD-Regress-ID: 7f16a2e247f860897ca46ff87bccbe6002a32564

13 months agoupstream: rework the text for -3 to make it clearer what default
jmc@openbsd.org [Mon, 14 Apr 2025 05:41:42 +0000 (05:41 +0000)] 
upstream: rework the text for -3 to make it clearer what default

behaviour is, and adjust the text for -R to make them more consistent;

issue raised by mikhail mp39590;
behaviour explained by naddy

ok djm

OpenBSD-Commit-ID: 15ff3bd1518d86c84fa8e91d7aa72cfdb41dccc8

13 months agoupdate version numbers
Damien Miller [Wed, 9 Apr 2025 07:02:17 +0000 (17:02 +1000)] 
update version numbers

13 months agoupstream: openssh-10.0
djm@openbsd.org [Wed, 9 Apr 2025 07:00:21 +0000 (07:00 +0000)] 
upstream: openssh-10.0

OpenBSD-Commit-ID: db5b4a1f1c9e988f8f166b56dc5643606294b403

13 months agoupstream: Fix logic error in DisableForwarding option. This option
djm@openbsd.org [Wed, 9 Apr 2025 07:00:03 +0000 (07:00 +0000)] 
upstream: Fix logic error in DisableForwarding option. This option

was documented as disabling X11 and agent forwarding but it failed to do so.
Spotted by Tim Rice.

OpenBSD-Commit-ID: fffc89195968f7eedd2fc57f0b1f1ef3193f5ed1

13 months agoupstream: oops, I accidentally backed out the typo fix
djm@openbsd.org [Wed, 9 Apr 2025 01:24:40 +0000 (01:24 +0000)] 
upstream: oops, I accidentally backed out the typo fix

OpenBSD-Commit-ID: f485f79bf3e9ebbe1de13ac96150cf458956cfd8

13 months agoupstream: typo
djm@openbsd.org [Wed, 9 Apr 2025 01:23:47 +0000 (01:23 +0000)] 
upstream: typo

OpenBSD-Commit-ID: f912725c7d303720706b3ccfb2cb846d46296d13

13 months agoinitialise websafe_allowlist in agent fuzzer
Damien Miller [Tue, 8 Apr 2025 23:49:55 +0000 (09:49 +1000)] 
initialise websafe_allowlist in agent fuzzer

13 months agoupstream: typo
djm@openbsd.org [Tue, 8 Apr 2025 23:10:46 +0000 (23:10 +0000)] 
upstream: typo

OpenBSD-Regress-ID: 08477b936d1d0c1e8a98aa1c0e1bdde8871894c9

13 months agoupstream: typo
djm@openbsd.org [Tue, 8 Apr 2025 23:10:08 +0000 (23:10 +0000)] 
upstream: typo

OpenBSD-Commit-ID: 6e683e13e72bf1e43bbd3bbc6a8332d5a98bdc99

13 months agoupstream: Include time.h for time().
dtucker@openbsd.org [Mon, 7 Apr 2025 08:12:22 +0000 (08:12 +0000)] 
upstream: Include time.h for time().

Fixes warning on some platforms when building without openssl.

OpenBSD-Commit-ID: 04ca29b8eaae1860c7adde3e770baa1866e30a54

13 months agoupstream: Wrap #include <openssl/dsa.h> in #ifdef WITH_DSA
tb@openbsd.org [Wed, 2 Apr 2025 04:28:03 +0000 (04:28 +0000)] 
upstream: Wrap #include <openssl/dsa.h> in #ifdef WITH_DSA

ok djm

OpenBSD-Commit-ID: ed01a7c102243f84e4a317aefb431916d98aab15

13 months agoremove all instances of -pie from LDFLAGS
Damien Miller [Wed, 2 Apr 2025 22:10:19 +0000 (09:10 +1100)] 
remove all instances of -pie from LDFLAGS

Previously only the first instance of this flag was removed.
Unbreaks build on OpenSUSE Tumbleweed. Patch from Antonio Larrosa

14 months agoupstream: remove ability to enable DSA support. Actual code will be
djm@openbsd.org [Tue, 1 Apr 2025 23:23:20 +0000 (23:23 +0000)] 
upstream: remove ability to enable DSA support. Actual code will be

g/c'd separately. ok deraadt@

OpenBSD-Commit-ID: 2a032b75156c4d922e8343fa97ff6bc227f09819

14 months agoupstream: Add TEST_SSH_SSHD_ENV to sshd lines here too.
dtucker@openbsd.org [Fri, 28 Mar 2025 21:45:55 +0000 (21:45 +0000)] 
upstream: Add TEST_SSH_SSHD_ENV to sshd lines here too.

OpenBSD-Regress-ID: 045f2c88b42d694b404db51c5de5eca20d748ff1

14 months agoupstream: Pass "ControlMaster no" to ssh when invoked by scp & sftp.
dtucker@openbsd.org [Fri, 28 Mar 2025 06:04:07 +0000 (06:04 +0000)] 
upstream: Pass "ControlMaster no" to ssh when invoked by scp & sftp.

If you have ControlMaster auto (or yes) in your config, and the
first connection you make is via scp or sftp, then you may get a
few unexpected options applied to it (eg ForwardX11 no), since sftp
and sftp explicitly disable those for reasons.  These effects will
persist beyond the initial scp or sftp command.

This explicitly disables persistent session *creation* by scp and sftp.
It will not prevent them from using an existing session if one has
already been created.

From Github PR#557, ok djm@ kn@

OpenBSD-Commit-ID: 9dad7c737466837e0150c4318920f46d844770c4

14 months agoupstream: Set sshd environment variables during sshd test run too.
dtucker@openbsd.org [Fri, 28 Mar 2025 05:41:15 +0000 (05:41 +0000)] 
upstream: Set sshd environment variables during sshd test run too.

OpenBSD-Regress-ID: 50cb325d92c390a2909662c901f6ac5d80b6f74d

14 months agoupstream: Add TEST_SSH_SSHD_ENV variable which is added to sshd's
dtucker@openbsd.org [Fri, 28 Mar 2025 05:36:24 +0000 (05:36 +0000)] 
upstream: Add TEST_SSH_SSHD_ENV variable which is added to sshd's

environment. Will be used in Portable to tweak behaviour of tcmalloc's
debugging.

OpenBSD-Regress-ID: 67e38c3c4517ddb72c8a3549a3325a166d7bb6d6

14 months agoupstream: chown log directory in addition to log files.
dtucker@openbsd.org [Fri, 28 Mar 2025 05:33:30 +0000 (05:33 +0000)] 
upstream: chown log directory in addition to log files.

OpenBSD-Regress-ID: b520d54a0bbf2c6554413c798218bda26b385ad9

14 months agoBe explicit about environment variables for tests.
Darren Tucker [Fri, 28 Mar 2025 05:47:58 +0000 (16:47 +1100)] 
Be explicit about environment variables for tests.

This will make it easier to reproduce a test failure by cut-and-paste of
the corresponding line from the github log.

14 months agoAdd tcmalloc flags to TEST_SSH_SSHD_ENV.
Darren Tucker [Fri, 28 Mar 2025 05:46:40 +0000 (16:46 +1100)] 
Add tcmalloc flags to TEST_SSH_SSHD_ENV.

This will get passed to sshd via test-exec.sh.

14 months agoAdd PuTTY 0.81, 0.82 and 0.83 to tests.
Darren Tucker [Thu, 27 Mar 2025 12:04:44 +0000 (23:04 +1100)] 
Add PuTTY 0.81, 0.82 and 0.83 to tests.

14 months agoInclude TCMALLOC_STACKTRACE_METHOD in output.
Darren Tucker [Thu, 27 Mar 2025 11:30:40 +0000 (22:30 +1100)] 
Include TCMALLOC_STACKTRACE_METHOD in output.

If TCMALLOC_STACKTRACE_METHOD happens to be set, include it in the debug
output to make reproducing test cases easier.

14 months agoTest with-linux-memlock-onfault in kitchensink.
Darren Tucker [Thu, 27 Mar 2025 09:15:11 +0000 (20:15 +1100)] 
Test with-linux-memlock-onfault in kitchensink.

14 months agoInclude fcntl.h so AT_FDCWD does not get redefined.
Collin Funk [Thu, 27 Mar 2025 01:24:59 +0000 (18:24 -0700)] 
Include fcntl.h so AT_FDCWD does not get redefined.

14 months agoAdd support for locking memory on Linux
Daniil Tatianin [Thu, 27 Feb 2025 08:37:13 +0000 (11:37 +0300)] 
Add support for locking memory on Linux

Linux wakes up kcompactd threads in order to make more contiguous memory
available on the system, it does this by migrating live movable pages
(actively modifying live processes' page tables and constantly flooding
them with page invalidation IPIs, which can be up to millions per
second), which causes the process to become unresponsive for up to
seconds or even minutes in some severe cases. In case of sshd, we want
to always be able to connect to the system, even if it's under heavy
kcompactd load.

Introduce an option to protect sshd and its children sessions from being
compacted by kcompactd (this works in cojunction with
compact_unevictable_allowed = 0). Note that we depend on MCL_ONFAULT
being available, which was introduced in linux 4.4. MCL_ONFAULT allows
the system to lock pages lazily, thus drastically reducing memory usage
of a locked process (without MCL_ONFAULT, every existing mapping in the
process is instantly write-faulted).

14 months agoplatform: introduce a way to hook new session start
Daniil Tatianin [Thu, 27 Feb 2025 08:46:25 +0000 (11:46 +0300)] 
platform: introduce a way to hook new session start

Previously this was possible via post_fork_child, but ever since sshd
was split into multiple binaries, this is now no longer possible becase
of execv.

14 months agoupstream: Prevent theoretical NULL deref in throughlocal_sftp.
dtucker@openbsd.org [Wed, 19 Mar 2025 06:11:15 +0000 (06:11 +0000)] 
upstream: Prevent theoretical NULL deref in throughlocal_sftp.

Coverity CID 405019, although at the moment it's not reachable. ok djm@

OpenBSD-Commit-ID: 630d46c1021b69fbb470e349976c70e9a48b7644

14 months agoFix workflow syntax again.
Darren Tucker [Wed, 19 Mar 2025 06:35:10 +0000 (17:35 +1100)] 
Fix workflow syntax again.

14 months agoDifferentiate logfiles better.
Darren Tucker [Tue, 18 Mar 2025 09:54:48 +0000 (20:54 +1100)] 
Differentiate logfiles better.

14 months agoFix another typo in workflow.
Darren Tucker [Tue, 18 Mar 2025 09:27:46 +0000 (20:27 +1100)] 
Fix another typo in workflow.

14 months agoFix syntax error in workflow.
Darren Tucker [Tue, 18 Mar 2025 07:16:12 +0000 (18:16 +1100)] 
Fix syntax error in workflow.

14 months agoIdentify each logfile while printing them.
Darren Tucker [Tue, 18 Mar 2025 07:13:14 +0000 (18:13 +1100)] 
Identify each logfile while printing them.

14 months agoupstream: fix NULL dereference for Match conditions missing
djm@openbsd.org [Tue, 18 Mar 2025 04:53:14 +0000 (04:53 +0000)] 
upstream: fix NULL dereference for Match conditions missing

arguments, e.g. "Match user". Spotted by Coverity (CID 477813)

OpenBSD-Commit-ID: 13584281cfa23b8ebc41f9d128a6b9464ae960d4

14 months agoupstream: Fix EVP_CIPHER_CTX_ctrl() return checks
tb@openbsd.org [Fri, 14 Mar 2025 09:49:49 +0000 (09:49 +0000)] 
upstream: Fix EVP_CIPHER_CTX_ctrl() return checks

While this API tries to translate negative return values (i.e. -1) to 0
in BoringSSL and LibreSSL, it is still possible for it to return negative
values in prinicple. We even incorrectly document that -1 can be returned
while Boring and OpenSSL plead the Fifth.

In OpenSSL 3 there are now code paths that explicitly return -1 and they
started shifting their return checks to <= 0 - of course they do this in
inconsistent and sometimes incorrect manner. While these paths aren't
reachable from ssh right now, who can really tell what happens in the two
hundred lines of inscrutable bloated mess this has become.

So error check with <= 0 to ensure that we don't accidentally translate an
error to success.

ok markus schwarze

OpenBSD-Commit-ID: a855c833cf4ecfce43bedc761f26ad924f70483c

14 months agoFix debug log path.
Darren Tucker [Mon, 17 Mar 2025 10:35:55 +0000 (21:35 +1100)] 
Fix debug log path.

14 months agoAlso lazily unmount workspace in case of straggers.
Darren Tucker [Fri, 14 Mar 2025 05:24:06 +0000 (16:24 +1100)] 
Also lazily unmount workspace in case of straggers.

14 months agoMake sure upstream tests run on correct hardware.
Darren Tucker [Fri, 14 Mar 2025 05:17:39 +0000 (16:17 +1100)] 
Make sure upstream tests run on correct hardware.

14 months agoAdd OpenBSD upstream test on obsdsnap-arm64.
Darren Tucker [Fri, 14 Mar 2025 02:47:27 +0000 (13:47 +1100)] 
Add OpenBSD upstream test on obsdsnap-arm64.

14 months agorebuild .depend
Damien Miller [Wed, 12 Mar 2025 23:45:53 +0000 (10:45 +1100)] 
rebuild .depend

14 months agoupstream: remove assumption that the sshd_config and any configs
djm@openbsd.org [Wed, 12 Mar 2025 22:43:44 +0000 (22:43 +0000)] 
upstream: remove assumption that the sshd_config and any configs

included from it can fit in a (possibly enlarged) socket buffer, by having
the sshd listener mainloop actively manage sending the configuration to the
sshd-session subprocess.

work by markus@ w/ a little feedback from me;
ok me and committing on his behalf

OpenBSD-Commit-ID: 8f54451483f64951853074adb76bc4f838eaf3ae

14 months agoupstream: Prime caches for DNS names needed for tests.
dtucker@openbsd.org [Tue, 11 Mar 2025 11:46:44 +0000 (11:46 +0000)] 
upstream: Prime caches for DNS names needed for tests.

When running the SSHFP tests, particularly on an ephemeral VM, the first
query or two can fail for some reason, presumably because something isn't
fully initialized or something.  To work around this, issue queries for the
names we'll need before we need them.

OpenBSD-Regress-ID: 900841133540e7dead253407db5a874a6ed09eca

14 months agoupstream: Some dd's don't understand "1m", so handle seperately.
dtucker@openbsd.org [Tue, 11 Mar 2025 09:06:50 +0000 (09:06 +0000)] 
upstream: Some dd's don't understand "1m", so handle seperately.

OpenBSD-Regress-ID: 1d983b27c96f28f69d3a288c19e8d8c58e1b2ee3

14 months agoLazily unmount github workspace at end of workflow.
Darren Tucker [Tue, 11 Mar 2025 08:17:46 +0000 (19:17 +1100)] 
Lazily unmount github workspace at end of workflow.

Sometimes when a test times out the workspace is still busy when we try
to unmount it, which leaves the runner unusable until it's cleaned up
manually. We try to unmount this in the first step, but that usually
doesn't work since it fails during setup before it starts our workflow.
Move it to the end and make it a lazy unmount so it hopefully works
eventually.

14 months agoupstream: Add regress test for sftp resume.
dtucker@openbsd.org [Tue, 11 Mar 2025 07:50:20 +0000 (07:50 +0000)] 
upstream: Add regress test for sftp resume.

OpenBSD-Regress-ID: 37f629b3014338fa23a85df1e1bb320ea12282e1

14 months agoupstream: Use ssh binary instead of the (smaller) script when
dtucker@openbsd.org [Tue, 11 Mar 2025 07:46:02 +0000 (07:46 +0000)] 
upstream: Use ssh binary instead of the (smaller) script when

preparing test data files since it's faster.

OpenBSD-Regress-ID: 4215e42682fdb73e131e10645d4a1a23a91d64f5

14 months agoupstream: Set up dbclient's known_hosts as it expects.
dtucker@openbsd.org [Tue, 11 Mar 2025 07:43:45 +0000 (07:43 +0000)] 
upstream: Set up dbclient's known_hosts as it expects.

OpenBSD-Regress-ID: 9e0898e8423237ce5023be53787bb4062e0d0418

14 months agoupstream: Use $DBCLIENT to access dbclient for consistency.
dtucker@openbsd.org [Tue, 11 Mar 2025 07:43:03 +0000 (07:43 +0000)] 
upstream: Use $DBCLIENT to access dbclient for consistency.

OpenBSD-Regress-ID: 81e1b41e1ffc49aba1e6fcaeb6242f3b7875ea3c

14 months agoupstream: Check if dbclient supports SHA1 before trying SHA1-based
dtucker@openbsd.org [Tue, 11 Mar 2025 07:42:08 +0000 (07:42 +0000)] 
upstream: Check if dbclient supports SHA1 before trying SHA1-based

KEX.

Dropbear 2025.87 removed SHA1 support by default, which means
diffie-hellman-group14-sha1 is not available.  Unfortunately there isn't a
flag to query supported KEX, so instead check MACs and if it doesn't have
SHA1 methods, assuming SHA1 based KEXes are likewise not available.  Spotted
by anton@.

OpenBSD-Regress-ID: acfa8e26c001cb18b9fb81a27271c3b51288d304

14 months agoupstream: Set highwater when resuming a "put". Prevents bogus "server
dtucker@openbsd.org [Tue, 11 Mar 2025 07:48:51 +0000 (07:48 +0000)] 
upstream: Set highwater when resuming a "put". Prevents bogus "server

reordered acks" debug message.  ok djm@

OpenBSD-Commit-ID: aa7f6d0fc2e893c8c278ea3e6e0974c2eca83f5d

14 months agoupstream: Test for %-token and env var expansion in SetEnv.
dtucker@openbsd.org [Mon, 3 Mar 2025 06:54:37 +0000 (06:54 +0000)] 
upstream: Test for %-token and env var expansion in SetEnv.

OpenBSD-Regress-ID: bd6139a6177ac4afb29a0ce4afc23567b22ef9f9

14 months agoupstream: Also test User expansions when supplied via -l option and
dtucker@openbsd.org [Sun, 2 Mar 2025 07:41:06 +0000 (07:41 +0000)] 
upstream: Also test User expansions when supplied via -l option and

user@host.

OpenBSD-Regress-ID: 56415859260b53ef0dd20f71225ba5fdf6320f50

14 months agoupstream: Tests for User expansion of %-tokens and environment
dtucker@openbsd.org [Sat, 1 Mar 2025 06:12:47 +0000 (06:12 +0000)] 
upstream: Tests for User expansion of %-tokens and environment

variables.

OpenBSD-Regress-ID: 7ed21dd0e09fb1f3537b8b177f171018aa501628

14 months agoupstream: use glob(3) wildcards in AuthorizedKeys/PrincipalsFile
djm@openbsd.org [Fri, 6 Dec 2024 16:25:58 +0000 (16:25 +0000)] 
upstream: use glob(3) wildcards in AuthorizedKeys/PrincipalsFile

tests to exercise this feature; ok dtucker

OpenBSD-Regress-ID: 7f7b19c0b05b1862cc6521ce61b2b301a3f9cc3b

14 months agoupstream: implement attestation verification for ED25519 keys
djm@openbsd.org [Fri, 6 Dec 2024 10:37:42 +0000 (10:37 +0000)] 
upstream: implement attestation verification for ED25519 keys

OpenBSD-Regress-ID: c44fa5cdb434375a8b5545fdb4fc651061afca1f

14 months agoupstream: Add %-token and environment variable expansion to SetEnv.
dtucker@openbsd.org [Mon, 3 Mar 2025 06:53:09 +0000 (06:53 +0000)] 
upstream: Add %-token and environment variable expansion to SetEnv.

feedback deraadt@ jmc@, nits and ok djm@

OpenBSD-Commit-ID: 2f6e5070481cb73e6f35fd1c6608c1eeff88a5c1

14 months agoupstream: fix PerSourcePenalty incorrectly using "crash" penalty when
djm@openbsd.org [Sun, 2 Mar 2025 22:44:00 +0000 (22:44 +0000)] 
upstream: fix PerSourcePenalty incorrectly using "crash" penalty when

LoginGraceTime was exceeded. Reported by irwin AT princeton.edu via bz3797

OpenBSD-Commit-ID: 1ba3e490a5a9451359618c550d995380af454d25

15 months agoinclude __builtin_popcount replacement function
Damien Miller [Sun, 2 Mar 2025 11:06:53 +0000 (22:06 +1100)] 
include __builtin_popcount replacement function

Some systems/compilers lack __builtin_popcount(), so replace it as
necessary. Reported by Dennis Clarke; ok dtucker@

15 months agoupstream: whitespace
djm@openbsd.org [Sun, 2 Mar 2025 11:03:13 +0000 (11:03 +0000)] 
upstream: whitespace

OpenBSD-Commit-ID: 1bd8953a37451ef7e0991f9fceec5e8005fe986a

15 months agoupstream: Make a copy of the user when handling ssh -l, so that
dtucker@openbsd.org [Sun, 2 Mar 2025 07:02:49 +0000 (07:02 +0000)] 
upstream: Make a copy of the user when handling ssh -l, so that

later during User token expansion we don't end up freeing a member of argv.
Spotted by anton@'s regress tests.

OpenBSD-Commit-ID: 2f671a4f5726b66d123b88b1fdd1a90581339955

15 months agoupstream: Allow %-token and environment variable expansion in User,
dtucker@openbsd.org [Sat, 1 Mar 2025 06:11:26 +0000 (06:11 +0000)] 
upstream: Allow %-token and environment variable expansion in User,

with the exception of %r and %C which are self-referential.  Requested in
bz#3477, ok djm@, man page improvements jmc@

OpenBSD-Commit-ID: caeb46251ee073662f6f5864c6f7b92d8ac80fa8

15 months agoRebuild config files if Makefile changes.
Darren Tucker [Fri, 28 Feb 2025 23:28:59 +0000 (10:28 +1100)] 
Rebuild config files if Makefile changes.

This ensures paths are updated if they are changed by re-running configure.
Patch from rapier at psc.edu.

15 months agoCheck for le32toh, le64toh, htole64 individually.
Darren Tucker [Wed, 26 Feb 2025 07:16:03 +0000 (18:16 +1100)] 
Check for le32toh, le64toh, htole64 individually.

It appears that at least some versions of endian.h in glibc do not have
the latter two, so check for and replace each one individually.
bz#3794, ok djm@

15 months agoupstream: ressurect fix for "match invalid-user" that got clobbered
djm@openbsd.org [Tue, 25 Feb 2025 06:25:30 +0000 (06:25 +0000)] 
upstream: ressurect fix for "match invalid-user" that got clobbered

by 1.423

OpenBSD-Commit-ID: d18bf0945976e0f3467d710d4bc8bdbe181c0567

15 months agoupstream: Also prohibit , (comma) in hostnames, proposed by David
deraadt@openbsd.org [Fri, 21 Feb 2025 18:22:41 +0000 (18:22 +0000)] 
upstream: Also prohibit , (comma) in hostnames, proposed by David

Leadbeater ok djm millert

OpenBSD-Commit-ID: 2837fa31dc6e81976f510f0a259edaa559b20b07

15 months agoTry to fix github tcmalloc target failure
Damien Miller [Mon, 24 Feb 2025 06:27:50 +0000 (17:27 +1100)] 
Try to fix github tcmalloc target failure

tcmalloc may, depending on the stacktrace generator it uses, create
pipe(2) fds during shared library initialisation. These will later
get clobbered by ssh/sshd calling closefrom() and chaos will ensue.
Tell tcmalloc to use an unwinder that doesn't pull this stuff.

15 months agocleanup last mention of ubuntu-20.04
Damien Miller [Fri, 21 Feb 2025 02:44:35 +0000 (13:44 +1100)] 
cleanup last mention of ubuntu-20.04

15 months agoprune gcc/clang versions to be tested
Damien Miller [Fri, 21 Feb 2025 02:44:13 +0000 (13:44 +1100)] 
prune gcc/clang versions to be tested

Test only the oldest and latest versions of each

15 months agoUpdate AWS-LC version number
Damien Miller [Fri, 21 Feb 2025 00:30:22 +0000 (11:30 +1100)] 
Update AWS-LC version number

Patch from Shubham Mittal bz bz3792

15 months agoadjust workflows for ubuntu version transition
Damien Miller [Fri, 21 Feb 2025 00:22:34 +0000 (11:22 +1100)] 
adjust workflows for ubuntu version transition

remove workflows for unsupported compilers, add a few for additional
supported compilers, move some workflows to run on ubuntu-latest

15 months agoAdd ubuntu-*-arm test runners
Damien Miller [Thu, 20 Feb 2025 06:10:32 +0000 (17:10 +1100)] 
Add ubuntu-*-arm test runners

15 months agoremove ubuntu-20.04 Github action runners
Damien Miller [Thu, 20 Feb 2025 06:03:28 +0000 (17:03 +1100)] 
remove ubuntu-20.04 Github action runners

ubuntu-20.04 is deprecated now, so migrate all its unique runners
to ubuntu-22.04.

ok dtucker@

15 months agoopenssh-9.9p2
Damien Miller [Tue, 18 Feb 2025 08:03:42 +0000 (19:03 +1100)] 
openssh-9.9p2

15 months agoupstream: Fix cases where error codes were not correctly set
djm@openbsd.org [Tue, 18 Feb 2025 08:02:48 +0000 (08:02 +0000)] 
upstream: Fix cases where error codes were not correctly set

Reported by the Qualys Security Advisory team. ok markus@

OpenBSD-Commit-ID: 7bcd4ffe0fa1e27ff98d451fb9c22f5fae6e610d