mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ANDROID: GKI: enable KFENCE by setting the sample interval to 500ms
This change effectively enables KFENCE in GKI kernels with a sample interval of 500ms. It is still possible to disable KFENCE at boot time using kfence.sample_interval=0. Bug: 176228452 Test: kernel builds, device boots normally Test: TreeHugger Signed-off-by: Alexander Potapenko <glider@google.com> Change-Id: I69cb0fc8fdebba36c9166b275ad245240314d811
This commit is contained in:
@@ -623,7 +623,7 @@ CONFIG_DEBUG_MEMORY_INIT=y
|
||||
CONFIG_KASAN=y
|
||||
CONFIG_KASAN_HW_TAGS=y
|
||||
CONFIG_KFENCE=y
|
||||
CONFIG_KFENCE_SAMPLE_INTERVAL=0
|
||||
CONFIG_KFENCE_SAMPLE_INTERVAL=500
|
||||
CONFIG_PANIC_ON_OOPS=y
|
||||
CONFIG_PANIC_TIMEOUT=-1
|
||||
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||
|
||||
@@ -564,7 +564,7 @@ CONFIG_PAGE_OWNER=y
|
||||
CONFIG_DEBUG_STACK_USAGE=y
|
||||
CONFIG_DEBUG_MEMORY_INIT=y
|
||||
CONFIG_KFENCE=y
|
||||
CONFIG_KFENCE_SAMPLE_INTERVAL=0
|
||||
CONFIG_KFENCE_SAMPLE_INTERVAL=500
|
||||
CONFIG_PANIC_ON_OOPS=y
|
||||
CONFIG_PANIC_TIMEOUT=-1
|
||||
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||
|
||||
Reference in New Issue
Block a user