Re: [PATCH 1/7] livepatch: Apply vmlinux-specific KLP relocations early

From: Peter Zijlstra
Date: Tue Apr 14 2020 - 13:44:45 EST


On Tue, Apr 14, 2020 at 11:28:37AM -0500, Josh Poimboeuf wrote:
> KLP relocations are livepatch-specific relocations which are applied to
> 1) vmlinux-specific KLP relocation sections
>
> .klp.rela.vmlinux.{sec}
>
> These are relocations (applied to the KLP module) which reference
> unexported vmlinux symbols.
>
> 2) module-specific KLP relocation sections
>
> .klp.rela.{module}.{sec}:
>
> These are relocations (applied to the KLP module) which reference
> unexported or exported module symbols.

Is there something that disallows a module from being called 'vmlinux' ?
If not, we might want to enforce this somewhere.