Files
kernel_common_drivers/auto_patch
Jianxiong Pan ba5cfe4dbd mm: autopatch: fix 32bit kasan can not boot on T5W [1/1]
PD#SWPL-225609

Problem:
If enabled 32bit kasan on T5W with VMAP, kernel can not boot.
This case can not happen on T5D.

Solution:
Rootcause is bss cleared but real data keeps in cache, not flushed
into DDR, and physical kasan shadow page soon be mapped to shadow
memory while in shadow virtual address we see random data, which
caused kasan check failed in vmap fixup function and crashed. So
just add a dcache flush function call after bss cleared.

Verify:
T5W

Change-Id: I864e4d29e75ef3b55fd39b3d76734ff0fbced908
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-25 19:54:37 -07:00
..