lkml.org 
[lkml]   [2022]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 2/3] random: introduce generic vDSO getrandom() implementation
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

\
 
 \ /
  Last update: 2022-11-19 12:43    [W:0.073 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site