From: "Michael S. Tsirkin" Date: Wed, 18 Nov 2020 08:59:55 +0000 Subject: Re: [PATCH net] vhost_vdpa: Return -EFUALT if copy_from_user() fails Message-Id: <20201118035912-mutt-send-email-mst@kernel.org> List-Id: References: <20201023120853.GI282278@mwanda> <20201023113326-mutt-send-email-mst@kernel.org> <4485cc8d-ac69-c725-8493-eda120e29c41@redhat.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Jason Wang Cc: Dan Carpenter , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, kuba@kernel.org On Wed, Nov 18, 2020 at 02:08:17PM +0800, Jason Wang wrote: > > On 2020/10/26 上午10:59, Jason Wang wrote: > > > > On 2020/10/23 下午11:34, Michael S. Tsirkin wrote: > > > On Fri, Oct 23, 2020 at 03:08:53PM +0300, Dan Carpenter wrote: > > > > The copy_to/from_user() functions return the number of bytes which we > > > > weren't able to copy but the ioctl should return -EFAULT if they fail. > > > > > > > > Fixes: a127c5bbb6a8 ("vhost-vdpa: fix backend feature ioctls") > > > > Signed-off-by: Dan Carpenter > > > Acked-by: Michael S. Tsirkin > > > Needed for stable I guess. > > > > > > Agree. > > > > Acked-by: Jason Wang > > > Hi Michael. > > I don't see this in your tree, please consider to merge. > > Thanks > I do see it there: commit 7922460e33c81f41e0d2421417228b32e6fdbe94 Author: Dan Carpenter Date: Fri Oct 23 15:08:53 2020 +0300 vhost_vdpa: Return -EFAULT if copy_from_user() fails the reason you can't find it is probably because I fixed up a typo in the subject. -- MST