Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2303359imu; Thu, 24 Jan 2019 10:24:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN7QiRGErrLQn33ePBgahYsSqv0nd1gnd7P4mAq2vd3Ry6C4wT9207uVNsMl2kIzqInHChja X-Received: by 2002:a63:f844:: with SMTP id v4mr6880076pgj.82.1548354245259; Thu, 24 Jan 2019 10:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548354245; cv=none; d=google.com; s=arc-20160816; b=SSQPV8Tz2r15gkXlqZNfQppobRtJrJsDSew0/j9/S5JeGbr0sbtVoRhAHNC3Bxqirp 1q9iV8rjSVc4ND6/dTJaMDHFIYmixhVcPqi3Zk0qcY5uXNlKA+2xAmep5taVhZ2m1Ps+ ES/4ELQ8BtK+Xqu32GseMgxCxUDHLyqLs9CgVEkGY7KBeZHM7zpeFeKLA6hinjaZnV9f esENWPzFD5PO3O9GMyI2C72Z8RcnywNHrM0U6vw06AiOq4Y9Jks16NU4jMwccFoQZML8 60FTj3a5tA0y0yqUJUgDkhcn1Wzjen2CFrDwnXpTL4XZUIPiv/n/eXBfWeZALDzpSGgl zG9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Y25mMFAs/Z7xq2+IDjiPOwyO9N44IFY1JpZDKZ5aVPg=; b=0qzMqbmfMcaX6A2AlZAHdPPyl7Rqv3SONAZs/DC5BI6pgJBCAzFfr2dEdmAx5nkb1p yIrJ9DmUPVZU4g+3RXusJ7nWXrm13AU3srfFCxIro7DxOOG79vSaC+2pKIQTiiKbvsI1 5KnhYhtsNpxiXU1sn6GuyyDZdtznAnUP4qz2k9fum6rPxmRysk1L3+zDagv12xmzRhde /+k+D0XnyVmdx8vYQ2ZySTIqEUG24c6VwA9vQtl+uYF+zEIYMgebSrqLyDnsDwNHkXob SS38wJ57G58NuQW9dTLOrQjundUTcHH310OJlqQRvX2UeEksoDO1ut1xlkySgXJQKbsL jFOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PV2BA+gI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si20212953pgi.158.2019.01.24.10.23.49; Thu, 24 Jan 2019 10:24:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PV2BA+gI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726802AbfAXSWa (ORCPT + 99 others); Thu, 24 Jan 2019 13:22:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:47806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfAXSWa (ORCPT ); Thu, 24 Jan 2019 13:22:30 -0500 Received: from gmail.com (unknown [104.132.1.77]) (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 A16202184C; Thu, 24 Jan 2019 18:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548354149; bh=dgd4MLRhgS7sjOwwgjVTMbOh3xyNoB00wMC+ZZVqkzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PV2BA+gI9eyiSXiMmyUtCImdil5lE+jj9m5Dmsd+efIZUuYFFq/+CIiRBc8JFF1lN WcBFoUOPUXsXXwcp0irgQ9ZjYak0LZ2z8H4wNYjM3iXLkGtOgpyDyqJk3azBN+gvpS uWz1rZkuq7RmZNlj5UOlJpqcG5Q/cLKDbdGj9G/8= Date: Thu, 24 Jan 2019 10:22:28 -0800 From: Eric Biggers To: Herbert Xu Cc: Ard Biesheuvel , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Linux Kernel Mailing List , "Jason A . Donenfeld" Subject: Re: [RFC/RFT PATCH 00/15] crypto: improved skcipher, aead, and hash tests Message-ID: <20190124182226.GA10448@gmail.com> References: <20190123224926.250525-1-ebiggers@kernel.org> <20190124084818.GA650@sol.localdomain> <20190124092359.hvizqdi2ptjdsot7@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124092359.hvizqdi2ptjdsot7@gondor.apana.org.au> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 05:23:59PM +0800, Herbert Xu wrote: > On Thu, Jan 24, 2019 at 09:50:35AM +0100, Ard Biesheuvel wrote: > > > > Thanks for yet another round of cleanup > > > > I'll look into these, but I'd like to clarify one thing first. > > > > IIUC, you are trying to deal with the case where a single scatterlist > > element describes a range that strides two pages, and I wonder if that > > is a valid use of scatterlists in the first place. > > > > Herbert? > > Yes it is valid. IIRC the network stack may generate such a > scatterlist. > Also it can easily happen with kmalloced buffers, e.g. buf = kmalloc(10000, GFP_KERNEL); [...] sg_init_one(&sg, buf, 10000); - Eric