[GIT PULL] livepatching for 4.15

From: Jiri Kosina
Date: Wed Nov 15 2017 - 05:24:56 EST


Linus,

please pull from

git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching.git for-linus

to receive the following updates to livepatching infrastructure for 4.15:

=====
- shadow variables support, allowing livepatches to associate new "shadow"
fields to existing data structures, from Joe Lawrence
- pre/post patch callbacks API, allowing livepatch writers to register
callbacks to be called before and after patch application, from Joe
Lawrence
=====

Thanks.

----------------------------------------------------------------
Jiri Kosina (1):
livepatch: __klp_shadow_get_or_alloc() is local to shadow.c

Joe Lawrence (4):
livepatch: introduce shadow variable API
livepatch: add (un)patch callbacks
livepatch: move transition "complete" notice into klp_complete_transition()
livepatch: add transition notices

Petr Mladek (3):
livepatch: Small shadow variable documentation fixes
livepatch: Correctly call klp_post_unpatch_callback() in error paths
livepatch: __klp_disable_patch() should never be called for disabled patches

Documentation/livepatch/callbacks.txt | 605 ++++++++++++++++++++++++
Documentation/livepatch/shadow-vars.txt | 192 ++++++++
include/linux/livepatch.h | 34 ++
kernel/livepatch/Makefile | 2 +-
kernel/livepatch/core.c | 52 +-
kernel/livepatch/core.h | 40 ++
kernel/livepatch/patch.c | 1 +
kernel/livepatch/shadow.c | 277 +++++++++++
kernel/livepatch/transition.c | 45 +-
samples/Kconfig | 5 +-
samples/livepatch/Makefile | 6 +
samples/livepatch/livepatch-callbacks-busymod.c | 72 +++
samples/livepatch/livepatch-callbacks-demo.c | 234 +++++++++
samples/livepatch/livepatch-callbacks-mod.c | 53 +++
samples/livepatch/livepatch-shadow-fix1.c | 173 +++++++
samples/livepatch/livepatch-shadow-fix2.c | 168 +++++++
samples/livepatch/livepatch-shadow-mod.c | 224 +++++++++
17 files changed, 2162 insertions(+), 21 deletions(-)
create mode 100644 Documentation/livepatch/callbacks.txt
create mode 100644 Documentation/livepatch/shadow-vars.txt
create mode 100644 kernel/livepatch/shadow.c
create mode 100644 samples/livepatch/livepatch-callbacks-busymod.c
create mode 100644 samples/livepatch/livepatch-callbacks-demo.c
create mode 100644 samples/livepatch/livepatch-callbacks-mod.c
create mode 100644 samples/livepatch/livepatch-shadow-fix1.c
create mode 100644 samples/livepatch/livepatch-shadow-fix2.c
create mode 100644 samples/livepatch/livepatch-shadow-mod.c

--
Jiri Kosina
SUSE Labs