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
250cb522
Commit
250cb522
authored
Dec 09, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the gather_data_sampling check
parent
6014d0e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
checks.py
kernel_hardening_checker/checks.py
+4
-0
No files found.
kernel_hardening_checker/checks.py
View file @
250cb522
...
@@ -458,6 +458,9 @@ def add_cmdline_checks(l, arch):
...
@@ -458,6 +458,9 @@ def add_cmdline_checks(l, arch):
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'spec_rstack_overflow'
,
'is not off'
),
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'spec_rstack_overflow'
,
'is not off'
),
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'mitigations'
,
'auto,nosmt'
),
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'mitigations'
,
'auto,nosmt'
),
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'spec_rstack_overflow'
,
'is not set'
)))]
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'spec_rstack_overflow'
,
'is not set'
)))]
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'gather_data_sampling'
,
'is not off'
),
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'mitigations'
,
'auto,nosmt'
),
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'gather_data_sampling'
,
'is not set'
)))]
if
arch
==
'ARM64'
:
if
arch
==
'ARM64'
:
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'kpti'
,
'is not off'
),
l
+=
[
OR
(
CmdlineCheck
(
'self_protection'
,
'defconfig'
,
'kpti'
,
'is not off'
),
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'mitigations'
,
'auto,nosmt'
),
AND
(
CmdlineCheck
(
'self_protection'
,
'kspp'
,
'mitigations'
,
'auto,nosmt'
),
...
@@ -575,6 +578,7 @@ no_kstrtobool_options = [
...
@@ -575,6 +578,7 @@ no_kstrtobool_options = [
'rodata'
,
# See set_debug_rodata() in init/main.c
'rodata'
,
# See set_debug_rodata() in init/main.c
'ssbd'
,
# See parse_spectre_v4_param() in arch/arm64/kernel/proton-pack.c
'ssbd'
,
# See parse_spectre_v4_param() in arch/arm64/kernel/proton-pack.c
'spec_rstack_overflow'
,
# See srso_parse_cmdline() in arch/x86/kernel/cpu/bugs.c
'spec_rstack_overflow'
,
# See srso_parse_cmdline() in arch/x86/kernel/cpu/bugs.c
'gather_data_sampling'
,
# See gds_parse_cmdline() in arch/x86/kernel/cpu/bugs.c
'slub_debug'
,
# See setup_slub_debug() in mm/slub.c
'slub_debug'
,
# See setup_slub_debug() in mm/slub.c
'iommu'
,
# See iommu_setup() in arch/x86/kernel/pci-dma.c
'iommu'
,
# See iommu_setup() in arch/x86/kernel/pci-dma.c
'vsyscall'
,
# See vsyscall_setup() in arch/x86/entry/vsyscall/vsyscall_64.c
'vsyscall'
,
# See vsyscall_setup() in arch/x86/entry/vsyscall/vsyscall_64.c
...
...
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