diff options
author | Seth Jennings <[email protected]> | 2014-12-16 11:58:19 -0600 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2014-12-22 15:40:49 +0100 |
commit | b700e7f03df5d92f85fa5247fe1f557528d3363d (patch) | |
tree | d6da8186d1bd9c42bbd5db9f23deeb1e47bb6dec /samples/livepatch/livepatch-sample.c | |
parent | c5f4546593e9911800f0926c1090959b58bc5c93 (diff) |
livepatch: kernel: add support for live patching
This commit introduces code for the live patching core. It implements
an ftrace-based mechanism and kernel interface for doing live patching
of kernel and kernel module functions.
It represents the greatest common functionality set between kpatch and
kgraft and can accept patches built using either method.
This first version does not implement any consistency mechanism that
ensures that old and new code do not run together. In practice, ~90% of
CVEs are safe to apply in this way, since they simply add a conditional
check. However, any function change that can not execute safely with
the old version of the function can _not_ be safely applied in this
version.
[ [email protected]: due to the number of contributions that got folded into
this original patch from Seth Jennings, add SUSE's copyright as well, as
discussed via e-mail ]
Signed-off-by: Seth Jennings <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Reviewed-by: Miroslav Benes <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Miroslav Benes <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'samples/livepatch/livepatch-sample.c')
0 files changed, 0 insertions, 0 deletions