Skip to content

Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts

Vignesh Balasubramanian linux-mm linux-toolchains linuxppc-dev lkml 5 versions – Applied

Status from this message: The following commit has been merged into the x86/fpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 0 repliesApplied
  2. v41 patch 0 repliesSuperseded
  3. v31 patch 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch11 repliesSuperseded
v11 patch19 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/1x86/elf: Add a new .note section containing xfeatures buffer layout info to x86 core filesarch/x86/Kconfig arch/x86/include/uapi/asm/elf.h arch/x86/kernel/fpu/xstate.c +2 more+110 -20 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts

This patch proposes to add an extra .note section in the corefile to dump the CPUID information of a machine.
This is being done to solve the issue of tools like the debuggers having to deal with coredumps from machines with varying XSAVE layouts in spite of having the same XCR0 bits.
The new proposed .note section, at this point, consists of an array of records containing the information of each extended feature that is present. This provides details about the offsets and the sizes of the various extended save state components of the machine where the application crash occurred. Requesting a review for this patch.

Vignesh Balasubramanian (1):
x86/elf: Add a new .note section containing xfeatures buffer layout
info to x86 core files

 arch/x86/Kconfig                |  1 +
 arch/x86/include/uapi/asm/elf.h | 17 +++++++
 arch/x86/kernel/fpu/xstate.c    | 89 +++++++++++++++++++++++++++++++++
 fs/binfmt_elf.c                 |  4 +-
 include/uapi/linux/elf.h        |  1 +
 5 files changed, 110 insertions(+), 2 deletions(-)
 create mode 100644 arch/x86/include/uapi/asm/elf.h
Signature · 1 line
2.34.1