From 63a371b261c4007d8910321b21f60ceec7f44e25 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Wed, 4 Sep 2024 15:26:14 +0800 Subject: [PATCH] mm/kasan: Change the init flag predict_false(g_region_init == KASAN_INIT_VALUE)) c: e3003000 movw r3, #0 10: e3403000 movt r3, #0 if (predict_false(size == 0) || 14: e5932000 ldr r2, [r3] 18: e30e3adf movw r3, #60127 ; 0xeadf if KASAN_INIT_VALUE is 0xdeadcafe, run function movw will again and load twice Signed-off-by: wangmingrong1 --- mm/kasan/hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/hook.c b/mm/kasan/hook.c index 7b50ca5d44..da111ab2ac 100644 --- a/mm/kasan/hook.c +++ b/mm/kasan/hook.c @@ -97,7 +97,7 @@ # define MM_KASAN_WATCHPOINT 0 #endif -#define KASAN_INIT_VALUE 0xdeadcafe +#define KASAN_INIT_VALUE 0xcafe /**************************************************************************** * Private Types