Re: [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Arnd Bergmann
On Wed, May 27, 2020 at 8:35 PM 'Fangrui Song' via Clang Built Linux wrote: > On 2020-05-27, Arnd Bergmann wrote: > >On Wed, May 27, 2020 at 7:28 PM 'Nick Desaulniers' via Clang Built > >Linux wrote: > >> > >> On Wed, May 27, 2020 at 8:24 AM Mark Rutland wrote: > >> > > >> > On Wed, May 27, 2020

Re: [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Fangrui Song
On 2020-05-27, Arnd Bergmann wrote: On Wed, May 27, 2020 at 7:28 PM 'Nick Desaulniers' via Clang Built Linux wrote: On Wed, May 27, 2020 at 8:24 AM Mark Rutland wrote: > > On Wed, May 27, 2020 at 03:39:46PM +0200, Arnd Bergmann wrote: > > clang-11 and earlier do not support -fsanitize=shadow-

Re: [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Arnd Bergmann
On Wed, May 27, 2020 at 7:28 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Wed, May 27, 2020 at 8:24 AM Mark Rutland wrote: > > > > On Wed, May 27, 2020 at 03:39:46PM +0200, Arnd Bergmann wrote: > > > clang-11 and earlier do not support -fsanitize=shadow-call-stack > > > in combinatio

Re: [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Nick Desaulniers
On Wed, May 27, 2020 at 8:24 AM Mark Rutland wrote: > > On Wed, May 27, 2020 at 03:39:46PM +0200, Arnd Bergmann wrote: > > clang-11 and earlier do not support -fsanitize=shadow-call-stack > > in combination with -mbig-endian, but the Kconfig check does not > > pass the endianess flag, so building

Re: [PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Mark Rutland
On Wed, May 27, 2020 at 03:39:46PM +0200, Arnd Bergmann wrote: > clang-11 and earlier do not support -fsanitize=shadow-call-stack > in combination with -mbig-endian, but the Kconfig check does not > pass the endianess flag, so building a big-endian kernel with > this fails at build time: > > clang

[PATCH] arm64: disable -fsanitize=shadow-call-stack for big-endian

2020-05-27 Thread Arnd Bergmann
clang-11 and earlier do not support -fsanitize=shadow-call-stack in combination with -mbig-endian, but the Kconfig check does not pass the endianess flag, so building a big-endian kernel with this fails at build time: clang: error: unsupported option '-fsanitize=shadow-call-stack' for target 'aar