freebsd-nq/stand
Allan Jude 32c52b4847 stand/common/disk.c: Read partition table relative to the start of the disk
If a disk is of an oddball size, like the 200mb + 512b used in rootgen.sh,
when disk_open() is called on a GELI encrypted partition, attempts to read
the partition table fail, as they pass through the decryption process which
turns the already plaintext data into jibberish.

When reading the partition table, always pass a slice and partition setting
of -1, and an offset of 0. Setting the slice to -1 prevents a false
positive when checking the slice against the cache of GELI encrypted
slices.

Reviewed by:	imp, ian
Sponsored by:	Klara Systems
Differential Revision:	https://reviews.freebsd.org/D15847
2018-07-02 18:19:08 +00:00
..
arm Go back to one loader.conf 2018-02-26 03:16:47 +00:00
arm64 No need to make objects here. 2018-04-27 22:15:18 +00:00
common stand/common/disk.c: Read partition table relative to the start of the disk 2018-07-02 18:19:08 +00:00
defaults Default loader.conf: Drop efi_max_resolution to 1x1 2018-04-03 02:41:32 +00:00
efi Revert preference to be an int. 2018-06-28 19:42:10 +00:00
fdt Eliminate bsd.stand.mk and -fPIC 32-bit intel builds 2018-02-16 00:17:32 +00:00
ficl Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
ficl32
forth check-password.4th(8): Fix manual [in]accuracy 2018-06-24 19:29:29 +00:00
i386 Revert r335276 2018-06-20 00:14:54 +00:00
kshim A more definitions to kernel emulation shim in order to build stand/usb. 2018-02-07 18:50:36 +00:00
liblua Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00
liblua32 Add Lua as a scripting langauge to /boot/loader 2018-02-12 15:31:53 +00:00
libsa Remove stray debugging line. 2018-06-18 19:53:11 +00:00
libsa32
lua lualoader: Correct kernel_options handling 2018-06-19 15:05:31 +00:00
man Clarify that boot_mute / boot -m mutes kernel console only 2018-05-16 02:15:18 +00:00
mips Don't use CCACHE for linking. 2018-06-27 19:29:15 +00:00
ofw - Unbreak booting sparc64 kernels after the metadata unification in 2018-05-21 01:20:19 +00:00
powerpc bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
sparc64 bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
uboot bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
usb Move the stand/usb test loader into its own directory. 2018-02-07 19:20:59 +00:00
userboot bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
zfs Remove comments and assertions that are no longer valid after r330809. 2018-06-05 22:13:45 +00:00
zfs32
defs.mk stand: move libgeliboot into libsa. 2018-06-18 16:24:42 +00:00
fdt.mk
ficl.mk Remove redundant defs.mk includes. They aren't needed. 2018-06-14 06:14:48 +00:00
loader.mk Remove redundant defs.mk includes. They aren't needed. 2018-06-14 06:14:48 +00:00
lua.mk Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
Makefile stand: move libgeliboot into libsa. 2018-06-18 16:24:42 +00:00
Makefile.amd64 Create LOADER_UBOOT, and LOADER_OFW. Move these options out of 2018-03-01 19:50:55 +00:00
Makefile.inc Minor flags cleanup 2017-12-02 00:06:58 +00:00
uboot.mk Unify metadata load files for arm, mips, powerpc, sparc64 2018-02-13 03:44:50 +00:00