All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: mm-commits@vger.kernel.org, vincenzo.frascino@arm.com,
	glider@google.com, aryabinin@virtuozzo.com,
	andreyknvl@google.com, catalin.marinas@arm.com
Subject: [folded-merged] arm64-mte-add-in-kernel-tag-fault-handler-fix.patch removed from -mm tree
Date: Fri, 18 Dec 2020 12:08:15 -0800	[thread overview]
Message-ID: <20201218200815.lgw1x%akpm@linux-foundation.org> (raw)


The patch titled
     Subject: arm64: mte: ensure CONFIG_ARM64_PAN is enabled with MTE
has been removed from the -mm tree.  Its filename was
     arm64-mte-add-in-kernel-tag-fault-handler-fix.patch

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

------------------------------------------------------
From: Catalin Marinas <catalin.marinas@arm.com>
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.

Link: https://lkml.kernel.org/r/20201203102628.GB2224@gaia
Fixes: 89b94df9dfb1 ("arm64: mte: Kconfig entry")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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
 	select ARCH_USES_HIGH_VMA_FLAGS
 	help
 	  Memory Tagging (part of the ARMv8.5 Extensions) provides
_

Patches currently in -mm which might be from catalin.marinas@arm.com are

arm64-mte-add-in-kernel-tag-fault-handler.patch


                 reply	other threads:[~2020-12-18 20:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201218200815.lgw1x%akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=andreyknvl@google.com \
    --cc=aryabinin@virtuozzo.com \
    --cc=catalin.marinas@arm.com \
    --cc=glider@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=vincenzo.frascino@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.