public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts
@ 2024-05-07  9:53 Vignesh Balasubramanian
  2024-05-07  9:53 ` [PATCH v2 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files Vignesh Balasubramanian
  0 siblings, 1 reply; 14+ messages in thread
From: Vignesh Balasubramanian @ 2024-05-07  9:53 UTC (permalink / raw)
  To: linux-kernel, linux-toolchains
  Cc: mpe, npiggin, christophe.leroy, aneesh.kumar, naveen.n.rao,
	ebiederm, keescook, x86, linuxppc-dev, linux-mm, bpetkov,
	jinisusan.george, matz, binutils, jhb, felix.willgerodt,
	Vignesh Balasubramanian

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.

Please NOTE that this patch has to be applied on top of the patch (https://lore.kernel.org/lkml/874jbt7qz3.fsf@oldenburg3.str.redhat.com/T/).


Vignesh Balasubramanian (1):
  x86/elf: Add a new .note section containing Xfeatures information to
    x86 core files

 arch/x86/Kconfig             |   1 +
 arch/x86/include/asm/elf.h   |  34 +++++++++
 arch/x86/kernel/fpu/xstate.c | 141 +++++++++++++++++++++++++++++++++++
 fs/binfmt_elf.c              |   4 +-
 include/uapi/linux/elf.h     |   1 +
 5 files changed, 179 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-05-31 10:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07  9:53 [PATCH v2 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts Vignesh Balasubramanian
2024-05-07  9:53 ` [PATCH v2 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files Vignesh Balasubramanian
2024-05-07 23:40   ` kernel test robot
2024-05-08  0:13   ` kernel test robot
2024-05-08  8:04   ` Kees Cook
2024-05-08 13:02   ` Thomas Gleixner
2024-05-22 13:08     ` Balasubrmanian, Vignesh
2024-05-22 13:12     ` Balasubrmanian, Vignesh
2024-05-22 15:34       ` Borislav Petkov
     [not found]         ` <902b1bf0-15e6-42df-8f86-21387deef437@amd.com>
2024-05-23 14:45           ` Borislav Petkov
2024-05-26  4:54             ` Balasubrmanian, Vignesh
2024-05-26  9:05               ` Borislav Petkov
2024-05-31  9:19                 ` Balasubrmanian, Vignesh
2024-05-31 10:58                   ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).