mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
mm: fix 32bit kasan can't boot on T5W [1/1]
PD#SWPL-151061 Problem: If enabled 32bit kasan on T5W, kernel can't boot, no matter VMAP enabled or not. This case can't happen on T5D. Solution: flush cache after bss cleared Verify: on T5W Change-Id: Ib63e22c31c625953d7011225cf92557e1d424ac7 Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
18951d0465
commit
c971573694
+1
-1
@@ -33,7 +33,7 @@ index ae5f69292a11..f271626c9888 100644
|
||||
mov r1, #0
|
||||
bl __memset @ clear .bss
|
||||
|
||||
+#if defined (CONFIG_KASAN) && defined (CONFIG_AMLOGIC_VMAP)
|
||||
+#if defined (CONFIG_KASAN)
|
||||
+ /* After bss cleard, kasan_early_shadow_page are 0 in cache
|
||||
+ * But on A55 it's physical memory keeps random data, this
|
||||
+ * physical page will be mapped to shadow memory very soon(few
|
||||
|
||||
Reference in New Issue
Block a user