Skip to content

makedumpfile, elf: distinguish ELF note types by ELF note names

HATAYAMA Daisuke kexec 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3elf, sadump: move KEXEC macros from sadump_info.c to elf_info.helf_info.h sadump_info.c+4 -30 replies
2/3elf: swap checking order of VMCOREINFO and VMCOREINFO_XENelf_info.c+4 -90 replies
3/3elf: distinguish ELF note types by ELF note name spaceelf_info.c+54 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] makedumpfile, elf: distinguish ELF note types by ELF note names

In ELF, the same integers for two note type represent different meanings if the names they belong to are different. However, get_pt_note_info() doesn't distinguish note types by name space, due to which, for example, any new note type in "VMCOREINFO" name space is wrongly interpretted as NT_PRSTATUS or the unique note type in "VMCOREINFO" name space.

This patch series makes get_pt_note_info() distinguish ELF note types by ELF note names along with cleanups related to this change.

For reference:

Note Section
http://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section

type

This word gives the interpretation of the descriptor. Each originator controls its own types; multiple interpretations of a single type value may exist. Thus, a program must recognize both the name and the type to recognize a descriptor. Types currently must be non-negative. The ABI does not define what descriptors mean.

---

HATAYAMA Daisuke (3):
elf: distinguish ELF note types by ELF note name space
elf: swap checking order of VMCOREINFO and VMCOREINFO_XEN elf, sadump: move KEXEC macros from sadump_info.c to elf_info.h

 elf_info.c    |   83 ++++++++++++++++++++++++++++++++++++++-------------------
 elf_info.h    |    3 ++
 sadump_info.c |    4 +--
 3 files changed, 59 insertions(+), 31 deletions(-)
Signature · 7 lines
Thanks.
HATAYAMA, Daisuke

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec