Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bounds check result in getMaxCPU #10172

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

lf-
Copy link
Member

@lf- lf- commented Mar 7, 2024

Fixes #9725

Motivation

Nix would do out of bounds reads if the kernel puts nothing in cpu.max, which is the case in certain patched kernels.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@lf- lf- requested a review from edolstra as a code owner March 7, 2024 04:58
@tomberek tomberek enabled auto-merge March 7, 2024 05:10
@tomberek tomberek merged commit 0a11080 into NixOS:master Mar 7, 2024
8 checks passed
@lf- lf- mentioned this pull request Mar 7, 2024
@roberth roberth added the backport 2.18-maintenance Automatically creates a PR against the branch label Mar 22, 2024
Copy link

Backport failed for 2.18-maintenance, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.18-maintenance
git worktree add -d .worktree/backport-10172-to-2.18-maintenance origin/2.18-maintenance
cd .worktree/backport-10172-to-2.18-maintenance
git switch --create backport-10172-to-2.18-maintenance
git cherry-pick -x 9c64a09c709e3f995d7f24cdd5a69435c08488fc

lf- added a commit to lix-project/lix that referenced this pull request Apr 28, 2024
Upstream-Bug: NixOS/nix#9725
Upstream-PR: NixOS/nix#10172
Change-Id: I2b8e8b15ee28951be98e5cbe3ccea5b9c8de5994
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-daemon-service-wont-start-but-sudo-nix-daemon-works/46072/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.18-maintenance Automatically creates a PR against the branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nix commands fail without any message
4 participants