arm64: Change the tagged_addr sysctl control semantics to only prevent the opt-in
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 15 Aug 2019 15:44:01 +0000 (16:44 +0100)
committerWill Deacon <will@kernel.org>
Tue, 20 Aug 2019 17:18:10 +0000 (18:18 +0100)
commit413235fcedc7f61e925fe9818bc3f5eff8ad2494
tree0c863fbe6a6cdb9cee727f52e5ae8cee565751ef
parent3e91ec89f527b9870fe42dcbdb74fd389d123a95
arm64: Change the tagged_addr sysctl control semantics to only prevent the opt-in

First rename the sysctl control to abi.tagged_addr_disabled and make it
default off (zero). When abi.tagged_addr_disabled == 1, only block the
enabling of the TBI ABI via prctl(PR_SET_TAGGED_ADDR_CTRL, PR_TAGGED_ADDR_ENABLE).
Getting the status of the ABI or disabling it is still allowed.

Acked-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/process.c