mbox series

[v3,0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts

Message ID 20240712094630.29757-1-vigbalas@amd.com (mailing list archive)
Headers show
Series Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts | expand

Message

Vignesh Balasubramanian July 12, 2024, 9:46 a.m. UTC
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/asm/elf.h   |  9 ++++
 arch/x86/kernel/fpu/xstate.c | 87 ++++++++++++++++++++++++++++++++++++
 fs/binfmt_elf.c              |  4 +-
 include/uapi/linux/elf.h     |  1 +
 5 files changed, 100 insertions(+), 2 deletions(-)