[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1472237448-22270-1-git-send-email-chris.j.arges@canonical.com>
Date: Fri, 26 Aug 2016 13:50:26 -0500
From: Chris J Arges <chris.j.arges@...onical.com>
To: live-patching@...r.kernel.org
Cc: Chris J Arges <chris.j.arges@...onical.com>,
Josh Poimboeuf <jpoimboe@...hat.com>,
Jessica Yu <jeyu@...hat.com>, Jiri Kosina <jikos@...nel.org>,
Miroslav Benes <mbenes@...e.cz>,
Petr Mladek <pmladek@...e.com>, linux-kernel@...r.kernel.org
Subject: [RFC][PATCH] Load/Unload Hooks for Livepatch
Load/unload hooks will be useful to have when applying livepatches. Today
one can create hooks by writing code in the livepatch init/exit functions
and properly setting up module notifier callbacks to handle various cases.
This can be error prone and unwieldy as we have the proper mechanisms
already in the livepatch proper code.
I've tested this code with some sample livepatch code that exercised the
following:
- works with single/multiple hooks for both load/unload
- works if load_hooks/unload_hooks are NULL
- works if individual hooks are NULL
- handles bad return values from hooks
- handles properly when inserting/removing dependent modules
- can handle load_hook for vmlinux as well
The idea of these hooks are based off of the kpatch project.
Chris J Arges (1):
livepatch: add load/unload hooks to objects
include/linux/livepatch.h | 33 +++++++++++++++++++++++++++------
kernel/livepatch/core.c | 29 +++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 6 deletions(-)
--
2.7.4
Powered by blists - more mailing lists