diff options
| author | James Morse <[email protected]> | 2024-08-19 13:15:53 +0000 |
|---|---|---|
| committer | James Morse <[email protected]> | 2025-05-08 14:28:35 +0000 |
| commit | e7956c92f396a44eeeb6eaf7a5b5e1ad24db6748 (patch) | |
| tree | a99b3aedea743ec12f0fe1d56309870fe506ec8b /net/unix/af_unix.c | |
| parent | arm64: insn: Add support for encoding DSB (diff) | |
| download | kernel-e7956c92f396a44eeeb6eaf7a5b5e1ad24db6748.tar.gz kernel-e7956c92f396a44eeeb6eaf7a5b5e1ad24db6748.zip | |
arm64: proton-pack: Expose whether the platform is mitigated by firmware
is_spectre_bhb_fw_affected() allows the caller to determine if the CPU
is known to need a firmware mitigation. CPUs are either on the list
of CPUs we know about, or firmware has been queried and reported that
the platform is affected - and mitigated by firmware.
This helper is not useful to determine if the platform is mitigated
by firmware. A CPU could be on the know list, but the firmware may
not be implemented. Its affected but not mitigated.
spectre_bhb_enable_mitigation() handles this distinction by checking
the firmware state before enabling the mitigation.
Add a helper to expose this state. This will be used by the BPF JIT
to determine if calling firmware for a mitigation is necessary and
supported.
Signed-off-by: James Morse <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
