mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2026-05-04 14:33:00 +02:00
enh: factorize is_arch_kernel
This commit is contained in:
@@ -903,7 +903,7 @@ check_CVE_2017_5715_linux() {
|
||||
# ARM branch predictor hardening (unchanged)
|
||||
if [ -n "$bp_harden" ]; then
|
||||
pvulnstatus "$cve" OK "Branch predictor hardening mitigates the vulnerability"
|
||||
elif [ -z "$bp_harden" ] && [ "$cpu_vendor" = ARM ]; then
|
||||
elif [ -z "$bp_harden" ] && is_arm64_kernel; then
|
||||
pvulnstatus "$cve" VULN "Branch predictor hardening is needed to mitigate the vulnerability"
|
||||
explain "Your kernel has not been compiled with the CONFIG_UNMAP_KERNEL_AT_EL0 option, recompile it with this option enabled."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user