arm64: proton-pack: Expose whether the branchy loop k value
authorJames Morse <james.morse@arm.com>
Tue, 29 Apr 2025 12:55:17 +0000 (13:55 +0100)
committerJames Morse <james.morse@arm.com>
Thu, 8 May 2025 14:28:35 +0000 (15:28 +0100)
commita1152be30a043d2d4dcb1683415f328bf3c51978
tree62f97f51291185f81d88ccc1c9879f112d5eb736
parente7956c92f396a44eeeb6eaf7a5b5e1ad24db6748
arm64: proton-pack: Expose whether the branchy loop k value

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>
arch/arm64/include/asm/spectre.h
arch/arm64/kernel/proton-pack.c