]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm64/sysreg: Update PIE permission encodings
authorShiqi Liu <shiqiliu@hust.edu.cn>
Sun, 21 Apr 2024 06:33:28 +0000 (14:33 +0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:26 +0000 (16:27 +0200)
commit1ef9f584a4251e6fe7cc2a82850f2f34c11fec90
tree9966c7721ba408d340e5d058a73c545f25f5942a
parent4421af0bf4375fc54188f86660a0feabc2a3c6af
arm64/sysreg: Update PIE permission encodings

BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 12d712dc8e4f1a30b18f8c3789adfbc07f5eb050 ]

Fix left shift overflow issue when the parameter idx is greater than or
equal to 8 in the calculation of perm in PIRx_ELx_PERM macro.

Fix this by modifying the encoding to use a long integer type.

Signed-off-by: Shiqi Liu <shiqiliu@hust.edu.cn>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240421063328.29710-1-shiqiliu@hust.edu.cn
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm64/include/asm/sysreg.h
tools/arch/arm64/include/asm/sysreg.h