Re: [PATCH v3] ARM: imx: Fix suspend/resume crash with Clang CFI
Sami Tolvanen <[email protected]> Fri, 24 Jul 2026 08:53:31 -0700
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <CABCJKufoQ0fX797M01t7CkTgMEwNCELY1=ptZsxr=jWOR-KAyA@mail.gmail.com> |
On Thu, Jul 23, 2026 at 12:56 PM Yo'av Moshe <[email protected]> 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