diff options
| author | Joe Lawrence <[email protected]> | 2017-10-02 15:56:48 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2017-10-11 13:38:46 +0000 |
| commit | ef8daf8eeb5b8ab6bc356656163d19f20fb827ed (patch) | |
| tree | 2ae9e01115e5aa8adfe4aa3870e0cf0c156d419f /lib/mpi | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff) | |
| download | kernel-ef8daf8eeb5b8ab6bc356656163d19f20fb827ed.tar.gz kernel-ef8daf8eeb5b8ab6bc356656163d19f20fb827ed.zip | |
livepatch: unpatch all klp_objects if klp_module_coming fails
When an incoming module is considered for livepatching by
klp_module_coming(), it iterates over multiple patches and multiple
kernel objects in this order:
list_for_each_entry(patch, &klp_patches, list) {
klp_for_each_object(patch, obj) {
which means that if one of the kernel objects fails to patch,
klp_module_coming()'s error path needs to unpatch and cleanup any kernel
objects that were already patched by a previous patch.
Reported-by: Miroslav Benes <[email protected]>
Suggested-by: Petr Mladek <[email protected]>
Signed-off-by: Joe Lawrence <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions
