]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: fix prctl(PR_GET_TAGGED_ADDR_CTRL) if TCF0=NONE
authorPeter Collingbourne <pcc@google.com>
Thu, 3 Dec 2020 07:51:10 +0000 (23:51 -0800)
committerWill Deacon <will@kernel.org>
Thu, 3 Dec 2020 18:17:35 +0000 (18:17 +0000)
commit186f6b83bded91beb09bd86bec33588d7abc04e0
treeba11b43013151578ca0c5ac79a342e01e9a6344f
parent096ebcf98f4212baba28e0b2afdc69d9a0cade6b
arm64: mte: fix prctl(PR_GET_TAGGED_ADDR_CTRL) if TCF0=NONE

Previously we were always returning a tag inclusion mask of zero via
PR_GET_TAGGED_ADDR_CTRL if TCF0 was set to NONE. Fix it by making
the code for the NONE case match the others.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Link: https://linux-review.googlesource.com/id/Iefbea66cf7d2b4c80b82f9639b9ea7f33f7fac53
Fixes: d58e8142e5f3 ("arm64: mte: Allow user control of the generated random tags via prctl()")
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20201203075110.2781021-1-pcc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/mte.c