]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: proton-pack: Expose whether the branchy loop k value
authorJames Morse <james.morse@arm.com>
Sat, 7 Jun 2025 15:35:31 +0000 (15:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:37 +0000 (11:05 +0100)
commitfc061c32e32709e139e7af963e2fbe88683154e1
tree5264b070d3a2b3189845bf70496d429b95cb64f6
parent005f3b7bd3787a2c246f08b7190aa3289378e1dd
arm64: proton-pack: Expose whether the branchy loop k value

[ Upstream commit a1152be30a043d2d4dcb1683415f328bf3c51978 ]

Add a helper to expose the k value of the branchy loop. This is needed
by the BPF JIT to generate the mitigation sequence in BPF programs.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/spectre.h
arch/arm64/kernel/proton-pack.c