Re: error: kernel-address sanitizer is not supported for this target
From: Philip Li
Date: Tue Apr 07 2026 - 08:32:22 EST
On Tue, Apr 07, 2026 at 08:30:55AM +0000, Alice Ryhl wrote:
> On Tue, Apr 07, 2026 at 11:58:00AM +0800, kernel test robot wrote:
> > Hi Christian,
> >
> > FYI, the error/warning still remains.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 3aae9383f42f687221c011d7ee87529398e826b3
> > commit: ccb8ce526807fcbd4578d6619100d8ec48769ea8 ARM: 9441/1: rust: Enable Rust support for ARMv7
> > date: 1 year ago
> > config: arm-randconfig-r061-20260405 (https://download.01.org/0day-ci/archive/20260405/202604051027.NPt0H2Dy-lkp@xxxxxxxxx/config)
> > compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project c80443cd37b2e2788cba67ffa180a6331e5f0791)
> > rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260405/202604051027.NPt0H2Dy-lkp@xxxxxxxxx/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Fixes: ccb8ce526807 ("ARM: 9441/1: rust: Enable Rust support for ARMv7")
> > | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202604051027.NPt0H2Dy-lkp@xxxxxxxxx/
> >
> > All errors (new ones prefixed by >>):
> >
> > scripts/dtc/dtc-lexer.lex.c:630:12: warning: variable 'dts_version' set but not used [-Wunused-but-set-global]
> > 630 | static int dts_version = 1;
> > | ^
> > 1 warning generated.
> > scripts/sorttable.c:399:12: warning: variable 'long_size' set but not used [-Wunused-but-set-global]
> > 399 | static int long_size;
> > | ^
> > 1 warning generated.
> > In file included from <built-in>:3:
> > In file included from include/linux/compiler_types.h:171:
> > include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
> > 28 | #define __SANITIZE_ADDRESS__
> > | ^
> > <built-in>:367:9: note: previous definition is here
> > 367 | #define __SANITIZE_ADDRESS__ 1
> > | ^
> > >> error: kernel-address sanitizer is not supported for this target
>
> Like [1], this would probably be fixed by moving away from the linux
> target, as kernel-address is a bare-metal only sanitizer.
Thanks for the info, I will configure the bot to avoid reporting this commit again.
>
> [1]: https://lore.kernel.org/all/acUGAsjYvNvTEO92@xxxxxxxxxx/
>