Messages in this thread | | | Date | Mon, 17 Sep 2018 11:49:11 -0500 | From | Segher Boessenkool <> | Subject | Re: [PATCH 2/2] powerpc/32: stack protector: change the canary value per task |
| |
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
| |