Add a check for loaded cold-patched modules when reversing an update.
commit8a168d8e98bdec0ebe747b7edc24c3fcacf2c3eb
authorTim Abbott <tabbott@mit.edu>
Wed, 17 Dec 2008 22:53:07 +0000 (17 17:53 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 19 Dec 2008 19:13:43 +0000 (19 14:13 -0500)
tree6a464d8a65816f315ae5b4c89355d6e58bd497ce
parenta0daf3f4e523422732856947cbaaaaefbcde3ebf
Add a check for loaded cold-patched modules when reversing an update.

When an update is loaded with the --partial option, one can later load
the modules changed by the update that were not loaded when the update
was applied, so long as one loads cold-patched versions of those
modules.  It is unsafe to reverse such an update while the
cold-patched modules are loaded, so we now prevent doing so.

Signed-off-by: Tim Abbott <tabbott@mit.edu>
kmodsrc/ksplice.c
kmodsrc/ksplice.h
ksplice-undo.in