]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: uaccess: remove redundant PAN toggling
authorMark Rutland <mark.rutland@arm.com>
Wed, 2 Dec 2020 13:15:57 +0000 (13:15 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 2 Dec 2020 19:49:11 +0000 (19:49 +0000)
commit55092b6473cf15cd67ac2243911d51fa8e4d5132
tree5545af2e5ab25dfc021e79ab6ab140a7d7ad4b4f
parent309a29bf5bf4e9c28295d3d6937753d80cb841da
arm64: uaccess: remove redundant PAN toggling

Some code (e.g. futex) needs to make privileged accesses to userspace
memory, and uses uaccess_{enable,disable}_privileged() in order to
permit this. All other uaccess primitives use LDTR/STTR, and never need
to toggle PAN.

Remove the redundant PAN toggling.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201202131558.39270-12-mark.rutland@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/uaccess.h
arch/arm64/kernel/cpufeature.c