Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1791175rwb; Sat, 19 Nov 2022 03:44:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5aS/xfxt7wLIyzRaT5eb7mpqPUglH4SGnTa0HhzzySRFC0nQfXdt03Im2n/Oik2EF9AB6R X-Received: by 2002:a63:454:0:b0:435:2b72:cf0c with SMTP id 81-20020a630454000000b004352b72cf0cmr10133993pge.283.1668858243083; Sat, 19 Nov 2022 03:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668858243; cv=none; d=google.com; s=arc-20160816; b=nR4VJ0efRfKjWaj2X+Y+buFr2EpXjC4G4QSY/1mpz+vgg1BL1T8ZXEQdK6hJf0/4ES 9Wl6pmE9XFrrH5blA1RTI3bggVdgw6Co6EDh9WxPzqFzN9+kxSxU2vOrs6NYVrMMPKs+ fxtms10n6W25QG9QFwbpFMnQdUvE7U/4SWWef/WSPiBXrW9Mxt9JaJy3EjeissT21Bc+ Wf0Lwii9ME8HD1e0aHcybyY27Nto5AXu6rQSBYCXuoWQR9BcgZVRF1lcdNfvY5QScSzy zAoTPLTotzIbl/lqTsfvk6HoxwzSrvBGvcOQ681ud1Y0veveuuxtm8G6g7zVsCx09vGL OlXQ== 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=qzzqXgp+p3EZG/kh8YK4KXXSpuAY4zVujZgM6owSO+I=; b=xruqm6H1+yAqLUgO+R0y9Zx1NY3+l61DMX5+yiLjdSMdG4Idg9Zj4oEnKTbx+htbI8 GlhOi2nREoCKoZN0PI0KpO/03NuPNh0hQ00JCHITk4LmyGNnzHd6YX64c605cJY+ToZg sHNtKNRpiwk/rSHMYoeNEy5TgVebuJc/fyMFJAwwdPCEdljckaNbC4vqiQ2RhZJ/gbyy /go/ybrJpARl1m/cXuJRS3rKnnCO5FCwRI2JXN+S/6Me5jihzuZnPs4LItZORH7wyBUC DdFS94H5FYrHwANw3ufSga4M/lRQ7wWLdHITK84AFUZhm+SxIujoS6LVlF7+RhDUkB+J 6Drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=k7SCL6Gy; 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 kk8-20020a17090b4a0800b00205e1caca43si7088728pjb.34.2022.11.19.03.43.45; Sat, 19 Nov 2022 03:44:03 -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=k7SCL6Gy; 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 S230471AbiKSLnm (ORCPT + 99 others); Sat, 19 Nov 2022 06:43:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiKSLnl (ORCPT ); Sat, 19 Nov 2022 06:43:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6926A1BEBD; Sat, 19 Nov 2022 03:43:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id E7FC0B80A08; Sat, 19 Nov 2022 11:43:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E45EC433D6; Sat, 19 Nov 2022 11:43:36 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="k7SCL6Gy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1668858214; 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=qzzqXgp+p3EZG/kh8YK4KXXSpuAY4zVujZgM6owSO+I=; b=k7SCL6GyueUEerP1U7nBsJrRPk19foGVb4qZgKW3xnDVvtjssBuKWHlQPerkCDuxFRwCye qHNthRO35gfBi3cFbsQkL0EdjCnyEAsOx/cXsqm03YPVk5UVQ1wey7J9mAFRFL1UBPj74W /i1L9i+lsfzpcd7BMAr+oLRR0qivaMk= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 811bb0d6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 19 Nov 2022 11:43:34 +0000 (UTC) Date: Sat, 19 Nov 2022 12:43:31 +0100 From: "Jason A. Donenfeld" To: Christophe Leroy Cc: "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" , "linux-crypto@vger.kernel.org" , "x86@kernel.org" , Thomas Gleixner , Greg Kroah-Hartman , Adhemerval Zanella Netto , Carlos O'Donell Subject: Re: [PATCH v4 2/3] random: introduce generic vDSO getrandom() implementation Message-ID: References: <20221118172839.2653829-1-Jason@zx2c4.com> <20221118172839.2653829-3-Jason@zx2c4.com> <2571f72a-3420-977f-7b08-8f6216bba6a8@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2571f72a-3420-977f-7b08-8f6216bba6a8@csgroup.eu> 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 Sat, Nov 19, 2022 at 07:51:21AM +0000, Christophe Leroy wrote: > > > Le 19/11/2022 à 01:04, Jason A. Donenfeld a écrit : > > On Sat, Nov 19, 2022 at 12:55:02AM +0100, Jason A. Donenfeld wrote: > >> Sorry if I'm a bit slow here to grok what's up. > > Maybe I should also have mentionned commit ce7d8056e38b ("powerpc/vdso: > Prepare for switching VDSO to generic C implementation.") for you to > have a complete picture. > > > > > Okay, I think I see it now. That's a complicated patch for a simple idea > > because gettime is more complicated than getrandom. I suspect what you > > want is something like the below, correct? Seems easy enough. > > Yes it is exactly that, powerpc will then call __cvdso_getrandom_data() > directly and pass rng_info pointer. Okay, I'll do that and send out a v+1. Jason