mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2026-04-03 13:47:08 +02:00
chore: add proper header to all src/vulns/* files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# vim: set ts=4 sw=4 sts=4 et:
|
||||
##################
|
||||
# MELTDOWN SECTION
|
||||
###############################
|
||||
# CVE-2017-5754, Meltdown, Rogue Data Cache Load
|
||||
|
||||
# no security impact but give a hint to the user in verbose mode
|
||||
# about PCID/INVPCID cpuid features that must be present to avoid
|
||||
@@ -40,12 +40,10 @@ pti_performance_check() {
|
||||
fi
|
||||
}
|
||||
|
||||
# CVE-2017-5754 Meltdown (rogue data cache load) - entry point
|
||||
check_CVE_2017_5754() {
|
||||
check_cve 'CVE-2017-5754'
|
||||
}
|
||||
|
||||
# CVE-2017-5754 Meltdown (rogue data cache load) - Linux mitigation check
|
||||
check_CVE_2017_5754_linux() {
|
||||
local status sys_interface_available msg kpti_support kpti_can_tell kpti_enabled dmesg_grep pti_xen_pv_domU xen_pv_domo xen_pv_domu explain_text
|
||||
status=UNK
|
||||
@@ -248,7 +246,6 @@ check_CVE_2017_5754_linux() {
|
||||
fi
|
||||
}
|
||||
|
||||
# CVE-2017-5754 Meltdown (rogue data cache load) - BSD mitigation check
|
||||
check_CVE_2017_5754_bsd() {
|
||||
local kpti_enabled
|
||||
pr_info_nol "* Kernel supports Page Table Isolation (PTI): "
|
||||
|
||||
Reference in New Issue
Block a user