SafeStack on ARM platform

Hi,

I would like to use SafeStack sanitize option on ARM platform. Since Linux libc does not implement such functionality (in opposite to FreeBSD or Android), I need to use SafeStack compiler RT library. Unfortunately I’ve noticed that libclang_rt.safestack is not compiled/built for ARM platform. Looking into cmake file:

“set(ALL_SAFESTACK_SUPPORTED_ARCH ${X86} ${X86_64} ${ARM64} ${MIPS32}”

ARM32 is not there. My question is why? Is it due to some memory consumption reasons?

BTW. If I add ARM32 there, libclang_rt.safestack is built for ARM without problems. Then I can compile some application and run it on the ARM platform, also without any issues (at least with simple apps).

Regards,

Michal

ARM32 is not there. My question is why? Is it due to some memory consumption
reasons?

AFAIK there was no interest, until now. :slight_smile:

BTW. If I add ARM32 there, libclang_rt.safestack is built for ARM without
problems. Then I can compile some application and run it on the ARM
platform, also without any issues (at least with simple apps).

It's all still experimental so, If all the tests pass and are stable,
I have no problems with it being turned on by default.

cheers,
--renato

Hi,

Thanks for the feedback.
Well, I tested it so far with only one application - nginx server and didn't find any issue on ARM platform.
Probably not a final prove, but still some evidence that it is working.

Regards,
Michal