zfs: add wolfzfs port demo.#337
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new zfs/ demo project showing how to integrate OpenZFS (Linux crypto path) with wolfCrypt/wolfSSL in both userspace (libwolfssl.so) and kernelspace (libwolfssl.ko), along with build/test helper scripts and a large OpenZFS patch.
Changes:
- Added build scripts for wolfSSL userspace
.so, wolfSSL kernel module.ko, and patched OpenZFS (“wolfZFS”). - Added test runner scripts for OpenZFS crypto and sanity test suites.
- Added documentation plus an OpenZFS patch (
cd06f79e2_wolfzfs.patch) implementing the wolfCrypt integration.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| zfs/README.md | Documents prerequisites, kernel build, wolfSSL build, patch/apply steps, and test execution. |
| zfs/patches/cd06f79e2_wolfzfs.patch | Large OpenZFS patch replacing ZFS native crypto with wolfCrypt calls. |
| zfs/scripts/zfs/build_wolfzfs | Builds/installs patched OpenZFS against a wolfSSL source tree. |
| zfs/scripts/wolfssl/build_wolfssl_so | Builds/installs userspace libwolfssl.so with wolfZFS options. |
| zfs/scripts/wolfssl/build_wolfssl_ko | Builds/installs kernel libwolfssl.ko against a configured kernel tree. |
| zfs/scripts/test_zfs/run_crypto | Convenience wrapper to run OpenZFS crypto tests. |
| zfs/scripts/test_zfs/run_sanity | Convenience wrapper to run OpenZFS sanity tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I don't think this is correct, because
I'll clean this up.
This is intentional. We're removing the other aes_impl providers, leaving only wolfcrypt. I don't want to break or rewrite higher level test tools/harnesses that call To make this clearer I removed references to other aes_impl providers in |
After carefully reviewing this, I could not find any leaks. E.g. However there is a potential dangling pointer bug in the OpenZFS native code for I also made the |
Description
Add
zfs/project dir for wolfzfs (wolfcrypt OpenZFS integration) demonstration.See readme in
zfs/dir.Requires: