[PATCH v6 1/5] Elf: add livepatch-specific Elf constants

2016-03-22 Thread Jessica Yu
Livepatch manages its own relocation sections and symbols in order to be able to reuse module loader code to write relocations. This removes livepatch's dependence on separate "dynrela" sections to write relocations and also allows livepatch to patch modules that are not yet loaded. The livepatch

Re: [PATCH v5 1/6] Elf: add livepatch-specific Elf constants

2016-03-21 Thread Miroslav Benes
On Wed, 16 Mar 2016, Jessica Yu wrote: > Livepatch manages its own relocation sections and symbols in order to be > able to reuse module loader code to write relocations. This removes > livepatch's dependence on separate "dynrela" sections to write relocations > and also allows livepatch to patch

[PATCH v5 1/6] Elf: add livepatch-specific Elf constants

2016-03-19 Thread Jessica Yu
Livepatch manages its own relocation sections and symbols in order to be able to reuse module loader code to write relocations. This removes livepatch's dependence on separate "dynrela" sections to write relocations and also allows livepatch to patch modules that are not yet loaded. The livepatch

[RFC PATCH v4 1/6] Elf: add livepatch-specific Elf constants

2016-02-03 Thread Jessica Yu
Livepatch manages its own relocation sections and symbols in order to be able to reuse module loader code to write relocations. This removes livepatch's dependence on separate "dynrela" sections to write relocations and also allows livepatch to patch modules that are not yet loaded. The livepatch

[RFC PATCH v2 1/6] Elf: add livepatch-specific Elf constants

2015-11-30 Thread Jessica Yu
Add livepatch Elf relocation section flag (SHF_RELA_LIVEPATCH), livepatch symbol bind (STB_LIVEPATCH_EXT) and section index (SHN_LIVEPATCH). The values of these Elf constants were selected from OS-specific ranges according to the definitions from glibc. Livepatch relocation sections are marked wit

Re: elf: add livepatch-specific elf constants

2015-11-12 Thread Jessica Yu
+++ Josh Poimboeuf [12/11/15 09:45 -0600]: On Mon, Nov 09, 2015 at 11:45:51PM -0500, Jessica Yu wrote: Add livepatch elf reloc section flag, livepatch symbol bind and section index Signed-off-by: Jessica Yu --- include/uapi/linux/elf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/in

Re: [RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:51PM -0500, Jessica Yu wrote: > Add livepatch elf reloc section flag, livepatch symbol bind > and section index > > Signed-off-by: Jessica Yu > --- > include/uapi/linux/elf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/inc

Re: [RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-12 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 11:45:51PM -0500, Jessica Yu wrote: > Add livepatch elf reloc section flag, livepatch symbol bind > and section index > > Signed-off-by: Jessica Yu > --- > include/uapi/linux/elf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/inc

Re: [RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-11 Thread Petr Mladek
On Mon 2015-11-09 23:45:51, Jessica Yu wrote: > Add livepatch elf reloc section flag, livepatch symbol bind > and section index Please, add here more detailed description from the initial mail. It would be helpful to have it in the git history. > Signed-off-by: Jessica Yu > --- > include/uapi/l

[RFC PATCH 1/5] elf: add livepatch-specific elf constants

2015-11-09 Thread Jessica Yu
Add livepatch elf reloc section flag, livepatch symbol bind and section index Signed-off-by: Jessica Yu --- include/uapi/linux/elf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index 71e1d0e..967ce1b 100644 --- a/include/uapi/linux/e