mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2024-11-07 06:33:38 +01:00
fix(mds): ARM and CAVIUM are not thought to be vulnerable
This commit is contained in:
parent
ae56ec0bc5
commit
5788cec18b
@ -325,6 +325,14 @@ is_cpu_vulnerable()
|
|||||||
variant_mlpds=''
|
variant_mlpds=''
|
||||||
variant_mdsum=''
|
variant_mdsum=''
|
||||||
|
|
||||||
|
if is_cpu_mds_free; then
|
||||||
|
[ -z "$variant_msbds" ] && variant_msbds=immune
|
||||||
|
[ -z "$variant_mfbds" ] && variant_mfbds=immune
|
||||||
|
[ -z "$variant_mlpds" ] && variant_mlpds=immune
|
||||||
|
[ -z "$variant_mdsum" ] && variant_mdsum=immune
|
||||||
|
_debug "is_cpu_vulnerable: cpu not affected by Microarchitectural Data Sampling"
|
||||||
|
fi
|
||||||
|
|
||||||
if is_cpu_specex_free; then
|
if is_cpu_specex_free; then
|
||||||
variant1=immune
|
variant1=immune
|
||||||
variant2=immune
|
variant2=immune
|
||||||
@ -365,13 +373,6 @@ is_cpu_vulnerable()
|
|||||||
[ -z "$variant4" ] && variant4=immune
|
[ -z "$variant4" ] && variant4=immune
|
||||||
_debug "is_cpu_vulnerable: cpu not affected by speculative store bypass so not vuln to variant4"
|
_debug "is_cpu_vulnerable: cpu not affected by speculative store bypass so not vuln to variant4"
|
||||||
fi
|
fi
|
||||||
if is_cpu_mds_free; then
|
|
||||||
[ -z "$variant_msbds" ] && variant_msbds=immune
|
|
||||||
[ -z "$variant_mfbds" ] && variant_mfbds=immune
|
|
||||||
[ -z "$variant_mlpds" ] && variant_mlpds=immune
|
|
||||||
[ -z "$variant_mdsum" ] && variant_mdsum=immune
|
|
||||||
_debug "is_cpu_vulnerable: cpu not affected by Microarchitectural Data Sampling"
|
|
||||||
fi
|
|
||||||
# variant 4a for xeon phi
|
# variant 4a for xeon phi
|
||||||
if [ "$cpu_family" = 6 ]; then
|
if [ "$cpu_family" = 6 ]; then
|
||||||
if [ "$cpu_model" = "$INTEL_FAM6_XEON_PHI_KNL" ] || [ "$cpu_model" = "$INTEL_FAM6_XEON_PHI_KNM" ]; then
|
if [ "$cpu_model" = "$INTEL_FAM6_XEON_PHI_KNL" ] || [ "$cpu_model" = "$INTEL_FAM6_XEON_PHI_KNM" ]; then
|
||||||
@ -420,13 +421,6 @@ is_cpu_vulnerable()
|
|||||||
[ -z "$variant4" ] && variant4=immune
|
[ -z "$variant4" ] && variant4=immune
|
||||||
_debug "is_cpu_vulnerable: cpu not affected by speculative store bypass so not vuln to variant4"
|
_debug "is_cpu_vulnerable: cpu not affected by speculative store bypass so not vuln to variant4"
|
||||||
fi
|
fi
|
||||||
if is_cpu_mds_free; then
|
|
||||||
[ -z "$variant_msbds" ] && variant_msbds=immune
|
|
||||||
[ -z "$variant_mfbds" ] && variant_mfbds=immune
|
|
||||||
[ -z "$variant_mlpds" ] && variant_mlpds=immune
|
|
||||||
[ -z "$variant_mdsum" ] && variant_mdsum=immune
|
|
||||||
_debug "is_cpu_vulnerable: cpu not affected by Microarchitectural Data Sampling"
|
|
||||||
fi
|
|
||||||
variantl1tf=immune
|
variantl1tf=immune
|
||||||
elif [ "$cpu_vendor" = CAVIUM ]; then
|
elif [ "$cpu_vendor" = CAVIUM ]; then
|
||||||
variant3=immune
|
variant3=immune
|
||||||
@ -611,12 +605,16 @@ is_cpu_mds_free()
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is_hygon; then
|
if is_hygon; then
|
||||||
return 0
|
return 0
|
||||||
|
elif [ "$cpu_vendor" = CAVIUM ]; then
|
||||||
|
return 0
|
||||||
|
elif [ "$cpu_vendor" = ARM ]; then
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_cpu_ssb_free()
|
is_cpu_ssb_free()
|
||||||
|
Loading…
Reference in New Issue
Block a user