freebsd-skq/stand/i386/zfsboot
kp 8a62612c11 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
..
Makefile NM and OBJCOPY are already defined for all builds. There's no need to 2018-07-20 05:17:56 +00:00
Makefile.depend
zfsboot.8 Eliminate zfsloader man page. 2018-07-20 05:17:49 +00:00
zfsboot.c zfsboot: Fix startup crash 2018-08-05 11:15:28 +00:00
zfsldr.S Turn loader GELI support in the boot loaders off by default as a 2017-12-14 17:00:24 +00:00