Re: [PATCH v3] ARM: imx: Fix suspend/resume crash with Clang CFI
From: Sami Tolvanen
Date: Fri Jul 24 2026 - 12:11:47 EST
On Thu, Jul 23, 2026 at 12:56 PM Yo'av Moshe <linux@xxxxxxxxxxxxx> wrote:
>
> On 2026-07-23 9:21 PM, Sami Tolvanen wrote:
> > What's the value for the __kcfi_typeid_imx6_suspend symbol in
> > vmlinux.o? I would expect the hash value to look a bit more random.
> Checking vmlinux.o with `llvm-readelf -s vmlinux.o` indeed shows:
>
> a488ebfc 0 NOTYPE WEAK DEFAULT ABS __kcfi_typeid_imx6_suspend
OK, so the hashes should match. I can only assume that the hash prefix
doesn't end up getting copied to OCRAM for some reason then, or
perhaps the source of the copy operation doesn't have relocations
applied? Either way, if this turns out to be infeasible, I think the
__nocfi approach is reasonable in this case too.
Sami