]> www.infradead.org Git - users/hch/block.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)
committerWill Deacon <will@kernel.org>
Sun, 28 Apr 2024 07:28:27 +0000 (08:28 +0100)
commit12d712dc8e4f1a30b18f8c3789adfbc07f5eb050
tree5536cda0155aa7d8322bcc6e01abc59178afaf60
parentf4d9d9dcc70b96b5e5d7801bd5fbf8491b07b13d
arm64/sysreg: Update PIE permission encodings

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>
arch/arm64/include/asm/sysreg.h
tools/arch/arm64/include/asm/sysreg.h