Re: [PATCH] kasan: fix hwasan build for gcc

2021-03-30 Thread Andrey Konovalov
On Tue, Mar 23, 2021 at 1:41 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes > possible to enable CONFIG_KASAN_SW_TAGS. > > Unfortunately this fails to build at the moment, because the > corresponding command line arguments

Re: [PATCH] kasan: fix hwasan build for gcc

2021-03-24 Thread Andrew Morton
On Tue, 23 Mar 2021 13:51:32 +0100 Marco Elver wrote: > On Tue, 23 Mar 2021 at 13:41, Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes > > possible to enable CONFIG_KASAN_SW_TAGS. > > > > Unfortunately this fails to

Re: [PATCH] kasan: fix hwasan build for gcc

2021-03-23 Thread Marco Elver
On Tue, 23 Mar 2021 at 13:41, Arnd Bergmann wrote: > > From: Arnd Bergmann > > gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes > possible to enable CONFIG_KASAN_SW_TAGS. > > Unfortunately this fails to build at the moment, because the > corresponding command line arguments use

[PATCH] kasan: fix hwasan build for gcc

2021-03-23 Thread Arnd Bergmann
From: Arnd Bergmann gcc-11 adds support for -fsanitize=kernel-hwaddress, so it becomes possible to enable CONFIG_KASAN_SW_TAGS. Unfortunately this fails to build at the moment, because the corresponding command line arguments use llvm specific syntax. Change it to use the cc-param macro