platform_kernel_configs/android-5.10/android-base-conditional.xml
Alexander Potapenko 27a2a0b752 CONFIG_KFENCE requirements for 5.4 and 5.10 kernels
CONFIG_KFENCE=y MUST be enabled in all 5.10 kernels and
is STRONGLY RECOMMENDED in 5.4 kernels.

Having CONFIG_KFENCE=y does not necessarily enable KFENCE at runtime:
it can still be disabled by setting CONFIG_KFENCE_SAMPLE_INTERVAL=0
or passing kfence.sample_interval=0 boot parameter to the kernel.

Bug: 181118352
Bug: 176230369
Test: manual (5.10), Treehugger (5.4)

Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: Ie075c79b42bf4d4d19429e28afec08d7efbc980b
2021-03-16 18:44:47 +01:00

204 lines
3.9 KiB
XML

<kernel minlts="5.10.0" />
<!-- KEEP ALPHABETICALLY SORTED -->
<!-- ARM base requirements -->
<group>
<conditions>
<config>
<key>CONFIG_ARM</key>
<value type="bool">y</value>
</config>
</conditions>
<config>
<key>CONFIG_AEABI</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_CPU_SW_DOMAIN_PAN</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_DEVKMEM</key>
<value type="bool">n</value>
</config>
<config>
<key>CONFIG_OABI_COMPAT</key>
<value type="bool">n</value>
</config>
</group>
<!-- ARM64 base requirements -->
<group>
<conditions>
<config>
<key>CONFIG_ARM64</key>
<value type="bool">y</value>
</config>
</conditions>
<config>
<key>CONFIG_ARM64_PAN</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_ARM64_SW_TTBR0_PAN</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_ARMV8_DEPRECATED</key>
<value type="bool">y</value>
</config>
<!--<config>
<key>CONFIG_CFI_CLANG</key>
<value type="bool">y</value>
</config>-->
<config>
<key>CONFIG_COMPAT</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_CP15_BARRIER_EMULATION</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_SETEND_EMULATION</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_SHADOW_CALL_STACK</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_SWP_EMULATION</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_BPF_JIT_ALWAYS_ON</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_HAVE_MOVE_PMD</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_HAVE_MOVE_PUD</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_KFENCE</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_USERFAULTFD</key>
<value type="bool">y</value>
</config>
</group>
<!-- x86 base requirements -->
<group>
<conditions>
<config>
<key>CONFIG_X86</key>
<value type="bool">y</value>
</config>
</conditions>
<config>
<key>CONFIG_DEVKMEM</key>
<value type="bool">n</value>
</config>
<config>
<key>CONFIG_KFENCE</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_PAGE_TABLE_ISOLATION</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_RETPOLINE</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_HAVE_MOVE_PMD</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_HAVE_MOVE_PUD</key>
<value type="bool">y</value>
</config>
<config>
<key>CONFIG_USERFAULTFD</key>
<value type="bool">y</value>
</config>
</group>
<!-- x86_64 base requirements -->
<group>
<conditions>
<config>
<key>CONFIG_X86_64</key>
<value type="bool">y</value>
</config>
</conditions>
<!--<config>
<key>CONFIG_CFI_CLANG</key>
<value type="bool">y</value>
</config>-->
<config>
<key>CONFIG_BPF_JIT_ALWAYS_ON</key>
<value type="bool">y</value>
</config>
</group>
<!-- CONFIG_ACPI || CONFIG_OF -->
<group>
<conditions>
<config>
<key>CONFIG_ACPI</key>
<value type="bool">n</value>
</config>
</conditions>
<config>
<key>CONFIG_OF</key>
<value type="bool">y</value>
</config>
</group>
<group>
<conditions>
<config>
<key>CONFIG_OF</key>
<value type="bool">n</value>
</config>
</conditions>
<config>
<key>CONFIG_ACPI</key>
<value type="bool">y</value>
</config>
</group>
<!-- EXT4 requirements -->
<group>
<conditions>
<config>
<key>CONFIG_EXT4_FS</key>
<value type="bool">y</value>
</config>
</conditions>
<config>
<key>CONFIG_EXT4_FS_POSIX_ACL</key>
<value type="bool">y</value>
</config>
</group>
<!-- F2FS requirements -->
<group>
<conditions>
<config>
<key>CONFIG_F2FS_FS</key>
<value type="bool">y</value>
</config>
</conditions>
<config>
<key>CONFIG_F2FS_FS_POSIX_ACL</key>
<value type="bool">y</value>
</config>
</group>