Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4590250rwj; Tue, 20 Dec 2022 12:16:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5APNe//uUQ28SJl7q9so5JbBcpZ1Ns4guJ8KXWvKzWQ6ErrDFcYUxQCr/FQTzZAX9671Xj X-Received: by 2002:a05:6a20:1024:b0:aa:6efd:1883 with SMTP id a36-20020a056a20102400b000aa6efd1883mr74718487pzd.37.1671567387241; Tue, 20 Dec 2022 12:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671567387; cv=none; d=google.com; s=arc-20160816; b=oZalknPtBKF3XoXGcNtQYehDxhCj5zrkebwnTQbh/yujjpjHVBm5AQUAWxgKUX+dHF I5rgFlTLeRDGvpdgkoOnqiBKg3HQ4eIht3tdWfjtttLTJ2GLLTxq8c+ImLBaFiJfl0b5 wYI33UnPRCyiEjKlLFt7lCqO2H8Tx7+Qok5Kx9ZZ/gzUGmm1KoXgoEWc7gbsIDOHjhQs v4EczRIWjfhB8727liH2gFNlZ5vwQny0Dn1mpuyK48UFKJw5ggILspxH81YWXCLRfSgD 7wug91pM230V7maY1dFbSKVUg8NcMTOAZDpd3AkHotoEqx7uemDrv2NcwDcf8SV3NdaZ d+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QDxZGcDLQh9vAfnOEz1w0hT3Uq5MaIvFcG8VKDvjS78=; b=YJeCoQTgpwJ0Su8OuGKxdDFjhxmU0QbG7dg6L1FteciGvZJlMlY8PaU7EmpKOlRbLs lD0NfGRI1u7bDOXE559L484E8/W27Of07MNg8w4Kd34A6I9wYNV40F+k+vsbsKDQUfZx V77rTVVZll1OVv31+snmzjz0RBlDHZNECAs9gO/4mPN09RE+pnN2QmZZZ37l/aW8kkkJ 7OMDJOb8PZ5fqnFXKZ5OS0wcOfZFg4/scOB3I5EIwL7oHg4GIjWASNU62vz7JufVVIPm PfI4StaIy01+p37p23bHn5KOg9wRomJURbatqNBncFlxzXl6gdAOqPT9DDj+vErsSmwm bjJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BNIgEyD2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a631906000000b004785b00c5besi15157727pgl.378.2022.12.20.12.16.14; Tue, 20 Dec 2022 12:16:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BNIgEyD2; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S234186AbiLTUNT (ORCPT + 99 others); Tue, 20 Dec 2022 15:13:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234181AbiLTUNS (ORCPT ); Tue, 20 Dec 2022 15:13:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 211011D64E; Tue, 20 Dec 2022 12:13:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A78AA6159F; Tue, 20 Dec 2022 20:13:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2276C433EF; Tue, 20 Dec 2022 20:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671567196; bh=Gv7ILarnqG6VXDv1zDoq4dXMcpli2fdU3fYWtrhD7CU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BNIgEyD2b/kwnXbaR5eP2QBP6UOPAvQD/zXFajZWt6RT74gXhm2s6OW4N4KlIDYfC Wxj/cb6C47OFZnLUTyNjRVTrtsstBCz34eSTcFuSh8xOdIJfvtKJ0/S3YG8qtuZO+h LVw/GM01Blb4idgGSfUfT/5N9ejTRXvuE5Mw1vrfiD3+t4k4Xbat5lWBMHcLkl/46L MZPNmMJsegfvf0rTSEXW5sH0CokCzOrUgUPmh+IzXUqga3I07y9uao2n9w8QT5IQiS MZzetOEpR2Sv47PnKm1OJ3NaodmMfXpe4ekWd75YuDtjccDI1UPYcXzuqMblveH5rR DHTVp2kedMNHw== Date: Tue, 20 Dec 2022 20:13:14 +0000 From: Eric Biggers To: Christophe Leroy Cc: "Jason A. Donenfeld" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" , "tglx@linutronix.de" , "linux-crypto@vger.kernel.org" , "linux-api@vger.kernel.org" , "x86@kernel.org" , Greg Kroah-Hartman , Adhemerval Zanella Netto , Carlos O'Donell , Florian Weimer , Arnd Bergmann , Jann Horn , Christian Brauner , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH v12 0/6] implement getrandom() in vDSO Message-ID: References: <20221212185347.1286824-1-Jason@zx2c4.com> <86cfa465-2485-ff24-16f5-9014e25a0e98@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86cfa465-2485-ff24-16f5-9014e25a0e98@csgroup.eu> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Dec 20, 2022 at 05:17:52PM +0000, Christophe Leroy wrote: > Hi Jason, > > Le 12/12/2022 ? 19:53, Jason A. Donenfeld a ?crit?: > > Changes v11->v12: > > ---------------- > > - In order to avoid mlock()ing pages, and the related rlimit and fork > > inheritance issues there, Introduce VM_DROPPABLE to prevent swapping > > while meeting the cache-like requirements of vDSO getrandom(). > > > > This has some tenticles in mm/ and arch/x86/ code, so I've marked the > > two patches for that as still RFC, while the rest of the series is not > > RFC. > > > > - Mandate that opaque state blobs don't straddle page boundaries, so > > that VM_DROPPABLE can work on page-level granularity rather than > > allocation-level granularity. > > > > - Add compiler barriers to vDSO getrandom() to prevent theoretical > > reordering potential. > > > > - Initialize the trials loop counter in the chacha test. > > I would have liked to give it a try on powerpc, but the series > conflicts. I tried both on v6.1 and on linus/master from now: > Same here, I can't figure out how to apply this series. It would help if people always used the --base option to git format-patch... - Eric