kpatch/kpatch-build
Josh Poimboeuf b7a2862f90 safe kpatch unload
Currently the patch module calls kpatch_unregister in the patch module
exit path.  If the activeness safety check fails in kpatch_unregister,
it's too late for the patch module to stop exiting, so all it can do is
panic.

Prevent this scenario by requiring the user to disable the patch module
via sysfs before allowing the module to be unloaded.  The sysfs write
will fail if the activeness safety check fails.  An rmmod will fail if
the patch is still enabled.

Also add support for this new unloading model in "kpatch unload".
2014-04-25 23:05:26 -05:00
..
Makefile add uninstall target 2014-03-20 11:29:25 -05:00
add-patches-section.c fix activeness safety check when unpatching 2014-04-23 14:37:35 -05:00
create-diff-object.c fix smp_lock support 2014-04-25 14:07:51 -05:00
kpatch-build kpatch-build: don't delete logfile in debug mode 2014-04-21 16:26:23 -05:00
link-vmlinux-syms.c safe kpatch unload 2014-04-25 23:05:26 -05:00