Skip to contentSkip to conversation

why no stack protector for vdso

DISCUSSION Vincenzo Frascino 1 participant 1 message Nov 26, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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_fail will be called if failed.
Maybe the reason is that vdso can not link to __stack_chk_fail of 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