Repository navigation
linuxPackages.gasket: fix build with kernel >= 7.1 - #580334
Merged
Merged
Conversation
Linux 7.1 removed zap_vma_ptes(); pull in the fix from gasket-dkms that switches to zap_special_vma_range() on 7.1+. Fixes NixOS#535359 Assisted-by: Claude Code:claude-opus-5-5
kylehendricks
marked this pull request as ready for review
October 29, 2026 01:23
avlnoir
approved these changes
Oct 29, 2026
avlnoir
left a comment
Member
There was a problem hiding this comment.
Built successfully on x86_64-linux against Linux 7.3, 6.18.59, and 6.12.114. The patch fixes it as expected.
LGTM. Thanks :)
12 of 61 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux 7.1 removed
zap_vma_ptes(), sogasketfails to build on 7.1+:The replacement
zap_vma_range()isn't exported to modules, butzap_special_vma_range()is (EXPORT_SYMBOL_GPL). It requiresVM_PFNMAP | VM_MIXEDMAP, which gasket satisfies since it maps regions withio_remap_pfn_range(). Upstream (google/gasket-driver) is unmaintained, so this pulls in the fix from KyleGospo/gasket-dkms@56597d1, which switches on the kernel version.Built for
linuxPackages_latest(7.3),linuxPackages(6.18) andlinuxPackages_6_12.Fixes #535359
Part of #566956
AI disclosure: Claude Code was used to locate the upstream fix, write the change, run the test builds and draft this description. I reviewed the change and the builds.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.🤖 Generated with Claude Code