Closed buptsseGJ closed 5 years ago
We only support x86 and x86-64 for now for some targets which require hacks written in assembly. You can build other targets.
https://github.com/zardus/preeny/blob/5d544d63e7ab363c7c465c6fd36f86b2bb41f85c/src/setcanary.c#L5
https://github.com/zardus/preeny/blob/5d544d63e7ab363c7c465c6fd36f86b2bb41f85c/src/setcanary.c#L11
You're welcome to PR.
Some of the preloads won't compile on some architectures or platforms, but you can use make -i to just skip them.
On Tue, Mar 19, 2019 at 6:19 PM Sudhakar Verma notifications@github.com wrote:
We only support x86 and x86-64 for now.
https://github.com/zardus/preeny/blob/5d544d63e7ab363c7c465c6fd36f86b2bb41f85c/src/setcanary.c#L5
https://github.com/zardus/preeny/blob/5d544d63e7ab363c7c465c6fd36f86b2bb41f85c/src/setcanary.c#L11
You're welcome to PR.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zardus/preeny/issues/54#issuecomment-474288158, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSzl-7LMO95F2nbyG5r5oTkhg-4wY4Aks5vYLnCgaJpZM4bDG0l .
@zardus I have implemented canary read for arm. Are you planning on supporting arm?
Yeah! Like I said, we should support every arch in general, just some preloads are harder to support than others. Could you contribute your arm support?
On Fri, Mar 22, 2019 at 5:35 PM Sudhakar Verma notifications@github.com wrote:
@zardus https://github.com/zardus I have implemented canary read/write for arm. Are you planning on supporting arm?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/zardus/preeny/issues/54#issuecomment-475552679, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSzl7wPRO5_P8OIF5IVfQ5xEkUACfa7ks5vZKP5gaJpZM4bDG0l .
For setcanary its a little tricky as the page where __stack_chk_guard
is mapped only r
in the latest version I tested with on raspberry pi. Need to map it rw
, write cookie and then map it to r
back. If that's ok, I'll add a PR for that. Seems too intrusive to me.
I think intrusive is better than unsupported :-)
Thanks for sorting this out!
Hello, I want to compile it on my raspberrypi device, but it causes an error which doesn't occur on my X86_64 computer. The gcc is arm-linux-gnueabihf with 6.3.0 version. The error is as follows:
Look forward for your reply. Thank you!