#
332640 |
|
17-Apr-2018 |
kevans |
MFC r332387: Annotate geom modules with MODULE_VERSION
GEOM ELI may double ask the password during boot. Once at loader time, and once at init time.
This happens due a module loading bug. By default GEOM ELI caches the password in the kernel, but without the MODULE_VERSION annotation, the kernel loads over the kernel module, even if the GEOM ELI was compiled into the kernel. In this case, the newly loaded module purges/invalidates/overwrites the GEOM ELI's password cache, which causes the double asking.
This MFC commit differs slightly from head, due to pc98 removal. These changes were trivial and should be obvious.
|
#
332521 |
|
16-Apr-2018 |
kevans |
MFC r323108, r323125, r326047-r326049
r323108: Add efimedia attribute for all GPT partitions.
r323125: The hard drive media device path contains the size of the partition, not its end. This makes the GEOM efimedia attribute match the FreeBSD:Boot1Device environment variable now.
r326047: Implement efi media tagging for MBR partitioning types.
r326048: Remove trailing whitespace (one I just introduced and a bunch of others in the same directory).
r326049: While the EFI spec allows numbers to be in many forms, libefivar produces hex numbers for the dsn. Since that come is from EDK2, change this for symmetry, by generating the dsn as a hex number.
[Missed as part of the efivar/efibootmgr MFCs]
Reported by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
|
#
298671 |
|
26-Apr-2016 |
cem |
g_part_bsd64: Check for valid on-disk npartitions value
This value is u32 on disk, but assigned to an int in memory. After we do the implicit conversion via assignment, check that the result is at least one[1] (non-negative[2]).
1. The subsequent for-loop iterates from gpt_entries minus one, down, until reaching zero. A negative or zero initial index results in undefined signed integer overflow. 2. It is also used to index into arrays later.
In practice, we expected non-malicious disks to contain small positive values.
Reported by: Coverity CID: 1223202 Sponsored by: EMC / Isilon Storage Division
|