All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rng-tools: disable libjitterentropy due to cpu usage
@ 2022-05-02 21:10 Wes Malone
  2022-05-02 21:10 ` Wes Malone
  0 siblings, 1 reply; 8+ messages in thread
From: Wes Malone @ 2022-05-02 21:10 UTC (permalink / raw)
  To: openembedded-core

Since updating to kirkstone from hardknott, after boot rngd maxes out my
rpi4's processor for minutes initializing JITTER. The sustained CPU
usage was triggering my resource monitoring alerts. Changing config to
disable jitter with -x jitter stops the initialization process and uses
just the pi's hardware rng source. Since that solved the problem I
disabled building rng-tools with libjitterentropy enabled.

I submitted the change to meta-raspberrypi (pull #1057) where kraj noted
that the CPU spike is seen even on qemu so the change should go in the
core layer.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-02 21:10 [PATCH] rng-tools: disable libjitterentropy due to cpu usage Wes Malone
@ 2022-05-02 21:10 ` Wes Malone
  2022-05-02 21:33   ` [OE-core] " William Kennington
  0 siblings, 1 reply; 8+ messages in thread
From: Wes Malone @ 2022-05-02 21:10 UTC (permalink / raw)
  To: openembedded-core; +Cc: Wes Malone

After boot rngd maxes out the processor initializing JITTER entropy for
some minutes. Here we disable libjitterentropy in favor of only using
the hardware random source via config.

Signed-off-by: Wes Malone <wes@mitsi.com>
---
 meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
index 0696351903..4eed060960 100644
--- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
@@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
 
 EXTRA_OECONF = "--without-rtlsdr"
 
-PACKAGECONFIG ??= "libjitterentropy"
 PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
 
 PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
-- 
2.36.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-02 21:10 ` Wes Malone
@ 2022-05-02 21:33   ` William Kennington
  2022-05-03  4:46     ` Alexander Kanavin
  0 siblings, 1 reply; 8+ messages in thread
From: William Kennington @ 2022-05-02 21:33 UTC (permalink / raw)
  To: Wes Malone; +Cc: openembedded-core

Isn't this desirable if you don't have an hwrng? We want to generate
entropy so we can perform cryptographic operations by default if we
bring in rng-tools.

On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
>
> After boot rngd maxes out the processor initializing JITTER entropy for
> some minutes. Here we disable libjitterentropy in favor of only using
> the hardware random source via config.
>
> Signed-off-by: Wes Malone <wes@mitsi.com>
> ---
>  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> index 0696351903..4eed060960 100644
> --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
>
>  EXTRA_OECONF = "--without-rtlsdr"
>
> -PACKAGECONFIG ??= "libjitterentropy"
>  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
>
>  PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
> --
> 2.36.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#165176): https://lists.openembedded.org/g/openembedded-core/message/165176
> Mute This Topic: https://lists.openembedded.org/mt/90845997/4454469
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [wak@google.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-02 21:33   ` [OE-core] " William Kennington
@ 2022-05-03  4:46     ` Alexander Kanavin
  2022-05-03 15:22       ` Wes Malone
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Kanavin @ 2022-05-03  4:46 UTC (permalink / raw)
  To: wak; +Cc: Wes Malone, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]

Yes, I wonder why this needs to be disabled altogether at build time. Can’t
rng-tools figure out the right sources at run time?

Alex

On Mon 2. May 2022 at 23.33, William A. Kennington III via
lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:

> Isn't this desirable if you don't have an hwrng? We want to generate
> entropy so we can perform cryptographic operations by default if we
> bring in rng-tools.
>
> On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
> >
> > After boot rngd maxes out the processor initializing JITTER entropy for
> > some minutes. Here we disable libjitterentropy in favor of only using
> > the hardware random source via config.
> >
> > Signed-off-by: Wes Malone <wes@mitsi.com>
> > ---
> >  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > index 0696351903..4eed060960 100644
> > --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
> >
> >  EXTRA_OECONF = "--without-rtlsdr"
> >
> > -PACKAGECONFIG ??= "libjitterentropy"
> >  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
> >
> >  PACKAGECONFIG[libargp] =
> "--with-libargp,--without-libargp,argp-standalone,"
> > --
> > 2.36.0
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#165177):
> https://lists.openembedded.org/g/openembedded-core/message/165177
> Mute This Topic: https://lists.openembedded.org/mt/90845997/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3540 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-03  4:46     ` Alexander Kanavin
@ 2022-05-03 15:22       ` Wes Malone
  2022-05-03 16:21         ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Wes Malone @ 2022-05-03 15:22 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: wak, openembedded-core

> Isn't this desirable if you don't have an hwrng?
Perhaps what's needed then is a 'hwrng' in MACHINE_FEATURES?

> Can’t rng-tools figure out the right sources at run time?
rng-tools enables jitter by default if it's built in, even if hwrng is
available. Maybe it's faster to do this on more powerful machines but
it's disruptive to run the cpu at max for so long on my pi's.

We could also disable it with the /etc/defaults file with `-x jitter`.


On Mon, May 2, 2022 at 11:47 PM Alexander Kanavin
<alex.kanavin@gmail.com> wrote:
>
> Yes, I wonder why this needs to be disabled altogether at build time. Can’t rng-tools figure out the right sources at run time?
>
> Alex
>
> On Mon 2. May 2022 at 23.33, William A. Kennington III via lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:
>>
>> Isn't this desirable if you don't have an hwrng? We want to generate
>> entropy so we can perform cryptographic operations by default if we
>> bring in rng-tools.
>>
>> On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
>> >
>> > After boot rngd maxes out the processor initializing JITTER entropy for
>> > some minutes. Here we disable libjitterentropy in favor of only using
>> > the hardware random source via config.
>> >
>> > Signed-off-by: Wes Malone <wes@mitsi.com>
>> > ---
>> >  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
>> >  1 file changed, 1 deletion(-)
>> >
>> > diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
>> > index 0696351903..4eed060960 100644
>> > --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
>> > +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
>> > @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
>> >
>> >  EXTRA_OECONF = "--without-rtlsdr"
>> >
>> > -PACKAGECONFIG ??= "libjitterentropy"
>> >  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
>> >
>> >  PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
>> > --
>> > 2.36.0
>> >
>> >
>> >
>> >
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#165177): https://lists.openembedded.org/g/openembedded-core/message/165177
>> Mute This Topic: https://lists.openembedded.org/mt/90845997/1686489
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-03 15:22       ` Wes Malone
@ 2022-05-03 16:21         ` Khem Raj
  2022-05-05 21:34           ` Wes Malone
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2022-05-03 16:21 UTC (permalink / raw)
  To: Wes Malone
  Cc: Alexander Kanavin, William A. Kennington III,
	Patches and discussions about the oe-core layer

On Tue, May 3, 2022 at 8:23 AM Wes Malone <wes@mitsi.com> wrote:
>
> > Isn't this desirable if you don't have an hwrng?
> Perhaps what's needed then is a 'hwrng' in MACHINE_FEATURES?
>
> > Can’t rng-tools figure out the right sources at run time?
> rng-tools enables jitter by default if it's built in, even if hwrng is
> available. Maybe it's faster to do this on more powerful machines but
> it's disruptive to run the cpu at max for so long on my pi's.
>
> We could also disable it with the /etc/defaults file with `-x jitter`.
>

I wonder if rng-tools is still needed after 5.6+ kernel after this commit [1]
Arch Linux wiki says no [2]. We added this as a recommendation to
openssh by default [3] [4],
I wonder if we can turn that off by default and perhaps add havaged as
dependency if needed.
[5] changed to use /dev/hwrng which seems right change to me. I also
wonder if we can tune
the resource requirement for rng-tools with limiting cpu threads and
buffers allocated for this.

[1] https://github.com/torvalds/linux/commit/30c08efec8884fb106b8e57094baa51bb4c44e32
[2] https://wiki.archlinux.org/title/Rng-tools
[3] https://git.openembedded.org/openembedded-core/commit/?id=9b01375236e19e3366c58877c4154d7c71632984
[4] https://git.openembedded.org/openembedded-core/commit/?id=fe99349c1bd72b69d22ab0dc52b8825d3157b8e7
[5] https://git.openembedded.org/openembedded-core/commit/?id=f1dc9ac46710814c27cae2d22e79c84a9522993a

>
> On Mon, May 2, 2022 at 11:47 PM Alexander Kanavin
> <alex.kanavin@gmail.com> wrote:
> >
> > Yes, I wonder why this needs to be disabled altogether at build time. Can’t rng-tools figure out the right sources at run time?
> >
> > Alex
> >
> > On Mon 2. May 2022 at 23.33, William A. Kennington III via lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:
> >>
> >> Isn't this desirable if you don't have an hwrng? We want to generate
> >> entropy so we can perform cryptographic operations by default if we
> >> bring in rng-tools.
> >>
> >> On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
> >> >
> >> > After boot rngd maxes out the processor initializing JITTER entropy for
> >> > some minutes. Here we disable libjitterentropy in favor of only using
> >> > the hardware random source via config.
> >> >
> >> > Signed-off-by: Wes Malone <wes@mitsi.com>
> >> > ---
> >> >  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
> >> >  1 file changed, 1 deletion(-)
> >> >
> >> > diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> >> > index 0696351903..4eed060960 100644
> >> > --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> >> > +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> >> > @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
> >> >
> >> >  EXTRA_OECONF = "--without-rtlsdr"
> >> >
> >> > -PACKAGECONFIG ??= "libjitterentropy"
> >> >  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
> >> >
> >> >  PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
> >> > --
> >> > 2.36.0
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#165204): https://lists.openembedded.org/g/openembedded-core/message/165204
> Mute This Topic: https://lists.openembedded.org/mt/90845997/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-03 16:21         ` Khem Raj
@ 2022-05-05 21:34           ` Wes Malone
  2022-05-05 22:50             ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Wes Malone @ 2022-05-05 21:34 UTC (permalink / raw)
  To: Khem Raj
  Cc: Alexander Kanavin, William A. Kennington III,
	Patches and discussions about the oe-core layer

I'm not well versed enough in these details to make a decision but I'd
like to help fix it once the decision is made. I of course moved on
with a small append on my end but I'd like to help fix this since it
affected my project.

On Tue, May 3, 2022 at 11:21 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Tue, May 3, 2022 at 8:23 AM Wes Malone <wes@mitsi.com> wrote:
> >
> > > Isn't this desirable if you don't have an hwrng?
> > Perhaps what's needed then is a 'hwrng' in MACHINE_FEATURES?
> >
> > > Can’t rng-tools figure out the right sources at run time?
> > rng-tools enables jitter by default if it's built in, even if hwrng is
> > available. Maybe it's faster to do this on more powerful machines but
> > it's disruptive to run the cpu at max for so long on my pi's.
> >
> > We could also disable it with the /etc/defaults file with `-x jitter`.
> >
>
> I wonder if rng-tools is still needed after 5.6+ kernel after this commit [1]
> Arch Linux wiki says no [2]. We added this as a recommendation to
> openssh by default [3] [4],
> I wonder if we can turn that off by default and perhaps add havaged as
> dependency if needed.
> [5] changed to use /dev/hwrng which seems right change to me. I also
> wonder if we can tune
> the resource requirement for rng-tools with limiting cpu threads and
> buffers allocated for this.
>
> [1] https://github.com/torvalds/linux/commit/30c08efec8884fb106b8e57094baa51bb4c44e32
> [2] https://wiki.archlinux.org/title/Rng-tools
> [3] https://git.openembedded.org/openembedded-core/commit/?id=9b01375236e19e3366c58877c4154d7c71632984
> [4] https://git.openembedded.org/openembedded-core/commit/?id=fe99349c1bd72b69d22ab0dc52b8825d3157b8e7
> [5] https://git.openembedded.org/openembedded-core/commit/?id=f1dc9ac46710814c27cae2d22e79c84a9522993a
>
> >
> > On Mon, May 2, 2022 at 11:47 PM Alexander Kanavin
> > <alex.kanavin@gmail.com> wrote:
> > >
> > > Yes, I wonder why this needs to be disabled altogether at build time. Can’t rng-tools figure out the right sources at run time?
> > >
> > > Alex
> > >
> > > On Mon 2. May 2022 at 23.33, William A. Kennington III via lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:
> > >>
> > >> Isn't this desirable if you don't have an hwrng? We want to generate
> > >> entropy so we can perform cryptographic operations by default if we
> > >> bring in rng-tools.
> > >>
> > >> On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
> > >> >
> > >> > After boot rngd maxes out the processor initializing JITTER entropy for
> > >> > some minutes. Here we disable libjitterentropy in favor of only using
> > >> > the hardware random source via config.
> > >> >
> > >> > Signed-off-by: Wes Malone <wes@mitsi.com>
> > >> > ---
> > >> >  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
> > >> >  1 file changed, 1 deletion(-)
> > >> >
> > >> > diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > >> > index 0696351903..4eed060960 100644
> > >> > --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > >> > +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > >> > @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
> > >> >
> > >> >  EXTRA_OECONF = "--without-rtlsdr"
> > >> >
> > >> > -PACKAGECONFIG ??= "libjitterentropy"
> > >> >  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
> > >> >
> > >> >  PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
> > >> > --
> > >> > 2.36.0
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#165204): https://lists.openembedded.org/g/openembedded-core/message/165204
> > Mute This Topic: https://lists.openembedded.org/mt/90845997/1997914
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH] rng-tools: disable libjitterentropy due to cpu usage
  2022-05-05 21:34           ` Wes Malone
@ 2022-05-05 22:50             ` Khem Raj
  0 siblings, 0 replies; 8+ messages in thread
From: Khem Raj @ 2022-05-05 22:50 UTC (permalink / raw)
  To: Wes Malone
  Cc: Alexander Kanavin, William A. Kennington III,
	Patches and discussions about the oe-core layer

one way is to make rng-tools use less resources on embedded devices
perhaps limit the number of cores its give and buffer sizes.
secondly send a patch to remove openssh dependency on rng-tools perhaps

On Thu, May 5, 2022 at 2:34 PM Wes Malone <wes@mitsi.com> wrote:
>
> I'm not well versed enough in these details to make a decision but I'd
> like to help fix it once the decision is made. I of course moved on
> with a small append on my end but I'd like to help fix this since it
> affected my project.
>
> On Tue, May 3, 2022 at 11:21 AM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Tue, May 3, 2022 at 8:23 AM Wes Malone <wes@mitsi.com> wrote:
> > >
> > > > Isn't this desirable if you don't have an hwrng?
> > > Perhaps what's needed then is a 'hwrng' in MACHINE_FEATURES?
> > >
> > > > Can’t rng-tools figure out the right sources at run time?
> > > rng-tools enables jitter by default if it's built in, even if hwrng is
> > > available. Maybe it's faster to do this on more powerful machines but
> > > it's disruptive to run the cpu at max for so long on my pi's.
> > >
> > > We could also disable it with the /etc/defaults file with `-x jitter`.
> > >
> >
> > I wonder if rng-tools is still needed after 5.6+ kernel after this commit [1]
> > Arch Linux wiki says no [2]. We added this as a recommendation to
> > openssh by default [3] [4],
> > I wonder if we can turn that off by default and perhaps add havaged as
> > dependency if needed.
> > [5] changed to use /dev/hwrng which seems right change to me. I also
> > wonder if we can tune
> > the resource requirement for rng-tools with limiting cpu threads and
> > buffers allocated for this.
> >
> > [1] https://github.com/torvalds/linux/commit/30c08efec8884fb106b8e57094baa51bb4c44e32
> > [2] https://wiki.archlinux.org/title/Rng-tools
> > [3] https://git.openembedded.org/openembedded-core/commit/?id=9b01375236e19e3366c58877c4154d7c71632984
> > [4] https://git.openembedded.org/openembedded-core/commit/?id=fe99349c1bd72b69d22ab0dc52b8825d3157b8e7
> > [5] https://git.openembedded.org/openembedded-core/commit/?id=f1dc9ac46710814c27cae2d22e79c84a9522993a
> >
> > >
> > > On Mon, May 2, 2022 at 11:47 PM Alexander Kanavin
> > > <alex.kanavin@gmail.com> wrote:
> > > >
> > > > Yes, I wonder why this needs to be disabled altogether at build time. Can’t rng-tools figure out the right sources at run time?
> > > >
> > > > Alex
> > > >
> > > > On Mon 2. May 2022 at 23.33, William A. Kennington III via lists.openembedded.org <wak=google.com@lists.openembedded.org> wrote:
> > > >>
> > > >> Isn't this desirable if you don't have an hwrng? We want to generate
> > > >> entropy so we can perform cryptographic operations by default if we
> > > >> bring in rng-tools.
> > > >>
> > > >> On Mon, May 2, 2022 at 2:10 PM Wes Malone <wes@mitsi.com> wrote:
> > > >> >
> > > >> > After boot rngd maxes out the processor initializing JITTER entropy for
> > > >> > some minutes. Here we disable libjitterentropy in favor of only using
> > > >> > the hardware random source via config.
> > > >> >
> > > >> > Signed-off-by: Wes Malone <wes@mitsi.com>
> > > >> > ---
> > > >> >  meta/recipes-support/rng-tools/rng-tools_6.15.bb | 1 -
> > > >> >  1 file changed, 1 deletion(-)
> > > >> >
> > > >> > diff --git a/meta/recipes-support/rng-tools/rng-tools_6.15.bb b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > > >> > index 0696351903..4eed060960 100644
> > > >> > --- a/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > > >> > +++ b/meta/recipes-support/rng-tools/rng-tools_6.15.bb
> > > >> > @@ -21,7 +21,6 @@ inherit autotools update-rc.d systemd pkgconfig
> > > >> >
> > > >> >  EXTRA_OECONF = "--without-rtlsdr"
> > > >> >
> > > >> > -PACKAGECONFIG ??= "libjitterentropy"
> > > >> >  PACKAGECONFIG:libc-musl = "libargp libjitterentropy"
> > > >> >
> > > >> >  PACKAGECONFIG[libargp] = "--with-libargp,--without-libargp,argp-standalone,"
> > > >> > --
> > > >> > 2.36.0
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >>
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#165204): https://lists.openembedded.org/g/openembedded-core/message/165204
> > > Mute This Topic: https://lists.openembedded.org/mt/90845997/1997914
> > > Group Owner: openembedded-core+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-05 22:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 21:10 [PATCH] rng-tools: disable libjitterentropy due to cpu usage Wes Malone
2022-05-02 21:10 ` Wes Malone
2022-05-02 21:33   ` [OE-core] " William Kennington
2022-05-03  4:46     ` Alexander Kanavin
2022-05-03 15:22       ` Wes Malone
2022-05-03 16:21         ` Khem Raj
2022-05-05 21:34           ` Wes Malone
2022-05-05 22:50             ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.