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

Sami Tolvanen samitolvanen at google.com
Wed Jul 22 11:03:53 PDT 2026


On Wed, Jul 22, 2026 at 10:47 AM Yo'av Moshe <linux at yoavmoshe.com> wrote:
>
> I think the issue might be a parameter mismatch: in C, the pointer is
> declared as taking a parameter `void (*)(void __iomem *)`, but in assembly
> `imx6_suspend` has no parameters, so Clang generates two different hashes
> for them?

As long as the C prototype for the assembly function matches the
function pointer type, the hashes should also match. Can you dump the
hash prefix from the OCRAM and compare it to the disassembly of the
call site?

Sami



More information about the linux-arm-kernel mailing list