1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-07 14:43:40 +01:00

spectre-meltdown-checker.sh: fix typos

This commit is contained in:
Erik Zettel 2019-09-19 12:06:04 +02:00 committed by Stéphane Lesimple
parent f835f4d07d
commit d57fecec91

View File

@ -1782,7 +1782,7 @@ if [ "$opt_live" = 1 ]; then
if [ ! -e "$opt_kernel" ]; then if [ ! -e "$opt_kernel" ]; then
# Fedora: # Fedora:
[ -e "/lib/modules/$(uname -r)/vmlinuz" ] && opt_kernel="/lib/modules/$(uname -r)/vmlinuz" [ -e "/lib/modules/$(uname -r)/vmlinuz" ] && opt_kernel="/lib/modules/$(uname -r)/vmlinuz"
# Slackare: # Slackware:
[ -e "/boot/vmlinuz" ] && opt_kernel="/boot/vmlinuz" [ -e "/boot/vmlinuz" ] && opt_kernel="/boot/vmlinuz"
# Arch aarch64: # Arch aarch64:
[ -e "/boot/Image" ] && opt_kernel="/boot/Image" [ -e "/boot/Image" ] && opt_kernel="/boot/Image"
@ -1908,7 +1908,7 @@ else
if [ "$opt_live" = 1 ]; then if [ "$opt_live" = 1 ]; then
_verbose "Kernel image is \033[35m$kernel_version" _verbose "Kernel image is \033[35m$kernel_version"
if ! echo "$kernel_version" | grep -qF "$(uname -r)"; then if ! echo "$kernel_version" | grep -qF "$(uname -r)"; then
_warn "Possible disrepancy between your running kernel '$(uname -r)' and the image '$kernel_version' we found ($opt_kernel), results might be incorrect" _warn "Possible discrepancy between your running kernel '$(uname -r)' and the image '$kernel_version' we found ($opt_kernel), results might be incorrect"
fi fi
else else
_info "Kernel image is \033[35m$kernel_version" _info "Kernel image is \033[35m$kernel_version"
@ -2461,7 +2461,7 @@ check_cpu()
fi fi
if is_intel; then if is_intel; then
_info " * Microarchitecture Data Sampling" _info " * Microarchitectural Data Sampling"
_info_nol " * VERW instruction is available: " _info_nol " * VERW instruction is available: "
read_cpuid 0x7 $EDX 10 1 1; ret=$? read_cpuid 0x7 $EDX 10 1 1; ret=$?
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
@ -4071,7 +4071,7 @@ check_CVE_2018_3620_linux()
# if msg is empty, sysfs check didn't fill it, rely on our own test # if msg is empty, sysfs check didn't fill it, rely on our own test
if [ "$pteinv_supported" = 1 ]; then if [ "$pteinv_supported" = 1 ]; then
if [ "$pteinv_active" = 1 ] || [ "$opt_live" != 1 ]; then if [ "$pteinv_active" = 1 ] || [ "$opt_live" != 1 ]; then
pvulnstatus $cve OK "PTE inversion mitigates the vunerability" pvulnstatus $cve OK "PTE inversion mitigates the vulnerability"
else else
pvulnstatus $cve VULN "Your kernel supports PTE inversion but it doesn't seem to be enabled" pvulnstatus $cve VULN "Your kernel supports PTE inversion but it doesn't seem to be enabled"
fi fi