[PATCH v10 2/5] arm64: mte: change ASYNC and SYNC TCF settings into bitfields
Will Deacon
will at kernel.org
Wed Jul 14 04:02:10 PDT 2021
On Tue, Jul 13, 2021 at 04:47:58PM -0700, Peter Collingbourne wrote:
> Allow the user program to specify both ASYNC and SYNC TCF modes by
> repurposing the existing constants as bitfields. This will allow the
> kernel to select one of the modes on behalf of the user program. With
> this patch the kernel will always select async mode, but a subsequent
> patch will make this configurable.
>
> Link: https://linux-review.googlesource.com/id/Icc5923c85a8ea284588cc399ae74fd19ec291230
> Signed-off-by: Peter Collingbourne <pcc at google.com>
> Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
> ---
> v9:
> - make mte_update_sctlr_user static
>
> arch/arm64/include/asm/processor.h | 3 ++
> arch/arm64/kernel/mte.c | 70 ++++++++++++------------------
> include/uapi/linux/prctl.h | 11 ++---
> 3 files changed, 37 insertions(+), 47 deletions(-)
Acked-by: Will Deacon <will at kernel.org>
Will
More information about the linux-arm-kernel
mailing list