Re: [POC 11/23] livepatch: Safely detect forced transition when removing split livepatch modules

Julien Thierry
2020-01-22T10:15:20Z

Hi Petr,

On 1/17/20 3:03 PM, Petr Mladek wrote:
> The information about forced livepatch transition is currently stored
> in struct klp_patch. But there is not any obvious safe way how to
> access it when the split livepatch modules are removed.
>

If that's the only motivation to do this, klp_objects could have a
reference to the klp_patch they are part of. This could easily be set
when adding the klp_object to the klp_patch->obj_list in
klp_init_object_early() .

Having this reference could also prove useful in future scenarios.

Cheers,

--
Julien Thierry