Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5732104rwj; Wed, 21 Dec 2022 06:26:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3u3lBNyaY1xoaC0DoNzA5dvII15FnymBto83MPgQR5zI9APZShZ1d0qh8WJhZXiRCj7ZN X-Received: by 2002:a05:6a20:cf62:b0:ab:ee20:b003 with SMTP id hz34-20020a056a20cf6200b000abee20b003mr2497214pzb.14.1671632813308; Wed, 21 Dec 2022 06:26:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671632813; cv=none; d=google.com; s=arc-20160816; b=T7cSD9xpySMH133zwBtdaB38Go6uOyxQmWH9RE6+7YP2zwO34+87rALm87Lsxys/Bh tf0D9tq5vzRYU1tgRSWiGNjASFpZttevlJw0gsi5tSt3mOClIK0MmzfLgF3pQd1hDz8H iIpx2JSI9dLr7gCGSOvOYc4PYtCMSi2jja5LRuWcfLD1XQYlc40lRPEKCQstopp2adVk Xkbuimh58+707wdPr8I5iotrG3OI2Gup5jRh3W4lIi6E+v5Ma5iGQbimeanWvUv+tKCA /+pGDQ5JSLIfLq5V840H3Cy02vO9b5yZty135OFLca+P2q4seIcNeYHWyXaCTsh73VCB EHZA== 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=8QQzlcDreGvKeI1pdR+V0dkEGrKkHpwe4Fd6Sw7snfM=; b=rWQYsx/q5eyi+1H4F4YdtefqIBL9IVf2vE+OfasP/5Scsb0zA+aLBsepDdioQN7v/8 W/wQkajRJdzQoLSLDwyhR4dO/8PiDleNYJzlI+Z2pw8J9AtzDNwRGXyXU/yao4PHagzE DES5fbYn5ZDp5SWf0FDPJDNwPXc3f0NyyT6LTJQLnQJo3Rp5cwwewOru1tPpXuC3Ln3U r5FcIGCDjhV44fjZNaXJpXJ5jGnJ3WlMJlDaUGuaq9tMIEoH5qgug2CsQmehV0KR/OJR Hi/E/JCNpbuNnXvDSxNvaA0H0CDw9+SzEoVdMUOKPWbfGLmjoWiuWpOEQJfF9fUkoaVz nH9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=lRfbtyA5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a63f914000000b00476cb3a08fcsi16708235pgi.338.2022.12.21.06.26.40; Wed, 21 Dec 2022 06:26:53 -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=@zx2c4.com header.s=20210105 header.b=lRfbtyA5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234493AbiLUO0f (ORCPT + 99 others); Wed, 21 Dec 2022 09:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbiLUO0O (ORCPT ); Wed, 21 Dec 2022 09:26:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9108723BD9; Wed, 21 Dec 2022 06:25:56 -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 1F7D8617E4; Wed, 21 Dec 2022 14:25:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D712FC433D2; Wed, 21 Dec 2022 14:25:53 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="lRfbtyA5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1671632752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8QQzlcDreGvKeI1pdR+V0dkEGrKkHpwe4Fd6Sw7snfM=; b=lRfbtyA5Ug1Tw0zhKb/BNFVoEpWyjAGCyO/CoLabvh7W3k4ANnWkdSVX9WueP0sD+6Ai0z fM66bagOmE4QBhCc6XTBVj7Ox6yRN+8yBHyMnexD8QI1Ge3QpORi6PmoQMnlF78mdrWHTA +rvAZXe36hNg+4rNK2pXFWP3l6D+F3g= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 421bb0b7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 21 Dec 2022 14:25:52 +0000 (UTC) Date: Wed, 21 Dec 2022 15:25:49 +0100 From: "Jason A. Donenfeld" To: Eric Biggers Cc: Christophe Leroy , "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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 08:13:14PM +0000, Eric Biggers wrote: > 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. Rebased v13 posted: https://lore.kernel.org/all/20221221142327.126451-1-Jason@zx2c4.com/ Jason