freebsd-skq/stand/common
allanjude 1548e64fc6 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
..
bcache.c
boot.c stand: One more trivial consolidation (setting environment from howto) 2018-06-09 15:52:29 +00:00
bootstrap.h bootprog_info is generated in vers.c. Move it's definition to 2018-06-14 06:41:33 +00:00
commands.c loader: cstyle cleanup of command.c 2018-04-16 14:10:19 +00:00
console.c
dev_net.c Revert r333365 2018-05-10 20:27:12 +00:00
dev_net.h
devopen.c
disk.c stand/common/disk.c: Read partition table relative to the start of the disk 2018-07-02 18:19:08 +00:00
disk.h Remove comments and assertions that are no longer valid after r330809. 2018-06-05 22:13:45 +00:00
help.common
install.c Break out the interpreters (simple and forth) w/o ifdefs. This is 2018-01-31 22:46:05 +00:00
interp_backslash.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_forth.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp_lua.c stand/interp_lua: correct errorr => error 2018-03-11 04:10:18 +00:00
interp_parse.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_simple.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp.c Move simple interpreter 'perform' into interp.c and call it 2018-02-07 23:27:38 +00:00
isapnp.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
isapnp.h
load_elf32_obj.c
load_elf32.c
load_elf64_obj.c
load_elf64.c
load_elf_obj.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
load_elf.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
ls.c
Makefile.depend
md.c
merge_help.awk
metadata.c stand: Fix build after r334882 2018-06-09 15:28:37 +00:00
misc.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
module.c
newvers.sh
part.c Add an ISO9660 "partition table" type to loader. 2018-04-05 19:45:30 +00:00
part.h Add an ISO9660 "partition table" type to loader. 2018-04-05 19:45:30 +00:00
paths.h
pnp.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
rbx.h
reloc_elf32.c
reloc_elf64.c
reloc_elf.c Skip IRELATIVE relocations when loader processes ELF files. 2018-01-11 13:57:30 +00:00
self_reloc.c
zfs_cmd.c Use M. Warner Losh everywhere on my copyrights. 2018-05-01 16:29:22 +00:00