lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 14 Mar 2024 16:25:44 +0000
From: "Willgerodt, Felix" <felix.willgerodt@...el.com>
To: Vignesh Balasubramanian <vigbalas@....com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-toolchains@...r.kernel.org"
	<linux-toolchains@...r.kernel.org>
CC: "mpe@...erman.id.au" <mpe@...erman.id.au>, "npiggin@...il.com"
	<npiggin@...il.com>, "christophe.leroy@...roup.eu"
	<christophe.leroy@...roup.eu>, "aneesh.kumar@...nel.org"
	<aneesh.kumar@...nel.org>, "naveen.n.rao@...ux.ibm.com"
	<naveen.n.rao@...ux.ibm.com>, "ebiederm@...ssion.com"
	<ebiederm@...ssion.com>, "keescook@...omium.org" <keescook@...omium.org>,
	"x86@...nel.org" <x86@...nel.org>, "linuxppc-dev@...ts.ozlabs.org"
	<linuxppc-dev@...ts.ozlabs.org>, "linux-mm@...ck.org" <linux-mm@...ck.org>,
	"bpetkov@....com" <bpetkov@....com>, "jinisusan.george@....com"
	<jinisusan.george@....com>, "matz@...e.de" <matz@...e.de>,
	"binutils@...rceware.org" <binutils@...rceware.org>, "jhb@...eBSD.org"
	<jhb@...eBSD.org>
Subject: RE: [PATCH 0/1] Add XSAVE layout description to Core files for
 debuggers to support varying XSAVE layouts

> -----Original Message-----
> From: Vignesh Balasubramanian <vigbalas@....com>
> Sent: Donnerstag, 14. März 2024 12:23
> To: linux-kernel@...r.kernel.org; linux-toolchains@...r.kernel.org
> Cc: mpe@...erman.id.au; npiggin@...il.com; christophe.leroy@...roup.eu;
> aneesh.kumar@...nel.org; naveen.n.rao@...ux.ibm.com;
> ebiederm@...ssion.com; keescook@...omium.org; x86@...nel.org; linuxppc-
> dev@...ts.ozlabs.org; linux-mm@...ck.org; bpetkov@....com;
> jinisusan.george@....com; matz@...e.de; binutils@...rceware.org;
> jhb@...eBSD.org; Willgerodt, Felix <felix.willgerodt@...el.com>; Vignesh
> Balasubramanian <vigbalas@....com>
> Subject: [PATCH 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.
> 
> Some background:
> 
> The XSAVE layouts of modern AMD and Intel CPUs differ, especially since Memory
> Protection Keys and the AVX-512 features have been inculcated into the AMD
> CPUs. This is since AMD never adopted (and hence never left room in the XSAVE
> layout for) the Intel MPX feature. Tools like GDB had assumed a fixed XSAVE
> layout matching that of Intel (based on the XCR0 mask). 

Hi,

I am a GDB developer and very much in favour of getting rid of the 
interim solution added to GDB. It doesn't scale well, as soon as we add new state
that has the same size as some existing state.

I am wondering if it wouldn't be easier for everyone if corefiles would just
contain space for all possible XSAVE components? Regardless of whether the CPU
supports it or whether or not AMD or Intel ever supported the feature.
Or if we would at least not drop some state from the middle, like in this case.

Regards,
Felix
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ