lkml.org 
[lkml]   [2018]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2018-09-17 18:50    [W:0.058 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site