Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
c8652fc9
Commit
c8652fc9
authored
Aug 23, 2019
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add HARDEN_BRANCH_PREDICTOR and HARDEN_EL2_VECTORS
parent
53b9cee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
kconfig-hardened-check.py
kconfig-hardened-check.py
+2
-1
No files found.
kconfig-hardened-check.py
View file @
c8652fc9
...
...
@@ -28,7 +28,6 @@
# l1tf=full,force
# mds=full,nosmt
# ARM64:
# ? CONFIG_HARDEN_BRANCH_PREDICTOR
# kpti=on
# ssbd=force-on
#
...
...
@@ -192,6 +191,7 @@ def construct_checklist(checklist, arch):
checklist
.
append
(
OptCheck
(
'SYN_COOKIES'
,
'y'
,
'defconfig'
,
'self_protection'
))
# another reason?
if
debug_mode
or
arch
==
'ARM64'
:
checklist
.
append
(
OptCheck
(
'UNMAP_KERNEL_AT_EL0'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'HARDEN_EL2_VECTORS'
,
'y'
,
'defconfig'
,
'self_protection'
))
if
debug_mode
or
arch
==
'X86_64'
or
arch
==
'ARM64'
:
checklist
.
append
(
OptCheck
(
'VMAP_STACK'
,
'y'
,
'defconfig'
,
'self_protection'
))
if
debug_mode
or
arch
==
'X86_64'
or
arch
==
'ARM64'
or
arch
==
'X86_32'
:
...
...
@@ -201,6 +201,7 @@ def construct_checklist(checklist, arch):
checklist
.
append
(
OptCheck
(
'CPU_SW_DOMAIN_PAN'
,
'y'
,
'defconfig'
,
'self_protection'
))
if
debug_mode
or
arch
==
'ARM64'
or
arch
==
'ARM'
:
checklist
.
append
(
OptCheck
(
'REFCOUNT_FULL'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'HARDEN_BRANCH_PREDICTOR'
,
'y'
,
'defconfig'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'BUG_ON_DATA_CORRUPTION'
,
'y'
,
'kspp'
,
'self_protection'
))
checklist
.
append
(
OptCheck
(
'DEBUG_WX'
,
'y'
,
'kspp'
,
'self_protection'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment