projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea3488
)
Add the X86_KERNEL_IBT check
author
Alexander Popov
<alex.popov@linux.com>
Sun, 28 May 2023 22:56:14 +0000
(
01:56
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sun, 28 May 2023 22:56:14 +0000
(
01:56
+0300)
Now it's enabled by default for X86_64.
kconfig_hardened_check/checks.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/checks.py
b/kconfig_hardened_check/checks.py
index ab25afa41b00d6b179a0174e903fc35560fef780..ba29e2db76751649477c11124621e900ce7c6f8a 100644
(file)
--- a/
kconfig_hardened_check/checks.py
+++ b/
kconfig_hardened_check/checks.py
@@
-116,6
+116,7
@@
def add_kconfig_checks(l, arch):
if arch == 'X86_64':
l += [KconfigCheck('self_protection', 'defconfig', 'PAGE_TABLE_ISOLATION', 'y')]
l += [KconfigCheck('self_protection', 'defconfig', 'RANDOMIZE_MEMORY', 'y')]
+ l += [KconfigCheck('self_protection', 'defconfig', 'X86_KERNEL_IBT', 'y')]
l += [AND(KconfigCheck('self_protection', 'defconfig', 'INTEL_IOMMU', 'y'),
iommu_support_is_set)]
l += [AND(KconfigCheck('self_protection', 'defconfig', 'AMD_IOMMU', 'y'),