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] [day] [month] [year] [list]
Message-ID: <040c961bee810233e0213304626b46a76db2817d.camel@infradead.org>
Date: Tue, 01 Apr 2025 10:53:16 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: "Huang, Kai" <kai.huang@...el.com>, "kexec@...ts.infradead.org"
	 <kexec@...ts.infradead.org>
Cc: "dyoung@...hat.com" <dyoung@...hat.com>, "bsz@...zon.de"
 <bsz@...zon.de>,  "x86@...nel.org" <x86@...nel.org>, "bp@...en8.de"
 <bp@...en8.de>, "peterz@...radead.org" <peterz@...radead.org>,
 "hpa@...or.com" <hpa@...or.com>, "mingo@...hat.com" <mingo@...hat.com>,
 "tglx@...utronix.de" <tglx@...utronix.de>, 
 "kirill.shutemov@...ux.intel.com" <kirill.shutemov@...ux.intel.com>,
 "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
 "horms@...nel.org" <horms@...nel.org>,  "dave.hansen@...ux.intel.com"
 <dave.hansen@...ux.intel.com>, "jpoimboe@...nel.org" <jpoimboe@...nel.org>,
  "nik.borisov@...e.com" <nik.borisov@...e.com>
Subject: Re: [PATCH v9 3/4] x86/kexec: Invalidate GDT/IDT from
 relocate_kernel() instead of earlier

On Tue, 2025-04-01 at 09:48 +0000, Huang, Kai wrote:
> On Wed, 2025-03-26 at 14:16 +0000, David Woodhouse wrote:
> > From: David Woodhouse <dwmw@...zon.co.uk>
> > 
> > Reduce the window during which exceptions are unhandled, by leaving
> > the
> > GDT/IDT in place all the way into the relocate_kernel() function,
> > until
> > the moment that %cr3 gets replaced.
> 
> Seems the difference is only couple of instructions.  Anyway ...

It is, although that was important when I was trying to enable CET
because one of those instructions was the indirect call.

I've given up on CET now because it's largely pointless for that
particular call. But still, putting the GDT/IDT invalidation into
relocate_kernel.S means that we can further shrink the window if we
want to look at leaving MC enabled during the handover, etc.

> > 
> > Signed-off-by: David Woodhouse <dwmw@...zon.co.uk>
> 
> Reviewed-by: Kai Huang <kai.huang@...el.com>

Thanks.

Download attachment "smime.p7s" of type "application/pkcs7-signature" (5069 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ