Re: [PATCH v3 4/9] objtool/klp: Explicitly disallow patching or referencing init code/data
Song Liu <[email protected]>
| Newsgroups | org.kernel.vger.live-patching,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAPhsuW5Nai-mmXWoh5c-vAU-ELYXOM5FPtM7q3V37ktS97myoQ@mail.gmail.com> |
On Fri, Aug 7, 2026 at 2:38 PM Josh Poimboeuf <[email protected]> wrote: > > Explicitly disallow the patching and referencing of init code/data. > Otherwise it could potentially introduce some odd edge cases depending > on whether the target object's init section has been freed yet (note > that the init code still exists in the target module when doing late > module patching). > > Such edge cases include sympos calculation and the patching and/or > referencing of non-existent (init-freed) code/data. Not to mention the > inherent differences in behavior that occur when the init code is only > patched *some* of the time depending on module loading order or kernel > config. > > Signed-off-by: Josh Poimboeuf <[email protected]> Acked-by: Song Liu <[email protected]>