freebsd-dev/stand/i386
Kristof Provost 5abe8cb6de zfsboot: Fix startup crash
On a FreeNAS mini XL, with geli encrypted drives the loader crashed in
geli_read().

When we iterate over the list of disks and allocate the zfsdsk structures we
don’t zero out the gdev pointer. In one case that resulted in geli_read()
(called on the bogus pointer) dividing by zero.

Use calloc() to ensure the zfsdsk structure is always zeroed, so the pointer is
initialised to NULL. As a side benefit it gets rid of one #ifdef
LOADER_GELI_SUPPORT.
2018-08-05 11:15:28 +00:00
..
boot0 Centralize several variables. 2018-02-02 06:32:26 +00:00
boot0sio
boot2 NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
btx Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
cdboot Centralize several variables. 2018-02-02 06:32:26 +00:00
common Remove the 'mini libstand in libstand' that util.[ch] provided. These 2017-12-15 23:16:53 +00:00
gptboot NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
gptzfsboot NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
isoboot NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
kgzldr Catch up to the inflate renaming. 2018-07-13 20:08:18 +00:00
libfirewire fwohcireg.h is 99% the same between the boot loader and the 2018-03-31 22:02:59 +00:00
libi386 loader: biosdisk.c has leftover geli header. 2018-08-04 20:04:40 +00:00
loader Older zfs boot blocks don't support symlinks. install the link to 2018-07-23 06:04:05 +00:00
mbr Centralize several variables. 2018-02-02 06:32:26 +00:00
pmbr Centralize several variables. 2018-02-02 06:32:26 +00:00
pxeldr
zfsboot zfsboot: Fix startup crash 2018-08-05 11:15:28 +00:00
boot.ldscript
Makefile Collapse zfsloader functionality back down into loader. 2018-07-20 05:17:37 +00:00
Makefile.inc Add support for linker-type-specific flags 2018-04-19 20:58:09 +00:00