[PATCH] arch: arm64: set __nocfi on swsusp_arch_resume
Will Deacon
will at kernel.org
Thu Jan 22 04:25:24 PST 2026
On Thu, Jan 22, 2026 at 07:49:25PM +0800, zhaoyang.huang wrote:
> From: Zhaoyang Huang <zhaoyang.huang at unisoc.com>
>
> A DABT is reported[1] on an android based system when resume from hiberate,
> which is root caused as CFI will plant stub code[2] to verify the
> swsusp_arch_suspend_exit's authentication, where the hash value is stored
> before the page that alloced by create_safe_exec_page. We also have
> tried to copy the hash value together with the function but get failed since
> the value is not on the desired position(src_start - 4). So we solve
> this issue by setting __nocfi on swsusp_arch_resume and it works.
Acked-by: Will Deacon <will at kernel.org>
Will
More information about the linux-arm-kernel
mailing list