Skip to content

fixes for kernel module#43

Open
thillux wants to merge 13 commits into
leetronics:masterfrom
thillux:mtheil/kmod-fixes
Open

fixes for kernel module#43
thillux wants to merge 13 commits into
leetronics:masterfrom
thillux:mtheil/kmod-fixes

Conversation

@thillux
Copy link
Copy Markdown

@thillux thillux commented Apr 30, 2026

I tested the kernel module and saw, that it did not recover from health errors, when repeatedly hot-plugging the USB RNG. After some testing and consulting Claude Code, the following seems to work for me now.

Flashing the vendor and product IDs did not succeed without setting the old IDs to match on. I updated the README.md accordingly.

@thillux
Copy link
Copy Markdown
Author

thillux commented Apr 30, 2026

Unrelated: Thanks for providing this nice piece of hardware and software!

@thillux
Copy link
Copy Markdown
Author

thillux commented Apr 30, 2026

The EEPROM programming config listed in the kernel module also currently does not reprogram the serial number.
I changed that locally by setting use_serial=true and setting the previous serial number of the stick again.

@thillux thillux marked this pull request as draft April 30, 2026 17:54
@thillux
Copy link
Copy Markdown
Author

thillux commented Apr 30, 2026

Still WIP, unmarking draft again, when ready.

@thillux
Copy link
Copy Markdown
Author

thillux commented Apr 30, 2026

I'm currently debugging hangs of reading from /dev/hwrng backed by infnoise when unplugging the device mid read. IMHO the read should fail after some time.

@thillux
Copy link
Copy Markdown
Author

thillux commented Apr 30, 2026

I'm no longer able to put my system in a deadlock with the kernel module. You may have a look now 👍

@thillux thillux marked this pull request as ready for review April 30, 2026 18:29
@thillux thillux force-pushed the mtheil/kmod-fixes branch from 8184d2e to 9572838 Compare May 2, 2026 11:46
thillux and others added 9 commits May 4, 2026 08:34
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <markus.theil@secunet.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
@thillux thillux force-pushed the mtheil/kmod-fixes branch from 9572838 to 34f7558 Compare May 4, 2026 06:35
Signed-off-by: Markus Theil <theil.markus@gmail.com>
@thillux thillux marked this pull request as draft May 4, 2026 08:01
thillux added 3 commits May 4, 2026 10:17
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Signed-off-by: Markus Theil <theil.markus@gmail.com>
Fixes: infnoise 3-1:1.0: Transfer failed after 3 retries, last error: -75

Signed-off-by: Markus Theil <theil.markus@gmail.com>
@thillux thillux force-pushed the mtheil/kmod-fixes branch from 2fa2250 to 9db0b00 Compare May 4, 2026 08:51
@thillux thillux marked this pull request as ready for review May 4, 2026 09:03
@thillux
Copy link
Copy Markdown
Author

thillux commented May 4, 2026

Hi @manuel-domke,

this PR fixes the following issues I experienced:

  • unplugging the TRNG while reading bytes from it (e.g. via /dev/hwrng) lead to deadlocks
  • the device sometimes blocked forever when recovering temporary health issues (e.g. on startup after reboot or unplug)
  • the device needed some recovery cycles on reboot

Therefore I tested many unplugs and reboots until I was satisfied by no errors in dmesg and no blocking behavior indicating a deadlock.

BR
Markus

@thillux
Copy link
Copy Markdown
Author

thillux commented May 4, 2026

Feel free to anything you want with this PR (apply partially, squash together, ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant