Skip to contentSkip to conversation

AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c)

DISCUSSION Bagas Sanjaya 3 participants 7 messages Sep 7, 2023 – Sep 26, 2023 Regressions

lore
Share & tools
lore
#0 lore raw

Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 9 lines

System: Alix board 2d13 (AMD Geode LX800) running OpenWrt 23.05.0-rc3 (kernel 5.15.127)

Steps to reproduce:

cat /dev/hwrng and see output. Output in console shows regular pattern, rngd daemon (from rng-tools) refuses to run because of low entropy from /dev/hwrng. Pattern doesn't change until I reboot system.

Important notice: This problem started somewhere between 4.14.267 (kernel used in OpenWrt 19.07.9) and my current 5.15.127.

OpenWrt developers recommended addressing this problem upstream since they did not alter this driver in any way.

See Bugzilla for the full thread.

Anyway, I'm adding it to regzbot:

#regzbot ^introduced: v4.14.267..v5.15.127 #regzbot title: predictable urandom output on Alix 2d13

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217882

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

which regression to add to the tracking (Was: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c))

Hi Bagas! Thanks again for all the work your do, it helps a lot. But it might be better to discuss something related to a message of yours from earlier today.

Quoted 4 lines

Subject: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c)
Date: Thu, 7 Sep 2023 18:37:00 +0700

Quoted 14 lines

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 12 lines

System: Alix board 2d13 (AMD Geode LX800) running OpenWrt 23.05.0-rc3 (kernel 5.15.127)

Steps to reproduce:

cat /dev/hwrng and see output. Output in console shows regular pattern, rngd daemon (from rng-tools) refuses to run because of low entropy from /dev/hwrng. Pattern doesn't change until I reboot system.

Important notice: This problem started somewhere between 4.14.267 (kernel used in OpenWrt 19.07.9) and my current 5.15.127.

I wonder if it is wise or a good idea at all to (1) forward these regressions reports to the developers while (2) adding them to the regression tracking:

* I'm not sure if OpenWrt's kernel is close to vanilla; I guess many developers won't have an idea either and thus might ignore the report (which they are free to)[1].
* 5.15.y in ancient for upstream kernel standards, hence mainline developers might ignore this report (see [1])
* the span (v4.14.267..v5.15.127) is extremely large and the regression might be caused my a mainline change or by the stable team; hence it's unclear who has to handle it and thus might be ignored by both camps (see [1])
* I'm swamped with work already, so I can't follow up to each of those reports, hence adding them to the tracking is likely of no benefit for anyone.

I in this case would have asked the reporter to test mainline first before taking further action.

None of this is a big deal (and with a bit of luck some developer will look into this), but there were similar things with a few of the other reports you forwarded. I wonder how we could reach a situation that is more fruitful for everyone involved (you, me, the reporters, developers that receive mails like the one quoted above). Which leads to the question:

Are you planning to continue your regression report monitoring work for the foreseeable future? Then it might be best if I start on a "contributor guide" or something like that which mentions some basic quality aspects a report should reach before it is forwarded. Or do you have a better idea?

Ciao, Thorsten

[1]
https://linux-regtracking.leemhuis.info/post/frequent-reasons-why-linux-kernel-bug-reports-are-ignored/

#2 lore raw

Re: which regression to add to the tracking (Was: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c))

Quoted 4 lines · Thorsten Leemhuis

Hi Bagas! Thanks again for all the work your do, it helps a lot. But it might be better to discuss something related to a message of yours from earlier today.

OK, let's see.

Quoted 16 lines
Quoted 16 lines

Subject: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c)
Date: Thu, 7 Sep 2023 18:37:00 +0700

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 10 lines

System: Alix board 2d13 (AMD Geode LX800) running OpenWrt 23.05.0-rc3 (kernel 5.15.127)

Steps to reproduce:

cat /dev/hwrng and see output. Output in console shows regular pattern, rngd daemon (from rng-tools) refuses to run because of low entropy from /dev/hwrng. Pattern doesn't change until I reboot system.

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

Important notice: This problem started somewhere between 4.14.267 (kernel used in OpenWrt 19.07.9) and my current 5.15.127.

I wonder if it is wise or a good idea at all to (1) forward these regressions reports to the developers while (2) adding them to the regression tracking:

I'm on the err side of adding relevant devs so that they can reach the reporter.

Quoted 3 lines

* I'm not sure if OpenWrt's kernel is close to vanilla; I guess many developers won't have an idea either and thus might ignore the report (which they are free to)[1].

FWIK (from what I know), I'm not openwrt kernel hacker, so I don't know how to build kernels for it and flash it to my router.

Quoted 6 lines

* 5.15.y in ancient for upstream kernel standards, hence mainline developers might ignore this report (see [1])
* the span (v4.14.267..v5.15.127) is extremely large and the regression might be caused my a mainline change or by the stable team; hence it's unclear who has to handle it and thus might be ignored by both camps (see [1])

Yikes! I forgot to ask the reporter to also try mainline (which is mostly what I do in this case).

Quoted 7 lines

* I'm swamped with work already, so I can't follow up to each of those reports, hence adding them to the tracking is likely of no benefit for anyone.

I in this case would have asked the reporter to test mainline first before taking further action.

Ack.

Quoted 6 lines

None of this is a big deal (and with a bit of luck some developer will look into this), but there were similar things with a few of the other reports you forwarded. I wonder how we could reach a situation that is more fruitful for everyone involved (you, me, the reporters, developers that receive mails like the one quoted above). Which leads to the question:

Quoted 6 lines

Are you planning to continue your regression report monitoring work for the foreseeable future? Then it might be best if I start on a "contributor guide" or something like that which mentions some basic quality aspects a report should reach before it is forwarded. Or do you have a better idea?

Likely so.

I think for a good regression report:

* as always, test mainline first
* if it still reproducible on mainline, bisect. When reporting, specify commit range as narrow as possible (or better, exact culprit commit)
* provide relevant logs (preferably in LC_ALL=C) and clear description

Thanks for the pro tip!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw

Re: which regression to add to the tracking (Was: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c))

Quoted 5 lines · Bagas Sanjaya
Quoted 3 lines · Thorsten Leemhuis

Hi Bagas! Thanks again for all the work your do, it helps a lot. But it might be better to discuss something related to a message of yours from earlier today.

OK, let's see.

thx for your reply.

Quoted 19 lines
Quoted 19 lines
Quoted 18 lines

Subject: Fwd: AMD Geode LX hardware RNG driver produces regular patterns (geode-rng.c)
Date: Thu, 7 Sep 2023 18:37:00 +0700

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 12 lines

System: Alix board 2d13 (AMD Geode LX800) running OpenWrt 23.05.0-rc3 (kernel 5.15.127)

Steps to reproduce:

cat /dev/hwrng and see output. Output in console shows regular pattern, rngd daemon (from rng-tools) refuses to run because of low entropy from /dev/hwrng. Pattern doesn't change until I reboot system.

Important notice: This problem started somewhere between 4.14.267 (kernel used in OpenWrt 19.07.9) and my current 5.15.127.

Quoted 6 lines
Quoted 3 lines

I wonder if it is wise or a good idea at all to (1) forward these regressions reports to the developers while (2) adding them to the regression tracking:

I'm on the err side of adding relevant devs so that they can reach the reporter.

That might or might not be a good idea, as devs might start to ignore your mails (and mine maybe, too) if too many of them contained reports that didn't reach certain standards.

Quoted 5 lines
Quoted 3 lines

* I'm not sure if OpenWrt's kernel is close to vanilla; I guess many developers won't have an idea either and thus might ignore the report (which they are free to)[1].

FWIK (from what I know), I'm not openwrt kernel hacker, so I don't know how to build kernels for it and flash it to my router.

Yeah, same here. In that case simply asking the reporter to check that and mention the answer when forwarding is best.

Quoted 8 lines
Quoted 6 lines

* 5.15.y in ancient for upstream kernel standards, hence mainline developers might ignore this report (see [1])
* the span (v4.14.267..v5.15.127) is extremely large and the regression might be caused my a mainline change or by the stable team; hence it's unclear who has to handle it and thus might be ignored by both camps (see [1])

Yikes! I forgot to ask the reporter to also try mainline (which is mostly what I do in this case).

+1

Quoted 20 lines
Quoted 5 lines

* I'm swamped with work already, so I can't follow up to each of those reports, hence adding them to the tracking is likely of no benefit for anyone.
I in this case would have asked the reporter to test mainline first before taking further action.

Ack.

Quoted 6 lines

None of this is a big deal (and with a bit of luck some developer will look into this), but there were similar things with a few of the other reports you forwarded. I wonder how we could reach a situation that is more fruitful for everyone involved (you, me, the reporters, developers that receive mails like the one quoted above). Which leads to the question:

Quoted 6 lines

Are you planning to continue your regression report monitoring work for the foreseeable future? Then it might be best if I start on a "contributor guide" or something like that which mentions some basic quality aspects a report should reach before it is forwarded. Or do you have a better idea?

Quoted 8 lines

Likely so.

I think for a good regression report:

* as always, test mainline first
* if it still reproducible on mainline, bisect. When reporting, specify commit range as narrow as possible (or better, exact culprit commit)
* provide relevant logs (preferably in LC_ALL=C) and clear description

yeah; but fwiw, forwarding after testing mainline is fine, as sometimes the devs will known about the problem already and then reports don't have to waste time on a bisection.

Anyway, thx again for your work. I guess sooner or later I might find the time to work on that contributor guide. Or would a checklist be better (might help myself, as I sometimes forgot to check certain aspects myself...)?

Ciao, Thorsten

#5 lore raw
Quoted 7 lines · Bagas Sanjaya
Quoted 3 lines · Bagas Sanjaya

#regzbot ^introduced: v4.14.267..v5.15.127 #regzbot title: predictable urandom output on Alix 2d13

#regzbot fix: https://lore.kernel.org/lkml/[email protected]/

Fix up:

#regzbot fix: hwrng: geode: fix accessing registers

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#6 lore raw

[TLDR: This mail in primarily relevant for Linux kernel regression tracking. See link in footer if these mails annoy you.]

Quoted 6 lines · Bagas Sanjaya
Quoted 5 lines · Bagas Sanjaya
Quoted 3 lines · Bagas Sanjaya

#regzbot ^introduced: v4.14.267..v5.15.127 #regzbot title: predictable urandom output on Alix 2d13

Quoted 6 lines
Quoted 2 lines

#regzbot fix: https://lore.kernel.org/lkml/[email protected]/

Fix up:

#regzbot fix: hwrng: geode: fix accessing registers

Fix afaics was slightly renamed on merge, hence:

#regzbot fix: hwrng: geode - fix accessing registers #regzbot ignore-activity

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
That page also explains what to do if mails like this annoy you.