why no stack protector for vdso
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Linfeilong,
sorry for the late reply.
[...]
Quoted 6 lines
Sorry, I can't well understand. As I know, with -fstack-protect a canary is pushed ,
and then checked before return.__stack_chk_failwill be called if failed.
Maybe the reason is that vdso can not link to__stack_chk_failof glibc as it is compiled fully in kernel , so we should keep -fno-stack-protector?
The vdso library is self-contained and does not link against any other library. -fstack-protector as you correctly pointed out would require external symbols.
Quoted 11 lines
Quoted 10 lines
Maybe this is still true? (Although this was on
x86_32)AFAICT, the option was added at this point:
https://lore.kernel.org/linux-arm-
kernel/CAASgrz0QfSfnggAf2C0bS7wXbdoPYtVHRhK0UfvT8pykjCowMA@mai l.gmail.com/Regards.
Signature · 2 lines
Regards, Vincenzo
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel