mirror of https://github.com/dynup/kpatch
b7a2862f90
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". |
||
---|---|---|
.. | ||
Makefile | ||
add-patches-section.c | ||
create-diff-object.c | ||
kpatch-build | ||
link-vmlinux-syms.c |