Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Segher Boessenkool
On Wed, Sep 26, 2018 at 11:41:26AM +0200, Christophe LEROY wrote: > Le 26/09/2018 à 11:28, Segher Boessenkool a écrit : > >On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: > >>Segher, any idea about this problem ? > > > arch/powerpc/platforms/powermac/bootx_init.o: In function

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Christophe LEROY
Le 26/09/2018 à 13:50, Michael Ellerman a écrit : Christophe LEROY writes: Le 26/09/2018 à 11:28, Segher Boessenkool a écrit : On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: Segher, any idea about this problem ? arch/powerpc/platforms/powermac/bootx_init.o: In functio

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Michael Ellerman
Christophe LEROY writes: > Le 26/09/2018 à 11:28, Segher Boessenkool a écrit : >> On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: >>> Segher, any idea about this problem ? >> > arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': > /var/lib/jenkins-s

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Christophe LEROY
Le 26/09/2018 à 11:28, Segher Boessenkool a écrit : On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: Segher, any idea about this problem ? arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': /var/lib/jenkins-slave/workspace/snowpatch/snowpatch-linux-

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Segher Boessenkool
On Wed, Sep 26, 2018 at 09:58:30AM +0200, Christophe LEROY wrote: > Segher, any idea about this problem ? > >>arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': > >>/var/lib/jenkins-slave/workspace/snowpatch/snowpatch-linux- > >>sparse/linux/arch/powerpc/platforms/powermac/b

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Christophe LEROY
Segher, any idea about this problem ? Christophe Le 26/09/2018 à 09:05, Russell Currey a écrit : On Tue, 2018-09-25 at 17:56 +0200, Christophe LEROY wrote: Snowpatch reports failure on pmac32_defconfig, as follows: arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': /var

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-26 Thread Russell Currey
On Tue, 2018-09-25 at 17:56 +0200, Christophe LEROY wrote: > Snowpatch reports failure on pmac32_defconfig, as follows: > > arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': > /var/lib/jenkins-slave/workspace/snowpatch/snowpatch-linux- > sparse/linux/arch/powerpc/platforms/

Re: [PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-25 Thread Christophe LEROY
Snowpatch reports failure on pmac32_defconfig, as follows: arch/powerpc/platforms/powermac/bootx_init.o: In function `bootx_printf': /var/lib/jenkins-slave/workspace/snowpatch/snowpatch-linux-sparse/linux/arch/powerpc/platforms/powermac/bootx_init.c:88: undefined reference to `__stack_chk_fail_l

[PATCH v3 2/2] powerpc/64: add stack protector support

2018-09-24 Thread Christophe Leroy
On PPC64, as register r13 points to the paca_struct at all time, this patch adds a copy of the canary there, which is copied at task_switch. That new canary is then used by using the following GCC options: -mstack-protector-guard=tls -mstack-protector-guard-reg=r13 -mstack-protector-guard-offset=of