Skip to content

Config.uk: auto-select LIBUKRANDOM_LCPU on x86_64 and arm64#73

Open
harimishal1 wants to merge 1 commit intounikraft:stagingfrom
harimishal1:fix/auto-select-ukrandom-lcpu
Open

Config.uk: auto-select LIBUKRANDOM_LCPU on x86_64 and arm64#73
harimishal1 wants to merge 1 commit intounikraft:stagingfrom
harimishal1:fix/auto-select-ukrandom-lcpu

Conversation

@harimishal1
Copy link
Copy Markdown

lwip selects LIBUKRANDOM to obtain randomness for UDP port initialization, but does not select any entropy source. On x86_64 and arm64, the CPU-based RNG (RDRAND/RNDR via LIBUKRANDOM_LCPU) is available and is a good choice for KVM/QEMU targets.

Without this, uk_random_fill_buffer() returns -ENODEV and lwip calls UK_CRASH(), causing a boot-time panic.

Tested by building and running catalog-core/click on qemu-x86_64.

lwip selects LIBUKRANDOM to obtain randomness for UDP port
initialization, but does not select any entropy source. On x86_64 and
arm64, the CPU-based RNG (RDRAND/RNDR via LIBUKRANDOM_LCPU) is
available and is the natural choice for KVM/QEMU targets.

Without this, uk_random_fill_buffer() returns -ENODEV and lwip calls
UK_CRASH(), causing a boot-time panic in any application that uses UDP.

Tested by building and running catalog-core/click on qemu-x86_64.

Signed-off-by: Hari Mishal
Signed-off-by: misharu <harimishal1@gmail.com>
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