]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
livepatch: add sympos as disambiguator field to klp_reloc
authorChris J Arges <chris.j.arges@canonical.com>
Wed, 2 Dec 2015 02:40:55 +0000 (20:40 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:19:46 +0000 (10:19 +0100)
commit3687489f4fd437e53fb9de205d6640709b9597cc
tree297b8077603e8ac29e102beba4eccc1fdad005d3
parentbe85ba4a2016d84737b7d56e10be36ca9d371218
livepatch: add sympos as disambiguator field to klp_reloc

In cases of duplicate symbols, sympos will be used to disambiguate instead
of val. By default sympos will be 0, and patching will only succeed if
the symbol is unique. Specifying a positive value will ensure that
occurrence of the symbol in kallsyms for the patched object will be used
for patching if it is valid. For external relocations sympos is not
supported.

Remove klp_verify_callback, klp_verify_args and klp_verify_vmlinux_symbol
as they are no longer used.

From the klp_reloc structure remove val, as it can be refactored as a
local variable in klp_write_object_relocations.

Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 064c89df6247cd829a7880cc8a87b7ed2cdfccd8)
Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
include/linux/livepatch.h
kernel/livepatch/core.c