Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09D152119 for ; Sat, 19 Nov 2022 11:43:37 +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> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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> 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