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: <aTjNLdxvmAMuo7VG@google.com>
Date: Tue, 9 Dec 2025 17:30:21 -0800
From: Sean Christopherson <seanjc@...gle.com>
To: Vlastimil Babka <vbabka@...e.cz>
Cc: Michael Roth <michael.roth@....com>, FirstName LastName <vannapurve@...gle.com>, ackerleytng@...gle.com, 
	aik@....com, ashish.kalra@....com, david@...hat.com, ira.weiny@...el.com, 
	kvm@...r.kernel.org, liam.merwick@...cle.com, linux-coco@...ts.linux.dev, 
	linux-kernel@...r.kernel.org, linux-mm@...ck.org, pbonzini@...hat.com, 
	thomas.lendacky@....com, yan.y.zhao@...el.com
Subject: Re: [PATCH 3/3] KVM: guest_memfd: GUP source pages prior to
 populating guest memory

On Mon, Dec 08, 2025, Vlastimil Babka wrote:
> On 12/4/25 00:12, Michael Roth wrote:
> > On Wed, Dec 03, 2025 at 08:59:10PM +0000, FirstName LastName wrote:
> >> 
> >> e.g. 4K page based population logic will keep things simple and can be
> >> further simplified if we can add PAGE_ALIGNED(params.uaddr) restriction.
> > 
> > I'm still hesitant to pull the trigger on retroactively enforcing
> > page-aligned uaddr for SNP, but if the maintainers are good with it then
> > no objection from me.
> 
> IMHO it would be for the best. If there are no known users that would break,
> it's worth trying. The "do not break userspace" rule isn't about eliminating
> any theoretical possibility, but indeed about known breakages (and reacting
> appropriately to reports about previously unknown breakages). Perhaps any
> such users would be also willing to adjust and not demand a revert.

+1.  This code is already crazy complex, we should jump at any simplification
possible.  Especially since we expect in-place conversion to dominate usage in
the future, and in-place conversion is incompatible with an unaligned source.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ