Shmat MacOS Issue #236
Unanswered
xpcmdshell
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which versions of MacOS has LibAFL been tested on? I'm running into an issue with
shmat
failing. I haven't filed an issue/bug for this, since I wasn't sure yet if it was user error, or if there was a deeper issue in the code itself.I'm using the latest commit on the main branch, and here is my system configuration:
I was interested in the Frida support for some MacOS fuzzing, so I tried out the
frida_libpng
example:Inserting a small debug panic print at that location (
libafl/src/bolts/shmem.rs
) like this:We get the following result:
The documentation for
shmat
states thatEINVAL
can be caused by the following:Interestingly, if we check
ipcs -a
output while the broker is still running but the client has crashed, we see a shm entry with the id that was passed in the crashing code, which I imagine indicates that it's correct:And the 2nd parameter,
shmaddr
, is 0, so shmat should just choose the mapping address. This call seems like it'd be correct to me, maybe someone else has insight into what could be failing? Other info that might be helpful is what the working MacOS environment looks like that the code was tested in.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions