kpatch/kmod/core
Joe Lawrence 15067fcd64 kmod/core: apply dynrela addend for R_X86_64_64
User stettberger noticed that the kpatch support module does not
apply the addend for R_X86_64_64 in kpatch_write_relocations().

The AMD64 ABI draft doc [1], Table 4.10: Relocation Types lists that
relocation type as:

  Name         Value  Field   Calculation
  R_X86_64_64  1      word64  S + A

where:

  S : Represents the value of the symbol whose index resides in the
      relocation entry.

  A : Represents the addend used to compute the value of the relocatable
      field.

[1] http://refspecs.linuxfoundation.org/elf/x86_64-abi-0.99.pdf

Fixes: #1093
Reported-by: Christian Dietrich <stettberger@dokucode.de>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2020-05-01 09:01:50 -04:00
..
core.c kmod/core: apply dynrela addend for R_X86_64_64 2020-05-01 09:01:50 -04:00
kpatch.h kmod: add support for in-kernel livepatch hooks 2018-03-23 10:32:14 -04:00
Makefile kmod/core: fix definition of KERNELRELEASE 2018-02-19 13:13:03 +03:00
shadow.c smatch: fix kpatch_shadow_alloc cleanup 2016-12-16 14:26:11 -05:00