Skip to content

fix(SymCrypt-OpenSSL): disable KeysInUse - #18335

Merged
christopherco merged 1 commit into
4.0from
tobiasb-ms/disable-symcrypt-keysinuse
Aug 6, 2026
Merged

fix(SymCrypt-OpenSSL): disable KeysInUse#18335
christopherco merged 1 commit into
4.0from
tobiasb-ms/disable-symcrypt-keysinuse

Conversation

@tobiasb-ms

@tobiasb-ms tobiasb-ms commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Disable KeysInUse because its lazy readlink() runs before the configured enabled check and triggers SIGSYS in OpenSSH 10's pre-auth sandbox.

AB#22827

KeysInUse lazily calls readlink() from an EC-key free path before
checking whether logging is enabled. Setting enabled=0 therefore does
not prevent the syscall.

OpenSSH 10 blocks readlink in its pre-auth seccomp sandbox, killing
sshd-auth with SIGSYS and dropping SSH connections when the provider is
active. Compile KeysInUse out until initialization is sandbox-safe.

Fixes: https://dev.azure.com/mariner-org/mariner/_workitems/edit/22827

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5f315f8d-6603-4659-8d14-4476bc265450
Copilot AI balanced review requested due to automatic review settings August 6, 2026 00:19
@tobiasb-ms
tobiasb-ms marked this pull request as ready for review August 6, 2026 00:20
@tobiasb-ms
tobiasb-ms requested a review from a team as a code owner August 6, 2026 00:20
@tobiasb-ms

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables compile-time KeysInUse integration to prevent OpenSSH 10 pre-auth sandbox SIGSYS failures.

Changes:

  • Removes KEYSINUSE_ENABLED.
  • Documents the compatibility rationale.
  • Refreshes rendered spec, release, changelog, and lock fingerprint.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
base/comps/SymCrypt-OpenSSL/SymCrypt-OpenSSL.spec Disables KeysInUse at build time.
specs/s/SymCrypt-OpenSSL/SymCrypt-OpenSSL.spec Updates generated package output.
locks/SymCrypt-OpenSSL.lock Refreshes the component fingerprint.

@christopherco
christopherco merged commit 306727c into 4.0 Aug 6, 2026
13 checks passed
@christopherco
christopherco deleted the tobiasb-ms/disable-symcrypt-keysinuse branch August 6, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants