Peter Collingbourne 0e3847acca arm64: mte: fix prctl(PR_GET_TAGGED_ADDR_CTRL) if TCF0=NONE
[ Upstream commit 929c1f3384d7e5cd319d03242cb925c3f91236f7 ]

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: af5ce95282dc ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:33 +01:00
..
2020-10-23 09:46:16 -07:00
2019-07-08 09:54:55 -07:00
2020-10-28 13:38:36 +00:00
2020-06-01 15:18:27 -07:00
2020-10-30 13:25:09 -04:00
2020-09-07 15:00:52 +01:00
2020-05-01 16:28:59 +01:00
2020-12-02 12:27:37 -08:00
2019-04-23 18:01:57 +01:00