Re: [PATCH v3] ARM: imx: Fix suspend/resume crash with Clang CFI
Nick Desaulniers <[email protected]>
| Newsgroups | dev.linux.lists.imx,dev.linux.lists.llvm,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <CAKwvOdk-JmqjhZWBiLjXTxKhEV+T3BAB6An+3Ara8oybmhAMpA@mail.gmail.com> |
On Sun, Jul 26, 2026 at 8:37 AM Yo'av Moshe <[email protected]> wrote: > > On 2026-07-24 10:49 PM, Nick Desaulniers wrote: > > Yeah, Yo'av did you test further modifications that explicitly copy > > the hash prefix? I assumed Nathan's change _plus some additional tweak > > to copy not just imx6_suspend to OCRAM which I assume the code already > > does, but I would imagine you need another change to copy > > __kcfi_typeid_imx6_suspend into OCRAM just before the function. Was > > that tested? > Yes, I tried that as well and it unfortunately didn't work. > > I tested Nathan's change along with explicitly copying the 4-byte > prefix from before imx6_suspend into OCRAM right before calling fncpy(). Can you share that diff? I would have expected that to work. Perhaps a minor mistake in your implementation? > However, when checking the compiled binary, "&imx6_suspend - 4" just > contained padding rather than the hash, so the copied 4-byte value > didn't match what the call site expected. How did you verify this? Can you share the command line invocations and output? > > Yo'av -- Thanks, ~Nick Desaulniers