[PATCH 2/2] powerpc/32: stack protector: change the canary value per task

Segher Boessenkool segher at kernel.crashing.org
Tue Sep 18 02:49:11 AEST 2018


On Mon, Sep 17, 2018 at 12:15:08PM +0000, Christophe Leroy wrote:
>  I would have liked to use -mstack-protector-guard=tls -mstack-protector-guard-reg=r2
>  -mstack-protector-guard-offset=offsetof(struct task_struct, stack_canary) but I have
>  not found how set the value of offsetof(struct task_struct, stack_canary) in Makefile.

By far the easiest is to have the canary at a fixed offset from r2.


Segher


More information about the Linuxppc-dev mailing list