kpatch/kmod
Jessica Yu a095b4ed41 kmod/core: ensure the readonly flag is reset correctly
When the core module loops through an object's list of dynrelas, it
determines whether or not the target location of the dynrela is in a
read-only region of the patch module. If it is, the readonly flag is set to
1 and it calls set_memory_{rw,ro} before and after the probe_kernel_write()
operation. This flag gets set once, and never gets reset for subsequent
iterations. Therefore, if a target happens to be in a RW section of the
patch module, and readonly = 1 had been set before, we may unintentionally
set a normally RW page to RO. Fix this by setting the readonly flag with
each iteration of the loop.

Fixes #681.
2017-03-03 11:41:30 -08:00
..
core kmod/core: ensure the readonly flag is reset correctly 2017-03-03 11:41:30 -08:00
patch kmod: restructure kpatch sysfs tree 2017-02-27 20:07:16 -08:00
Makefile kmod: Fix install path 2016-05-06 10:47:43 +01:00