kpatch/kmod
Evgenii Shatokhin 8dac9d0871 kmod/core: Skip relocations of already altered instructions
When a patch module is loaded, the kernel facilities like alternatives
and paravirt may alter some of its instructions. This happens before
Kpatch core module is notified and tries to apply dynrelas to it. If an
instruction to apply a dynrela to has already been changed by these
facilities, an incorrect instruction might be written as a result.

The core module now detects such conditions and does not apply dynrela
to the changed instructions.

Suggested by Josh Poimboeuf in the discussion of
https://github.com/dynup/kpatch/issues/580.

Changes in v.2:
* Used pr_notice to give more emphasis to the messages.
* Added an explanation message.

Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
2016-04-11 15:11:35 +03:00
..
core kmod/core: Skip relocations of already altered instructions 2016-04-11 15:11:35 +03:00
patch livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
Makefile Makefile: add BUILDMOD parameter to select building kmod core 2016-02-10 09:55:45 -06:00