arm64: mte: change ASYNC and SYNC TCF settings into bitfields
authorPeter Collingbourne <pcc@google.com>
Tue, 27 Jul 2021 20:52:56 +0000 (13:52 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Jul 2021 17:33:43 +0000 (18:33 +0100)
commit433c38f40f6a81cf3988b9372f2983912737f322
treeb1ff27c9ffcfa0ad06e5b020f6a5557a70d1d30f
parent638982a03fbcdcda9bcb97b62ceec2d4a0f88162
arm64: mte: change ASYNC and SYNC TCF settings into bitfields

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@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210727205300.2554659-3-pcc@google.com
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/processor.h
arch/arm64/kernel/mte.c
include/uapi/linux/prctl.h