Fix the 'decision' for the slub_merge check
authorAlexander Popov <alex.popov@linux.com>
Sun, 22 Jan 2023 22:16:52 +0000 (01:16 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 22 Jan 2023 22:17:16 +0000 (01:17 +0300)
kconfig_hardened_check/__init__.py

index 534978b0f484828039fba327e1c36bb281444b36..a3a3293797e2c4ba0bba5906e5c7dd2dcf613a41 100644 (file)
@@ -766,7 +766,7 @@ def add_cmdline_checks(l, arch):
     l += [OR(CmdlineCheck('self_protection', 'kspp', 'slab_nomerge', 'is present'),
              AND(KconfigCheck('self_protection', 'clipos', 'SLAB_MERGE_DEFAULT', 'is not set'),
                  CmdlineCheck('self_protection', 'kspp', 'slab_merge', 'is not set'),
-                 CmdlineCheck('self_protection', 'kspp', 'slub_merge', 'is not set')))]
+                 CmdlineCheck('self_protection', 'clipos', 'slub_merge', 'is not set')))]
     l += [OR(CmdlineCheck('self_protection', 'kspp', 'iommu.strict', '1'),
              AND(KconfigCheck('self_protection', 'kspp', 'IOMMU_DEFAULT_DMA_STRICT', 'y'),
                  CmdlineCheck('self_protection', 'kspp', 'iommu.strict', 'is not set')))]