linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
@ 2024-07-15 19:28 Masahiro Yamada
  2024-07-16  4:19 ` Anshuman Khandual
  2024-07-23 15:46 ` Will Deacon
  0 siblings, 2 replies; 3+ messages in thread
From: Masahiro Yamada @ 2024-07-15 19:28 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, linux-arm-kernel
  Cc: linux-kernel, Masahiro Yamada, Randy Dunlap, Mark Rutland

Since commit 0383808e4d99 ("arm64: kasan: Reduce minimum shadow
alignment and enable 5 level paging"), HAVE_ARCH_KASAN is always 'y'.

The condition 'if HAVE_ARCH_KASAN' is always met.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---

Changes in v2:
 - update description
 - add reviewed-by and acked-by

 arch/arm64/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index c87d16b12e9b..d37cbfc3031e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -167,9 +167,9 @@ config ARM64
 	select HAVE_ARCH_JUMP_LABEL
 	select HAVE_ARCH_JUMP_LABEL_RELATIVE
 	select HAVE_ARCH_KASAN
-	select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
-	select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
-	select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
+	select HAVE_ARCH_KASAN_VMALLOC
+	select HAVE_ARCH_KASAN_SW_TAGS
+	select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
 	# Some instrumentation may be unsound, hence EXPERT
 	select HAVE_ARCH_KCSAN if EXPERT
 	select HAVE_ARCH_KFENCE
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
  2024-07-15 19:28 [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
@ 2024-07-16  4:19 ` Anshuman Khandual
  2024-07-23 15:46 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Anshuman Khandual @ 2024-07-16  4:19 UTC (permalink / raw)
  To: Masahiro Yamada, Catalin Marinas, Will Deacon, linux-arm-kernel
  Cc: linux-kernel, Randy Dunlap, Mark Rutland



On 7/16/24 00:58, Masahiro Yamada wrote:
> Since commit 0383808e4d99 ("arm64: kasan: Reduce minimum shadow
> alignment and enable 5 level paging"), HAVE_ARCH_KASAN is always 'y'.
> 
> The condition 'if HAVE_ARCH_KASAN' is always met.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
> Acked-by: Mark Rutland <mark.rutland@arm.com>

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>

> ---
> 
> Changes in v2:
>  - update description
>  - add reviewed-by and acked-by
> 
>  arch/arm64/Kconfig | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
>  	select HAVE_ARCH_JUMP_LABEL
>  	select HAVE_ARCH_JUMP_LABEL_RELATIVE
>  	select HAVE_ARCH_KASAN
> -	select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> -	select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> -	select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> +	select HAVE_ARCH_KASAN_VMALLOC
> +	select HAVE_ARCH_KASAN_SW_TAGS
> +	select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
>  	# Some instrumentation may be unsound, hence EXPERT
>  	select HAVE_ARCH_KCSAN if EXPERT
>  	select HAVE_ARCH_KFENCE

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
  2024-07-15 19:28 [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
  2024-07-16  4:19 ` Anshuman Khandual
@ 2024-07-23 15:46 ` Will Deacon
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2024-07-23 15:46 UTC (permalink / raw)
  To: Catalin Marinas, linux-arm-kernel, Masahiro Yamada
  Cc: kernel-team, Will Deacon, linux-kernel, Randy Dunlap,
	Mark Rutland

On Tue, 16 Jul 2024 04:28:17 +0900, Masahiro Yamada wrote:
> Since commit 0383808e4d99 ("arm64: kasan: Reduce minimum shadow
> alignment and enable 5 level paging"), HAVE_ARCH_KASAN is always 'y'.
> 
> The condition 'if HAVE_ARCH_KASAN' is always met.
> 
> 

Applied to arm64 (for-next/core), thanks!

[1/1] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
      https://git.kernel.org/arm64/c/62e2397c2203

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-23 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 19:28 [PATCH v2] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
2024-07-16  4:19 ` Anshuman Khandual
2024-07-23 15:46 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).