Skip to content

chore(deps): upgrade golang.org/x/crypto to v0.56.0 - #2

Closed
alicul wants to merge 12 commits into
modernize-and-update-gofrom
address-security-vuln
Closed

alicul wants to merge 12 commits into
modernize-and-update-gofrom
address-security-vuln

Conversation

@alicul

@alicul alicul commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Resolves three vulnerabilities reported by govulncheck in x/crypto/ssh:

  • GO-2026-6355: DoS on deadlocked established channel

  • GO-2026-6354: DoS on deadlocked undecided channel

  • GO-2026-6303: Source-address critical option enforcement

    go install golang.org/x/vuln/cmd/govulncheck@latest
    govulncheck ./...

baloo42 and others added 7 commits August 29, 2026 10:07
Signed-off-by: Bernhard Strähle <[email protected]>
RemoveOrphanedResources used a snapshot of live/ and init/ taken at
sweep start. A volume created after that snapshot, or renamed from
init/ to live/ between the two reads, was treated as an orphan and
had its overlay layer or work dir deleted while still mounted. runc
then hit ENOENT creating /tmp/gdn-init.

Pass a live isKnown callback that stats init/ then live/ at delete
time so the handle is always found across the rename. Stat errors
other than ErrNotExist fail closed (treat as known) so a permission
or IO error cannot mass-delete overlays.

concourse#9685

Signed-off-by: Shravanth Reddy <[email protected]>
chmod 0 on init/ and live/ is not a Stat error for uid 0, so CI
unit-baggageclaim failed with isKnown("any-handle") false. Replace
the dirs with files so Stat returns ENOTDIR, which is not ErrNotExist
even as root.

Signed-off-by: Shravanth Reddy <[email protected]>
changed the code to instead call what uuid.NewString() calls. If there's
an error we safely catch and return the error. Causing a panic on the
web node is generally a bad idea. Calling uuid.NewRandom() is what we do
everywhere else that we use the uuid package.

nit: Updated the tests to not use Succeed() as the matcher for errors.
It reads weird and isn't the convention we follow in our tests.

Signed-off-by: Taylor Silva <[email protected]>
Had to implement the Options pattern for Filesystem so we could assert
on the inner funcs. Now the tests really guard against the desired
behaviour.

Rest of the changes are mostly nit-pick stuff, like removing LLM
comments.

Signed-off-by: Taylor Silva <[email protected]>
@alicul
alicul changed the base branch from modernize-and-update-go to master September 4, 2026 22:48
@alicul
alicul changed the base branch from master to modernize-and-update-go September 4, 2026 22:49
taylorsilva and others added 5 commits September 4, 2026 19:15
document workaround for running unsigned fly on latest macOS
…phan-in-flight

worker: keep in-flight overlay dirs during orphan sweep
Update Go to 1.27.1 and modernize codebase
Resolves three vulnerabilities reported by govulncheck in x/crypto/ssh:
- GO-2026-6355: DoS on deadlocked established channel
- GO-2026-6354: DoS on deadlocked undecided channel
- GO-2026-6303: Source-address critical option enforcement

   go install golang.org/x/vuln/cmd/govulncheck@latest
   govulncheck ./...
@alicul
alicul force-pushed the address-security-vuln branch from 36756f8 to fa20ff2 Compare September 9, 2026 21:57
@alicul
alicul deleted the branch modernize-and-update-go September 9, 2026 22:00
@alicul alicul closed this Sep 9, 2026
@alicul
alicul deleted the address-security-vuln branch October 3, 2026 21:56
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.

4 participants