WIP: ZTS KASAN NixOS integration test#17936
Draft
jpds wants to merge 2 commits intoopenzfs:masterfrom
Draft
Conversation
63e09df to
4dcf2fa
Compare
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.
Continuing from @behlendorf's comment here - this PR integrates a NixOS based integration test to automate ZTS on a KASAN-enabled kernel based on the NixOS kernel.
Description
This is an attempt to automate kernel building + VM creation for #12226.
The derivation package definition is based off the
nixpkgsZFS package definition and interestingly the NixOS default kernel definition already ships with DEBUG enabled.Curent status:
To build the package / run the tests, simply fetch and run on a KVM-enabled machine with Nix installed:
I haven't tried this on a non-NixOS machine, but it should work. Disabling / enabling KASAN is simply a case of commenting out the
boot.kernelPatches/boot.kernelParamsintest.nix.If someone could help unblock me with the module loading error, I can look into integrating with a GitHub workflow + maybe a Nix binary cache such as https://www.cachix.org/ as next steps?
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by.