Commit 9cdd06a1 by Alexander Popov

Add rodata check for ARM64

parent b6930eae
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
# #
# Should NOT be set: # Should NOT be set:
# nokaslr # nokaslr
# rodata=off
# sysrq_always_enabled # sysrq_always_enabled
# arm64.nobti # arm64.nobti
# arm64.nopauth # arm64.nopauth
...@@ -646,6 +645,11 @@ def add_cmdline_checks(l, arch): ...@@ -646,6 +645,11 @@ def add_cmdline_checks(l, arch):
# Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results # Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results
# when the tool doesn't check the cmdline. # when the tool doesn't check the cmdline.
if arch == 'ARM64':
l += [OR(CmdlineCheck('self_protection', 'defconfig', 'rodata', 'full'),
AND(KconfigCheck('self_protection', 'defconfig', 'RODATA_FULL_DEFAULT_ENABLED', 'y'),
CmdlineCheck('self_protection', 'defconfig', 'rodata', 'is not set')))]
l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'), l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'),
AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'), AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'),
CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', 'is not set')))] CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', 'is not set')))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment