Skip to content

linuxPackages.gasket: fix build with kernel >= 7.1 - #580334

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
kylehendricks:gasket-linux-7.1
Oct 29, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
kylehendricks:gasket-linux-7.1

Conversation

@kylehendricks

@kylehendricks kylehendricks commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Linux 7.1 removed zap_vma_ptes(), so gasket fails to build on 7.1+:

gasket_core.c:923:9: error: implicit declaration of function 'zap_vma_ptes'

The replacement zap_vma_range() isn't exported to modules, but zap_special_vma_range() is (EXPORT_SYMBOL_GPL). It requires VM_PFNMAP | VM_MIXEDMAP, which gasket satisfies since it maps regions with io_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) and linuxPackages_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

🤖 Generated with Claude Code

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
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs labels Oct 29, 2026
@kylehendricks
kylehendricks marked this pull request as ready for review October 29, 2026 01:23
@nixpkgs-ci nixpkgs-ci Bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 29, 2026

@avlnoir avlnoir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 :)

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 29, 2026
@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 29, 2026
Merged via the queue into NixOS:master with commit 8b5c069 Oct 29, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gasket: fails to build with Linux 7.1 (zap_vma_ptes removed)

3 participants