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: <96c24397-b081-4570-adb2-8d4443f3359c@amazon.com>
Date: Tue, 12 Nov 2024 20:31:29 -0700
From: "Manwaring, Derek" <derekmn@...zon.com>
To: <elena.reshetova@...el.com>
CC: <ackerleytng@...gle.com>, <agordeev@...ux.ibm.com>,
	<aou@...s.berkeley.edu>, <borntraeger@...ux.ibm.com>, <bp@...en8.de>,
	<canellac@...zon.at>, <catalin.marinas@....com>, <chenhuacai@...nel.org>,
	<corbet@....net>, <dave.hansen@...el.com>, <dave.hansen@...ux.intel.com>,
	<david@...hat.com>, <derekmn@...zon.com>, <gerald.schaefer@...ux.ibm.com>,
	<gor@...ux.ibm.com>, <graf@...zon.com>, <hca@...ux.ibm.com>, <hpa@...or.com>,
	<jgowans@...zon.com>, <jthoughton@...gle.com>, <kalyazin@...zon.com>,
	<kernel@...0n.name>, <kvm@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>, <linux-doc@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, <linux-kselftest@...r.kernel.org>,
	<linux-mm@...ck.org>, <linux-riscv@...ts.infradead.org>,
	<linux-s390@...r.kernel.org>, <linux-trace-kernel@...r.kernel.org>,
	<loongarch@...ts.linux.dev>, <luto@...nel.org>,
	<mathieu.desnoyers@...icios.com>, <mhiramat@...nel.org>, <mingo@...hat.com>,
	<mlipp@...zon.at>, <palmer@...belt.com>, <paul.walmsley@...ive.com>,
	<pbonzini@...hat.com>, <peterz@...radead.org>, <quic_eberman@...cinc.com>,
	<rostedt@...dmis.org>, <roypat@...zon.co.uk>, <rppt@...nel.org>,
	<seanjc@...gle.com>, <shuah@...nel.org>, <svens@...ux.ibm.com>,
	<tabba@...gle.com>, <tglx@...utronix.de>, <vannapurve@...gle.com>,
	<will@...nel.org>, <x86@...nel.org>, <xmarcalx@...zon.com>
Subject: RE: [RFC PATCH v3 0/6] Direct Map Removal for guest_memfd

On 2024-11-08 at 10:36, Elena Reshetova wrote:
> On 2024-11-06 at 17:04, Derek Manwaring wrote:
> > On 2024-11-04 at 08:33+0000, Elena Reshetova wrote:
> > > This statement *is* for integrity section. We have a separate TDX guidance
> > > on side-channels (including speculative) [3] and some speculative attacks
> > > that affect confidentiality (for example spectre v1) are listed as not covered
> > > by TDX but remaining SW responsibility (as they are now).
> >
> > Thanks for the additional info, Elena. Given that clarification, I
> > definitely see direct map removal and TDX as complementary.
>
> Jus to clarify to make sure my comment is not misunderstood.
> What I meant is that we cannot generally assume that confidentiality
> leaks from CoCo guests to host/VMM via speculative channels
> are completely impossible. Spectre V1 is a prime example of such a
> possible leak. Dave also elaborated on other potential vectors earlier.
>
> The usefulness of direct map removal for CoCo guests as a concrete
> mitigation for certain types of memory attacks must be precisely
> evaluated per each attack vector, attack vector direction (host -> guest,
> guest ->host, etc) and per each countermeasure that CoCo vendors
> provide for each such case. I don't know if there is any existing study
> that examines this for major CoCo vendors. I think this is what must
> be done for this work in order to have a strong reasoning for its usefulness.

Thanks, that makes sense. I'm a little hyperfocused on guest->host which
is the opposite direction of what is generally used for the CoCo threat
model. I think what both cases care about though is guest->guest. For
me, guest->host matters because it's a route for guest->guest (at least
in the non-CoCo world). There's some good discussion on this in David's
series on attack vector controls [1].

Like you mention, beyond direction it matters which CoCo countermeasures
are at play and how far they go during transient execution. That part is
not clear to me for the host->guest direction involving the direct map,
but agree any countermeasures like direct map removal should be
evaluated based on a better understanding of what those existing
countermeasures already cover and what attack is intended to be
mitigated.

Derek


[1] https://lore.kernel.org/lkml/LV3PR12MB92658EA6CCF18F90DAAA168394532@LV3PR12MB9265.namprd12.prod.outlook.com/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ