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]
Message-ID: <Z8DE0K2EEDe1dQdh@gmail.com>
Date: Thu, 27 Feb 2025 21:02:24 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Dave Hansen <dave.hansen@...el.com>
Cc: "Chang S. Bae" <chang.seok.bae@...el.com>, linux-kernel@...r.kernel.org,
	x86@...nel.org, tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
	dave.hansen@...ux.intel.com,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH RFC v1 02/11] x86/fpu/xstate: Introduce xstate order
 table and accessor macro


* Dave Hansen <dave.hansen@...el.com> wrote:

> On 2/27/25 11:36, Ingo Molnar wrote:
> > 
> >> There were basically three choices:
> >>
> >>  1. Reuse XFEATURES 3/4 (MPX)
> >>  2. Create a new out-of-order XFEATURE 19 that reuses MPX space
> >>  3. Create a n in-order XFEATURE 19 that needs XFD and an opt-in
> >>
> >> #1 risks breaking old MPX code in weird ways.
> > This is a false trichotomy. 😉
> > 
> > There's a 4th option:
> > 
> >    4. Reuse XFEATURES 3/4 (MPX) only on APX-aware kernels, keep it 
> >       disabled for old kernels.
> > 
> > Problem solved.
> 
> The worry boils down to code in the kernel or userspace doing this:
> 
> 	if (XGETBV(0) & 0x11)
> 		do_mpx_gunk();

New, APX-aware kernels wouldn't be doing this, why would they?

> So, sure, we could try to make sure that new kernels don't have any 
> do_mpx_gunk() in them, but that doesn't help old kernels or other 
> OSes/VMMs.

Old kernels would *never* see this bit enabled if it's disabled by 
default on bootup ...

VMMs would boot with it default-disabled as well, they can enable it 
themselves.

Thanks,

	Ingo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ