kpatch/kmod/core
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.c kmod/core: ensure the readonly flag is reset correctly 2017-03-03 11:41:30 -08:00
kpatch.h kmod: restructure kpatch sysfs tree 2017-02-27 20:07:16 -08:00
Makefile Makefile: determine kernel release in Makefile 2016-02-10 09:46:38 -06:00
shadow.c smatch: fix kpatch_shadow_alloc cleanup 2016-12-16 14:26:11 -05:00