From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [patch] vfio/pci: return -EFAULT if copy_to_user fails Date: Thu, 25 Feb 2016 14:09:44 +0300 Message-ID: <20160225110944.GH5273@mwanda> References: <20160225075212.GD7333@mwanda> <20160225111630-mutt-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alex Williamson , Eric Auger , Baptiste Reynal , Antonios Motakis , kvm@vger.kernel.org, kernel-janitors@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:39541 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760194AbcBYLJz (ORCPT ); Thu, 25 Feb 2016 06:09:55 -0500 Content-Disposition: inline In-Reply-To: <20160225111630-mutt-send-email-mst@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Feb 25, 2016 at 11:28:54AM +0200, Michael S. Tsirkin wrote: > On Thu, Feb 25, 2016 at 10:52:12AM +0300, Dan Carpenter wrote: > > The copy_to_user() function returns the number of bytes that were not > > copied but we want to return -EFAULT on error here. > > > > Fixes: 188ad9d6cbbc ('vfio/pci: Include sparse mmap capability for MSI-X table regions') > > Where's this commit? In which tree? linux-next. It only has Alex's signed off by. So likely my patch will be folded in? regards, dan carpenter