GNU GRUB - Bugs: bug #64918, Provide random entropy for the...
You are not allowed to post comments on this tracker with your current authentication level.
bug #64918: Provide random entropy for the OpenBSD kernel
Submitter: | Yuichiro Naito <yuichiro> | ||
Submitted: | Wed 22 Nov 2023 06:47:42 AM UTC | ||
Category: | Booting | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Feature Request |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | 2.02 |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-11-22 | yuichiro | Attached File | - | Added openbsd_randomdata.patch, #55346 |
Powered by Savane 3.13-aa77.
Corresponding source code
The OpenBSD kernel expects that the loader fills random entropy in the “.openbsd.randomdata” section. The OpenBSD loader generates pseudo-random data in the following code.
https://github.com/openbsd/src/blob/master/sys/lib/libsa/loadfile_elf.c#L100-L108
I added almost the same logic to Grub2. It filled random bytes generated by encrypted data from the random key and initial vector. And I fixed the “pmtimer_tsc_get_random_bit” function to use the second bit, next to LSB. Because my PC (core i7-6700) always returns even TSC value. So the LSB of the TSC value is always 0. It won’t be the random bit.
My patch suppresses the OpenBSD kernel warning message,
“warning: no entropy supplied by boot loader”.