feat: add support for kAFL_hypercall and cpuid for ARM64 architectures#48
Open
kartikangiras wants to merge 1 commit intomorehouse:masterfrom
Open
feat: add support for kAFL_hypercall and cpuid for ARM64 architectures#48kartikangiras wants to merge 1 commit intomorehouse:masterfrom
kartikangiras wants to merge 1 commit intomorehouse:masterfrom
Conversation
Author
|
@morehouse PTAL into this PR, it solves the issue I faced while running the command |
ekzyis
reviewed
Apr 13, 2026
Contributor
ekzyis
left a comment
There was a problem hiding this comment.
Mhh, according to this, nyx only supports x86_64:
It is only available on Linux and is currently restricted to x86_x64 however aarch64 support is in the works (but the host must then run on aarch64 too).
So I am not sure we want to modify nyx.h just to get cargo clippy to run.
Can you try #47 (comment)?
Owner
|
Yeah the project assumes Linux and x86_64 due to Nyx. I'd rather not complicate the code just to enable compilation (and no fuzzing) on an unsupported platform. |
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.
#if defined(__x86_64__) || defined(__i386__))kAFL_hypercall,cpuidmacro, and related functionsfixes #47
Proof Manifests
kartik@Macbook-4 smite % cargo clippy --all-targets --all-features -- -D warnings Compiling version_check v0.9.5 Compiling typenum v1.19.0 Compiling proc-macro2 v1.0.106 Compiling quote v1.0.43 Compiling libc v0.2.180 Compiling unicode-ident v1.0.22 Compiling find-msvc-tools v0.1.6 Compiling shlex v1.3.0 Checking subtle v2.6.1 Checking cfg-if v1.0.4 Compiling bitcoin-io v0.1.4 Compiling thiserror v2.0.18 Compiling cc v1.2.51 Checking bitflags v2.10.0 Checking zeroize v1.8.2 Checking arrayvec v0.7.6 Compiling cfg_aliases v0.2.1 Compiling generic-array v0.14.7 Compiling serde_core v1.0.228 Checking hex-conservative v0.2.2 Compiling nix v0.30.1 Checking opaque-debug v0.3.1 Checking log v0.4.29 Compiling secp256k1-sys v0.11.0 Compiling smite-nyx-sys v0.0.0 (/Users/kartik/summerofbitcoin/smite/smite-nyx-sys) Compiling serde v1.0.228 Compiling syn v2.0.114 Checking cpufeatures v0.2.17 Checking simple_logger v5.1.0 Checking hex v0.4.3 Checking bitcoin_hashes v0.14.1 Compiling rustix v1.1.3 Compiling getrandom v0.3.4 Compiling zmij v1.0.17 Compiling thiserror-impl v2.0.18 Checking crypto-common v0.1.7 Checking block-buffer v0.10.4 Checking digest v0.10.7 Checking inout v0.1.4 Checking universal-hash v0.5.1 Checking poly1305 v0.8.0 Checking cipher v0.4.4 Checking chacha20 v0.9.1 Checking hmac v0.12.1 Checking aead v0.5.2 Checking chacha20poly1305 v0.10.1 Checking hkdf v0.12.4 Checking sha2 v0.10.9 Compiling serde_derive v1.0.228 Checking errno v0.3.14 Compiling serde_json v1.0.149 Checking memchr v2.7.6 warning: smite-nyx-sys@0.0.0: In file included from src/nyx-agent.c:16: warning: smite-nyx-sys@0.0.0: src/nyx.h:354:45: warning: GCC does not allow 'unused' attribute in this position on a function definition [-Wgcc-compat] warning: smite-nyx-sys@0.0.0: 354 | static int is_nyx_vcpu(void) __attribute__((unused)){ warning: smite-nyx-sys@0.0.0: | ^ warning: smite-nyx-sys@0.0.0: src/nyx.h:389:50: warning: GCC does not allow 'unused' attribute in this position on a function definition [-Wgcc-compat] warning: smite-nyx-sys@0.0.0: 389 | static int get_nyx_cpu_type(void) __attribute__((unused)){ warning: smite-nyx-sys@0.0.0: | ^ warning: smite-nyx-sys@0.0.0: 2 warnings generated. Checking fastrand v2.3.0 Checking once_cell v1.21.3 Checking itoa v1.0.17 Checking rand_core v0.10.0 Checking rand v0.10.0 Checking secp256k1 v0.31.1 Checking smite v0.0.0 (/Users/kartik/summerofbitcoin/smite/smite) Checking cobs v0.3.0 Checking tempfile v3.24.0 Checking smite-scenarios v0.0.0 (/Users/kartik/summerofbitcoin/smite/smite-scenarios) Checking postcard v1.1.3 Checking smite-ir v0.0.0 (/Users/kartik/summerofbitcoin/smite/smite-ir) Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.15s