kpatch/kmod
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
..
core safe kpatch unload 2014-04-25 23:05:26 -05:00
patch safe kpatch unload 2014-04-25 23:05:26 -05:00
Makefile support CONFIG_MODVERSIONS=y 2014-03-27 16:36:43 -07:00