Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1000210imu; Sat, 15 Dec 2018 11:47:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/UhXvFUbaY4oI821f1xv4P/Qsy5W/aGCidDBAOag+E4hKAGW4+vQlE1GybVdfper/Ivw+qv X-Received: by 2002:a65:6148:: with SMTP id o8mr6988684pgv.451.1544903236000; Sat, 15 Dec 2018 11:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544903235; cv=none; d=google.com; s=arc-20160816; b=KM7zOOmrV+gJTAGPe4aucg/7nwUDroj1FEI0AHAM7S50p+cczCJ2VU8vHAKudlEiTu NBvw1s5MLmvZaVTuDsy1C29rRerCcd1KA+ldjizxHBcz8XVZx9apWeKrob2TN/kIaTrB rb7cLrsd1eUPXXVthbXEyf313GhieC8d2yB5Z/R4s6JjZkvxXDubJ1HEeKnNas+eYY3c RkDbUM1inWnMkxNLWPmuXMpgt0z2OXNXtWt2sKCDO69xr6X9k05uOjkj22b+FRF9PFmZ TSF1mwJfDP0++yNQc36CA1Y+pd6RJZvVEmPDS5L7T6WkUl9WPkvToMrvwt8PWOmCovE9 Ub8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=fPk+lsZhCRV07RpVrwDhsdvg7kRIKBXHb4AqVqoxyxk=; b=emNFoF72I+Nbz2Jal+h1DSCmqny3rshAKA3pbrqFmMpqQHvZMlW8XjJ+/cb5FVbOsn MtAb61x9qpump53K83uMtEzwDfBpZVAgX7zvKM4iIPsRSKhvzOjuVif7ZoWH4i5Qt48N GC9bVENuU9/0dg0VQrIiOQcDQKJoy3MlqPRFnrCw/p5ZUb0uABZB4nTeNF37P/qsHa/c 20OpqYFYe41MvEPODHwO+qnv9PgVNnyOJVEZwJGuFLY9NkoAHfrW1xVPBE0XPKpIkjew FriQ9AF61mT5wdEUR8gGCw1JGNvKb6bManQ19EB1mTzD9qAEP3lwd/Hzn7YjzH3PivA3 NErw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si7014589pgj.582.2018.12.15.11.47.00; Sat, 15 Dec 2018 11:47:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729265AbeLOTqN (ORCPT + 99 others); Sat, 15 Dec 2018 14:46:13 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:54198 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbeLOTqM (ORCPT ); Sat, 15 Dec 2018 14:46:12 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::cf9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E44E714E8B9D2; Sat, 15 Dec 2018 11:46:11 -0800 (PST) Date: Sat, 15 Dec 2018 11:46:11 -0800 (PST) Message-Id: <20181215.114611.1702968159223320911.davem@davemloft.net> To: ptikhomirov@virtuozzo.com Cc: mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, khorenko@virtuozzo.com Subject: Re: [PATCH] vhost: return EINVAL if iovecs size does not match the message size From: David Miller In-Reply-To: <20181213145350.5454-1-ptikhomirov@virtuozzo.com> References: <20181213145350.5454-1-ptikhomirov@virtuozzo.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 15 Dec 2018 11:46:12 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pavel Tikhomirov Date: Thu, 13 Dec 2018 17:53:50 +0300 > We've failed to copy and process vhost_iotlb_msg so let userspace at > least know about it. For instance before these patch the code below runs > without any error: ... > Signed-off-by: Pavel Tikhomirov Michael, will you be taking this in via your tree? Thanks.