Re: [PATCH v3] ARM: imx: Fix suspend/resume crash with Clang CFI

From: Sami Tolvanen

Date: Mon Jul 20 2026 - 15:33:07 EST


On Sat, Jul 18, 2026 at 4:14 AM Yo'av Moshe <linux@xxxxxxxxxxxxx> 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