| 12138b85 | 31-Jan-2024 |
Warner Losh <[email protected]> |
libsa: Move hash functions up a level
This should have no functional change. Move compiling the sha256, sha512 and md5 hash functions up into libsa to allow them to be used elsewhere in the boot loa
libsa: Move hash functions up a level
This should have no functional change. Move compiling the sha256, sha512 and md5 hash functions up into libsa to allow them to be used elsewhere in the boot loader when geli isn't configured. Since libsa is a .a, these won't wind up in any boot loader that doesn't reference them, so should be a nop.
Sponsored by: Netflix
(cherry picked from commit fd577b59b2d78a32f40fdc3847666728d8a897db)
show more ...
|
| 566ac8bc | 08-Dec-2023 |
Kyle Evans <[email protected]> |
loader: provide a features table for binary compatibility advertisement
liblua now provides a loader.has_feature() function to probe the loader binary for features advertised. name => desc mappings
loader: provide a features table for binary compatibility advertisement
liblua now provides a loader.has_feature() function to probe the loader binary for features advertised. name => desc mappings are provided in loader.features to get a list of all of the features loader *can* support. core.hasFeature is provided as a shim to loader.has_feature so that individual consumers don't need to think about the logic of the loader module not providing has_feature; we know that means the feature isn't enabled.
The first consumer of this will be EARLY_ACPI to advertise that the loader binary probes for ACPI presence before the interpreter has started, so that we know whether we can trust the presence of acpi.rsdp as relatively authoritative. In general, it's intended to be used to avoid breaking new scripts on older loaders within reason.
This will be used in lua as `core.hasFeature("EARLY_ACPI")`, while the C bits of loader will `feature_enable(FEATURE_EARLY_ACPI)`.
Reviewed by: imp
(cherry picked from commit 1631382cf2820245cc72965498ff174bb548dd63)
show more ...
|
| 5791b178 | 04-Nov-2023 |
Alexander Motin <[email protected]> |
stand/zfs: Remove one more read-compatible feature
This feature is marked as ZFEATURE_FLAG_READONLY_COMPAT and so irrelevant for read-only pool imports by the loader:
"com.delphix:spacemap_v2"
Th
stand/zfs: Remove one more read-compatible feature
This feature is marked as ZFEATURE_FLAG_READONLY_COMPAT and so irrelevant for read-only pool imports by the loader:
"com.delphix:spacemap_v2"
This should cause no functional changes, just a code cleanup.
I'm sorry, missed it in previous commit.
MFC after: 2 months
(cherry picked from commit c2588f5e066bbeb37e6bbdd5faf14320c60c1cbd)
show more ...
|
| a5b4ec52 | 01-May-2023 |
Warner Losh <[email protected]> |
stand: More protection against malformed smbios tables
Add some more sanity checks to make sure we don't march off the end of the table. Typically, smbios structures are well formed, or Windows woul
stand: More protection against malformed smbios tables
Add some more sanity checks to make sure we don't march off the end of the table. Typically, smbios structures are well formed, or Windows wouldn't boot. Sometimes they aren't, and this at least fails safe.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D39794
show more ...
|
| c5e433b9 | 01-May-2023 |
Warner Losh <[email protected]> |
stand: Avoid unaligned access in smbios code
This code was written on x86 where unaligned accesses were easy. LinuxBoot running on aarch64 uses mmap of /dev/mem to read the smbios table. Linux's map
stand: Avoid unaligned access in smbios code
This code was written on x86 where unaligned accesses were easy. LinuxBoot running on aarch64 uses mmap of /dev/mem to read the smbios table. Linux's mapping of this memory doesn't allow the normal unaligned fixup, so we get a bus error instead. We can't use the more natural le16dec and friends because they optimize into a single, unaligned memory load. We don't see this issue on aarch64 UEFI because memory is mapped such that unaligned accesses are fixed up.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D39793
show more ...
|