]> 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>
Tue, 29 Apr 2025 12:55:17 +0000 (13:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:10 +0000 (08:24 +0200)
commit73591041a551cfe390861bf30067d3d2810b82ad
tree135f52b0c4bdb78f1839e8a058a28f33b0272eee
parent854da0ed067165be7d1b5bd843b58c4ec897e9bd
arm64: proton-pack: Expose whether the branchy loop k value

commit a1152be30a043d2d4dcb1683415f328bf3c51978 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/spectre.h
arch/arm64/kernel/proton-pack.c