Skip to content

livepatch: Clear relocations when klp_init_object_loaded() fails

Petr Mladek live-patching lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2livepatch: Move code for updating livepatch object relocationskernel/livepatch/core.c+36 -363 replies
2/2livepatch: Clean up klp_init_object_loaded() when failskernel/livepatch/core.c+20 -102 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSong Liu
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] livepatch: Clear relocations when klp_init_object_loaded() fails

Hi,

this patchset fixes an older problem found by Sashiko AI,
see https://lore.kernel.org/r/[email protected]

The first patch just shuffles the existing code.
The second patch is the real fix.

The patchset is made on top of the patch where Sashiko found this older problem, see
https://lore.kernel.org/all/[email protected]/

It might make sense to handle them together in a single patchset because they touch the same code and conflict.

It seems that we will need v3 for the original patch.
Harry, could you please send it together with these additional fixes? [*]

[*] I am not sure if you did this before. It is easy. You create
the patchset as usual and send it. git will do the trick and keep me as the author of the two additional patches.

Alternatively, I could send this separately and solve the conflicts when merging. They are simple after all. I just must not forget to replace the new "return err" with "goto err" ;-)

Petr Mladek (2):
livepatch: Move code for updating livepatch object relocations
livepatch: Clean up klp_init_object_loaded() when fails

 kernel/livepatch/core.c | 102 ++++++++++++++++++++++------------------
 1 file changed, 56 insertions(+), 46 deletions(-)
Signature · 1 line
2.55.0