On Wed, Jul 09, 2025 at 04:14:07PM +0530, neeraj.upadh...@kernel.org wrote:
> From: "Paul E. McKenney" <paul...@kernel.org>
> 
> The arm64 architecture requires that KCSAN-enabled kernels be built with
> the CONFIG_EXPERT=y Kconfig option.  This commit therefore causes the
> torture.sh script to provide this option, but only for --kcsan runs on
> arm64 systems.
> 
> Signed-off-by: Paul E. McKenney <paul...@kernel.org>
> Cc: Marco Elver <el...@google.com>
> Cc: Dmitry Vyukov <dvyu...@google.com>
> Cc: Catalin Marinas <catalin.mari...@arm.com>
> Cc: Will Deacon <w...@kernel.org>
> Cc: <kasan-...@googlegroups.com>
> Cc: <linux-arm-ker...@lists.infradead.org>
> Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadh...@kernel.org>
> ---
>  tools/testing/selftests/rcutorture/bin/torture.sh | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/rcutorture/bin/torture.sh 
> b/tools/testing/selftests/rcutorture/bin/torture.sh
> index 25847042e30e..420c551b824b 100755
> --- a/tools/testing/selftests/rcutorture/bin/torture.sh
> +++ b/tools/testing/selftests/rcutorture/bin/torture.sh
> @@ -313,6 +313,13 @@ then
>       do_scftorture=no
>  fi
>  
> +# CONFIG_EXPERT=y is currently required for arm64 KCSAN runs.
> +kcsan_expert=
> +if test "${thisarch}" = aarch64
> +then
> +     kcsan_expert="CONFIG_EXPERT=y"
> +fi

Acked-by: Will Deacon <w...@kernel.org>

Will

Reply via email to