arm64: futex.h: Add missing PAN toggling
authorJames Morse <james.morse@arm.com>
Tue, 2 Feb 2016 15:53:59 +0000 (15:53 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 14:56:15 +0000 (22:56 +0800)
commit6ef77fd5962d90de7957ef9eafddd659c7375a4f
tree0003681947d40122da82fc9e429e47e8af681ea1
parent632fd2f00cb569f65adc7d2c67282b70a6af8634
arm64: futex.h: Add missing PAN toggling

futex.h's futex_atomic_cmpxchg_inatomic() does not use the
__futex_atomic_op() macro and needs its own PAN toggling. This was missed
when the feature was implemented.

Fixes: 338d4f49d6f ("arm64: kernel: Add support for Privileged Access Never")
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 811d61e384e24759372bb3f01772f3744b0a8327)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/futex.h