All of
 help / color / mirror / Atom feed
* [folded-merged] arm64-mte-add-in-kernel-tag-fault-handler-fix.patch removed from -mm tree
@ 2020-12-18 20:08 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-12-18 20:08 UTC (permalink / raw)
  To: mm-commits, vincenzo.frascino, glider, aryabinin, andreyknvl,

The patch titled
     Subject: arm64: mte: ensure CONFIG_ARM64_PAN is enabled with MTE
has been removed from the -mm tree.  Its filename was

This patch was dropped because it was folded into arm64-mte-add-in-kernel-tag-fault-handler.patch

From: Catalin Marinas <>
Subject: arm64: mte: ensure CONFIG_ARM64_PAN is enabled with MTE

The uaccess routines like get/put_user() rely on the user TCF0 mode
setting for tag checking.  However, if CONFIG_ARM64_PAN is disabled, these
routines would use the standard LDR/STR instructions and therefore the
kernel TCF mode.  In 5.10, the kernel TCF==0, so no tag checking, but this
will change with the in-kernel MTE support.

Make ARM64_MTE depend on ARM64_PAN.

Fixes: 89b94df9dfb1 ("arm64: mte: Kconfig entry")
Signed-off-by: Catalin Marinas <>
Reviewed-by: Vincenzo Frascino <>
Cc: Andrey Konovalov <>
Cc: Alexander Potapenko <>
Cc: Andrey Ryabinin <>
Signed-off-by: Andrew Morton <>

 arch/arm64/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

--- a/arch/arm64/Kconfig~arm64-mte-add-in-kernel-tag-fault-handler-fix
+++ a/arch/arm64/Kconfig
@@ -1650,6 +1650,8 @@ config ARM64_MTE
 	default y
 	depends on ARM64_AS_HAS_MTE && ARM64_TAGGED_ADDR_ABI
 	depends on AS_HAS_ARMV8_5
+	# Required for tag checking in the uaccess routines
+	depends on ARM64_PAN
 	  Memory Tagging (part of the ARMv8.5 Extensions) provides

Patches currently in -mm which might be from are


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-18 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 20:08 [folded-merged] arm64-mte-add-in-kernel-tag-fault-handler-fix.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.