public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Steven Sistare <steven.sistare@oracle.com>,
	"Tian, Kevin" <kevin.tian@intel.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH] vfio/type1: Cleanup remaining vaddr removal/update fragments
Date: Mon, 12 Dec 2022 17:04:24 -0700	[thread overview]
Message-ID: <20221212170424.204bdb9a.alex.williamson@redhat.com> (raw)
In-Reply-To: <Y5e6zB3tW2D/ULlQ@ziepe.ca>

On Mon, 12 Dec 2022 19:35:40 -0400
Jason Gunthorpe <jgg@ziepe.ca> wrote:

> On Mon, Dec 12, 2022 at 04:29:48PM -0700, Alex Williamson wrote:
> > On Mon, 12 Dec 2022 19:08:57 -0400
> > Jason Gunthorpe <jgg@ziepe.ca> wrote:
> >   
> > > On Mon, Dec 12, 2022 at 02:26:51PM -0700, Alex Williamson wrote:  
> > > > On Mon, 12 Dec 2022 15:59:11 -0500
> > > > Steven Sistare <steven.sistare@oracle.com> wrote:
> > > >     
> > > > > On 12/12/2022 10:58 AM, Alex Williamson wrote:    
> > > > > > On Mon, 12 Dec 2022 09:17:54 -0400
> > > > > > Jason Gunthorpe <jgg@ziepe.ca> wrote:
> > > > > >       
> > > > > >> On Sat, Dec 10, 2022 at 09:14:06AM -0500, Steven Sistare wrote:
> > > > > >>      
> > > > > >>> Thank you for your thoughtful response.  Rather than debate the degree of
> > > > > >>> of vulnerability, I propose an alternate solution.  The technical crux of
> > > > > >>> the matter is support for mediated devices.          
> > > > > >>
> > > > > >> I'm not sure I'm convinced about that. It is easy to make problematic
> > > > > >> situations with mdevs, but that doesn't mean other cases don't exist
> > > > > >> too eg what happens if userspace suspends and then immediately does
> > > > > >> something to trigger a domain attachment? Doesn't it still deadlock
> > > > > >> the kernel?      
> > > > > > 
> > > > > > The opportunity for that to deadlock isn't obvious to me, a replay
> > > > > > would be stalled waiting for invalid vaddrs, but this is essentially
> > > > > > the user deadlocking themselves.  There's also code there to handle the
> > > > > > process getting killed while waiting, making it interruptible.  Thanks,      
> > > > > 
> > > > > I will submit new patches tomorrow to exclude mdevs.  Almost done.    
> > > > 
> > > > I've dropped the removal commits from my next branch in the interim.    
> > > 
> > > Woah, please don't do that - I already built and sent pull requests
> > > assuming this, there are conflicts.  
> > 
> > I've done merges both ways with your iommufd pull request and don't see
> > any conflicts relative to these changes.  Kconfig, Makefile, and
> > vfio_main.c related to virq integration and group extraction are the
> > only conflicts.   
> 
> I got an extra hunk in the header file
> 
> > Besides, it's already pushed and I don't have any references to the
> > old head, so someone would need to provide it if we wanted to keep
> > the old hashes.  
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git/tag/?h=for-linus-iommufd-merged
> https://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git/commit/?h=for-linus-iommufd-merged&id=e9a1f0f32d86c05f01878a0448384a46a453abc7

Ok, I do still have that reference around.  Thanks.

> > > Why would we not revert everything from 6.2 - that is what we agreed
> > > to do?  
> > 
> > The decision to revert was based on the current interface being buggy,
> > abandoned, and re-implemented.  It doesn't seem that there's much future
> > for the current interface, but Steve has stepped up to restrict the
> > current implementation to non-mdev devices, which resolves your concern
> > regarding unlimited user blocking of kernel threads afaict, and we'll
> > see what he does with locked memory.    
> 
> Except nobody has seen this yet, and it can't go into 6.2 at this
> point (see Linus's rather harsh remarks on late work for v6.2)

We already outlined earlier in this thread the criteria that prompted
us to tag the revert for stable, which was Steve's primary objection in
the short term.  I can't in good faith push forward with a revert,
including stable, if Steve is working on a proposal to resolve the
issues prompting us to accelerate the code removal.  Depending on the
scope of Steve's proposal, I think we might be able to still consider
this a fix for v6.2.  Thanks,

Alex


  reply	other threads:[~2022-12-13  0:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 21:45 [PATCH] vfio/type1: Cleanup remaining vaddr removal/update fragments Alex Williamson
2022-12-07 23:21 ` Jason Gunthorpe
2022-12-08  7:56 ` Tian, Kevin
2022-12-08 16:40   ` Alex Williamson
2022-12-09 18:40     ` Steven Sistare
2022-12-09 19:42       ` Alex Williamson
2022-12-09 19:52         ` Steven Sistare
2022-12-09 21:01           ` Alex Williamson
2022-12-10 14:14             ` Steven Sistare
2022-12-12 13:17               ` Jason Gunthorpe
2022-12-12 13:54                 ` Steven Sistare
2022-12-12 15:58                 ` Alex Williamson
2022-12-12 20:59                   ` Steven Sistare
2022-12-12 21:26                     ` Alex Williamson
2022-12-12 23:08                       ` Jason Gunthorpe
2022-12-12 23:29                         ` Alex Williamson
2022-12-12 23:35                           ` Jason Gunthorpe
2022-12-13  0:04                             ` Alex Williamson [this message]
2022-12-13  0:11                               ` Jason Gunthorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221212170424.204bdb9a.alex.williamson@redhat.com \
    --to=alex.williamson@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=steven.sistare@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox