kpatch/kmod/patch
Chris J Arges b64ab2b5e4 livepatch-patch-hook: add support for livepatch sympos
Support patching objects that have duplicated function names. This feature was
introduced upstream in Linux v4.5.

This patch appends the symbol position to the symbol structure when
lookup_local_symbol is called. This pos variable is then used when creating the
funcs and dynrelas sections. Finally, incorporate sympos into the livepatch
patch hook only if the kernel version is greater than v4.5. In other cases the
older format is used.

Fixes: #493

Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
2016-02-16 10:31:44 -06:00
..
kpatch-macros.h remove obsolete warning for KPATCH_FORCE_UNSAFE 2014-10-31 11:39:14 -05:00
kpatch-patch-hook.c kpatch-patch-hook: change old_addr and new_addr perms to readable by root only 2014-11-07 21:30:32 -08:00
kpatch-patch.h livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
kpatch.h build and install core module with make 2014-02-18 07:44:33 -06:00
kpatch.lds re-enable patch modules with checksum matching 2014-09-09 07:52:16 -04:00
livepatch-patch-hook.c livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
Makefile add *hook.c files and make target dep for patch-hook.o 2015-01-22 11:39:34 -06:00
patch-hook.c CONFIG_LIVE_PATCHING -> CONFIG_LIVEPATCH 2015-02-04 08:32:08 -06:00