From e265882155ddbc2ebd1b2ee4b6ec7ed6801b1430 Mon Sep 17 00:00:00 2001 From: Auditya Bhattaram Date: Thu, 29 Feb 2024 20:34:15 +0530 Subject: [PATCH] ANDROID: Add __nocfi return for swsusp_arch_resume Resolve the CFI failure problem encountered during the restoration of the hibernation snapshot image. Bug: 340049585 Change-Id: I1f8f2c38e9d02a177c0cadb066419bf7edd66085 Signed-off-by: Mukesh Pilaniya Signed-off-by: Auditya Bhattaram Signed-off-by: Kamati Srinivas --- arch/arm64/kernel/hibernate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/hibernate.c b/arch/arm64/kernel/hibernate.c index 5b60ca5805c6..9b6664f34f8b 100644 --- a/arch/arm64/kernel/hibernate.c +++ b/arch/arm64/kernel/hibernate.c @@ -646,7 +646,7 @@ static int trans_pgd_create_copy(pgd_t **dst_pgdp, unsigned long start, * Memory allocated by get_safe_page() will be dealt with by the hibernate code, * we don't need to free it here. */ -int swsusp_arch_resume(void) +int __nocfi swsusp_arch_resume(void) { int rc; void *zero_page;