Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp788765ybe; Fri, 13 Sep 2019 06:24:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxR4R+IwLhn8E4nEHP6pQ9nsgR/DBbx65nF6mhvbNwbwbnCSgqwZTstbQaH0yoizlIx4xAd X-Received: by 2002:a50:ce53:: with SMTP id k19mr47576856edj.2.1568381088750; Fri, 13 Sep 2019 06:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568381088; cv=none; d=google.com; s=arc-20160816; b=rdmsKQ/tlixg7vxtpNU8c2vznlxHXLxKYOqVDzVGQWONxyYtqjp3p7yKeVEjT+OAO+ AcFhARpmPl9NYa5NB9/5smy7eUjLYk5meTDhwjd6PS90la/ouqaIDc+AkbBdhUWV9K6Y Gv0BHT6ecAtddNLV9mXumB+bzrDIhkx8c7H8VngGaoKCYzfjnyoAV0kmmOPA/bxh9y4/ PDDG0ag2XslnpSo9G0oT5T3KD2WoxfCEVzCpK5yrqCAKpxzzzSCIrI989UG8H9jM/oNG ogN17UoRBKK1Z3YbhNPjyRnavrOATDoMnF2+yEwdEONU7nxvp9fBTzYNj0+L7HXwu7kX ETHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p09b96/YBpZvIZkYitZYdonkm9OgFxs71HY4vjqs2ko=; b=MWHlSzgt9Cznj89zdT8SdjhpN3aGcangeaxrioAyjl2TnWAIwNBVOWsqC4QifpVXw0 YDQ43rLoTQ4Rv1E6r9vQphBLP2Jug19/zP98iRfpMlvgB+o2gqpk3Y8ESbQ0JiPgYMSW avMKoMhdzfpHKIgUnMj+/z08gq5yOdIkaoJkVWu0TeXo3oNKS4Am4CwnjjmmazDVlwIc Q9JKEZd0JCGcOLRftVSBcOT0kyEdH1h5oKsoG1Hq2TJejWOlF/p5z8TgxFeVtnCMcINf ZQHGxJqg2OBJXW2RSjlQz5s/8oNtD32tWbC3APtlY/dbI6WPghTWtDMPXjiLag/UjlGr GoVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yOydHS69; 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 y10si9188727edc.48.2019.09.13.06.24.24; Fri, 13 Sep 2019 06:24:48 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=yOydHS69; 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 S2390241AbfIMNVd (ORCPT + 99 others); Fri, 13 Sep 2019 09:21:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:51202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390835AbfIMNVb (ORCPT ); Fri, 13 Sep 2019 09:21:31 -0400 Received: from localhost (unknown [104.132.45.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0204A20717; Fri, 13 Sep 2019 13:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380890; bh=IK6b26D5Jg6cyt6MmrLyp6L1Bo7XA7kBf8VHbZLBa08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yOydHS69szjVBqUg2O4D08DVJ0O94pI24dQ6ldDFzsd7Px7KpymgZ0zygnXSQnIbu 2xEy5DVna3ISlSmNQv1AjvYW3FMlbfRxYSoGslXvqpi+0m45BMGniYJ+Wj8sIu6Tgu WfkCYPPuDUbbYv64NIOgelCf7Tpi3P9C14B1YafY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tiwei Bie , "Michael S. Tsirkin" , Jason Wang Subject: [PATCH 5.2 11/37] vhost/test: fix build for vhost test Date: Fri, 13 Sep 2019 14:07:16 +0100 Message-Id: <20190913130514.076740214@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tiwei Bie commit 93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9 upstream. Since below commit, callers need to specify the iov_limit in vhost_dev_init() explicitly. Fixes: b46a0bf78ad7 ("vhost: fix OOB in get_rx_bufs()") Cc: stable@vger.kernel.org Signed-off-by: Tiwei Bie Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang Signed-off-by: Greg Kroah-Hartman --- drivers/vhost/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -115,7 +115,7 @@ static int vhost_test_open(struct inode dev = &n->dev; vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ]; n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick; - vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX); + vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX, UIO_MAXIOV); f->private_data = n;