Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-27 Thread Michael Ellerman
Masahiro Yamada writes: > 2018-09-25 10:16 GMT+09:00 Michael Ellerman : >> Christophe LEROY writes: >> >>> Le 24/09/2018 à 14:10, Michael Ellerman a écrit : Christophe Leroy writes: > I'm trying to implement TLS based stack protector in the Linux Kernel. > For that I need to

Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-26 Thread Masahiro Yamada
Hi. 2018-09-25 10:16 GMT+09:00 Michael Ellerman : > Christophe LEROY writes: > >> Le 24/09/2018 à 14:10, Michael Ellerman a écrit : >>> Christophe Leroy writes: >>> I'm trying to implement TLS based stack protector in the Linux Kernel. For that I need to give to GCC the offset at

Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-25 Thread Michael Ellerman
Michael Ellerman writes: > Christophe LEROY writes: >> Le 24/09/2018 à 14:10, Michael Ellerman a écrit : >>> Christophe Leroy writes: I'm trying to implement TLS based stack protector in the Linux Kernel. For that I need to give to GCC the offset at which it will find the canary

Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-24 Thread Michael Ellerman
Christophe LEROY writes: > Le 24/09/2018 à 14:10, Michael Ellerman a écrit : >> Christophe Leroy writes: >> >>> I'm trying to implement TLS based stack protector in the Linux Kernel. >>> For that I need to give to GCC the offset at which it will find the >>> canary (register r2 is pointing to

Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-24 Thread Christophe LEROY
Le 24/09/2018 à 14:10, Michael Ellerman a écrit : Christophe Leroy writes: I'm trying to implement TLS based stack protector in the Linux Kernel. For that I need to give to GCC the offset at which it will find the canary (register r2 is pointing to the current task struct). I have been

Re: How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-24 Thread Michael Ellerman
Christophe Leroy writes: > I'm trying to implement TLS based stack protector in the Linux Kernel. > For that I need to give to GCC the offset at which it will find the > canary (register r2 is pointing to the current task struct). > > I have been able to do it with the below patch, but it only

How to define some additional KBUILD_CFLAGS after building include/generated/asm-offsets.h ?

2018-09-19 Thread Christophe Leroy
I'm trying to implement TLS based stack protector in the Linux Kernel. For that I need to give to GCC the offset at which it will find the canary (register r2 is pointing to the current task struct). I have been able to do it with the below patch, but it only works when