From 01d91decf89b9a9ca1abd0da1f4cfd1ffb33864b Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Fri, 23 Feb 2024 11:18:12 -0800 Subject: [PATCH] Disable KASan in non-fullmte builds. Bug: 326616235 Test: cat /proc/cmdline | grep kasan=off Change-Id: Icb71416f242863de8307b0021fc898e7ab4df084 --- BoardConfig-common.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk index a1ef4f6..15f6fcc 100644 --- a/BoardConfig-common.mk +++ b/BoardConfig-common.mk @@ -41,6 +41,9 @@ BOARD_KERNEL_CMDLINE += rcupdate.rcu_expedited=1 rcu_nocbs=all BOARD_KERNEL_CMDLINE += swiotlb=noforce BOARD_KERNEL_CMDLINE += disable_dma32=on BOARD_KERNEL_CMDLINE += sysctl.kernel.sched_pelt_multiplier=4 +ifeq (,$(filter %_fullmte,$(TARGET_PRODUCT))) +BOARD_KERNEL_CMDLINE += kasan=off +endif BOARD_BOOTCONFIG += androidboot.boot_devices=13200000.ufs # Enable KUnit for userdebug and eng builds