Re: [PATCH] livepatch: refuse to resolve symbols that belong to init sections

2024-04-18 Thread Jan Beulich
On 12.04.2024 12:59, Andrew Cooper wrote: > On 12/04/2024 9:07 am, Roger Pau Monne wrote: >> @@ -310,6 +313,20 @@ int livepatch_elf_resolve_symbols(struct livepatch_elf >> *elf) >> break; >> } >> } >> +/* >> + * Ensure not

Re: [PATCH] livepatch: refuse to resolve symbols that belong to init sections

2024-04-12 Thread Andrew Cooper
On 12/04/2024 9:07 am, Roger Pau Monne wrote: > Livepatch payloads containing symbols that belong to init sections can only > lead to page faults later on, as by the time the livepatch is loaded init > sections have already been freed. > > Refuse to resolve such symbols and return an error