Skip to content

Mask Linux thermal interrupt info in /proc and /sys.#131018

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
saschagrunert:default-masked-paths
Jul 15, 2025
Merged

Mask Linux thermal interrupt info in /proc and /sys.#131018
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
saschagrunert:default-masked-paths

Conversation

@saschagrunert
Copy link
Copy Markdown
Member

@saschagrunert saschagrunert commented Mar 24, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

On Linux, mask "/proc/interrupts" and "/sys/devices/system/cpu/cpu/thermal_throttle" inside containers by default. Privileged containers or containers started with --security-opt="systempaths=unconfined" are not affected.

Mitigates potential Thermal Side-Channel Vulnerability Exploit (https://github.com/moby/moby/security/advisories/GHSA-6fw5-f8r9-fgfm).

Also: improve integration test TestCreateWithCustomMaskedPaths() to ensure default masked paths don't apply to privileged containers.

Which issue(s) this PR fixes:

Refers to moby/moby#49560, cri-o/cri-o#9069

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

Masked off access to Linux thermal interrupt info in `/proc` and `/sys`.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

None

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Mar 24, 2025
@saschagrunert saschagrunert added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Mar 24, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Mar 24, 2025
@dims
Copy link
Copy Markdown
Member

dims commented Mar 24, 2025

looks like we need darwin support too! (typecheck fail)

On Linux, mask "/proc/interrupts" and "/sys/devices/system/cpu/cpu<x>/thermal_throttle"
inside containers by default. Privileged containers or containers started
with --security-opt="systempaths=unconfined" are not affected.

Mitigates potential Thermal Side-Channel Vulnerability Exploit
(https://github.com/moby/moby/security/advisories/GHSA-6fw5-f8r9-fgfm).

Also: improve integration test TestCreateWithCustomMaskedPaths() to ensure
default masked paths don't apply to privileged containers.

Refers to moby/moby#49560

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Copy Markdown
Member Author

/retest

@saschagrunert
Copy link
Copy Markdown
Member Author

/test pull-kubernetes-e2e-capz-windows-master

@saschagrunert
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@saschagrunert
Copy link
Copy Markdown
Member Author

/retest

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@saschagrunert: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-e2e-capz-windows-master 65b8fba link false /test pull-kubernetes-e2e-capz-windows-master

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@saschagrunert
Copy link
Copy Markdown
Member Author

pull-kubernetes-e2e-capz-windows-master is mostly red over all PR's 🤔
/skip

@sftim
Copy link
Copy Markdown
Contributor

sftim commented Mar 25, 2025

Changelog suggestion

-Mask Linux thermal interrupt info in `/proc` and `/sys`.
+Masked off access to Linux thermal interrupt info in `/proc` and `/sys`.

@saschagrunert
Copy link
Copy Markdown
Member Author

Changelog suggestion

Thanks, applied as suggested.

@bart0sh bart0sh moved this from Triage to Needs Reviewer in SIG Node: code and documentation PRs Mar 26, 2025
@bart0sh
Copy link
Copy Markdown
Contributor

bart0sh commented Mar 26, 2025

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 26, 2025
@k8s-triage-robot
Copy link
Copy Markdown

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2025
@haircommander
Copy link
Copy Markdown
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2025
@haircommander
Copy link
Copy Markdown
Contributor

ah

/hold

I see, let's let a kubelet approver look

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2025
Copy link
Copy Markdown
Member

@SergeyKanzhelev SergeyKanzhelev left a comment

Choose a reason for hiding this comment

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

/lgtm
/unhold
/approve

We typically keep these in-sync.

I wonder if it warrants the backport. I do not have access to https://github.com/moby/moby/security/advisories/GHSA-6fw5-f8r9-fgfm

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, saschagrunert, SergeyKanzhelev

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 1a11816 into kubernetes:master Jul 15, 2025
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.34 milestone Jul 15, 2025
@github-project-automation github-project-automation Bot moved this from Needs Reviewer to Done in SIG Node: code and documentation PRs Jul 15, 2025
@saschagrunert saschagrunert deleted the default-masked-paths branch July 16, 2025 08:10
@saschagrunert saschagrunert removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 16, 2025
@saschagrunert
Copy link
Copy Markdown
Member Author

I wonder if it warrants the backport. I do not have access to https://github.com/moby/moby/security/advisories/GHSA-6fw5-f8r9-fgfm

Yes, I think so. Opened #132985, #132986 and #132987 for that.

k8s-ci-robot added a commit that referenced this pull request Sep 3, 2025
…f-#131018-base-release-1.31

Automated cherry pick of #131018: Mask Linux thermal interrupt info in /proc and /sys.
k8s-ci-robot added a commit that referenced this pull request Sep 3, 2025
…f-#131018-base-release-1.32

Automated cherry pick of #131018: Mask Linux thermal interrupt info in /proc and /sys.
k8s-ci-robot added a commit that referenced this pull request Sep 3, 2025
…f-#131018-base-release-1.33

Automated cherry pick of #131018: Mask Linux thermal interrupt info in /proc and /sys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/node Categorizes an issue or PR as relevant to SIG Node. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Projects

Development

Successfully merging this pull request may close these issues.

9 participants