Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple aarch64 fixes #660

Merged
merged 10 commits into from
Jun 4, 2022
Merged

Apple aarch64 fixes #660

merged 10 commits into from
Jun 4, 2022

Conversation

domenukk
Copy link
Member

The libc crate is potentially broken, see rust-lang/libc#2812 leading to a segfault.
Also, aarch64 macOS doesn't support core affinity on a kernel level, so we ignore it, instead of crashing.

(or should we report this error and leave it up to the user? cc @andreafioraldi )

@andreafioraldi
Copy link
Member

A warning is ok imo

@domenukk
Copy link
Member Author

domenukk commented Jun 4, 2022

TODO: The ServedShMem still has issues on aarch64!

@codecov-commenter
Copy link

Codecov Report

Merging #660 (76567c9) into main (e7e82af) will decrease coverage by 0.01%.
The diff coverage is 35.00%.

@@            Coverage Diff             @@
##             main     #660      +/-   ##
==========================================
- Coverage   15.38%   15.37%   -0.02%     
==========================================
  Files         144      144              
  Lines       16852    16860       +8     
==========================================
- Hits         2593     2592       -1     
- Misses      14259    14268       +9     
Impacted Files Coverage Δ
libafl/src/bolts/minibsod.rs 62.50% <ø> (ø)
libafl/src/bolts/os/unix_shmem_server.rs 0.00% <ø> (ø)
libafl/src/bolts/os/unix_signals.rs 38.59% <ø> (ø)
libafl/src/events/llmp.rs 13.41% <0.00%> (-0.09%) ⬇️
libafl/src/executors/command.rs 42.21% <ø> (ø)
libafl/src/lib.rs 27.35% <0.00%> (-1.48%) ⬇️
libafl/src/bolts/core_affinity.rs 48.07% <62.50%> (-1.45%) ⬇️
libafl/src/bolts/llmp.rs 45.11% <100.00%> (ø)
libafl/src/executors/inprocess.rs 20.22% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7e82af...76567c9. Read the comment docs.

@domenukk domenukk merged commit 2e746bf into main Jun 4, 2022
@domenukk domenukk deleted the appleaarch branch June 4, 2022 14:02
khang06 pushed a commit to khang06/LibAFL that referenced this pull request Oct 11, 2022
* Apple aarch64 fixes

* added shmem provider testcase

* added method to not ignore cores, removed deprecated core_affinity api

* cleaned up set_affinity tests

* fixes

* fixes

* more aarch

* apple needs serial tests

* disable testcase for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants