From: Markus Elfring Subject: Re: [v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req() Date: Tue, 26 May 2020 10:25:28 +0200 Message-ID: References: <20200526031956.1897-1-longpeng2@huawei.com> <20200526031956.1897-2-longpeng2@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: In-Reply-To: Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org To: "Longpeng (Mike)" , linux-crypto@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: Corentin Labbe , Herbert Xu , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Gonglei , linux-kernel@vger.kernel.org, stable@vger.kernel.org List-Id: virtualization@lists.linuxfoundation.org >> I suggest to move the addition of such input parameter validation >> to a separate update step. >> > Um...The 'src_nents' will be used as a loop condition, > so validate it here is needed ? Would you prefer to add such checking as the first update in another small patch series? Regards, Markus