[PATCH v3] ARM: imx: Fix suspend/resume crash with Clang CFI
Sami Tolvanen
samitolvanen at google.com
Mon Jul 20 12:29:20 PDT 2026
On Sat, Jul 18, 2026 at 4:14 AM Yo'av Moshe <linux at yoavmoshe.com> wrote:
>
> Relocated suspend code in OCRAM lacks compiler-generated CFI type
> signatures. When CONFIG_CFI=y is active, the indirect call to
> imx6_suspend_in_ocram_fn triggers a strict CFI violation panic.
Would it be possible to just copy the 4-byte CFI hash prefix to OCRAM
when relocating the function? If not, the __nocfi approach seems
reasonable to me.
Sami
More information about the linux-arm-kernel
mailing list