freebsd-nq/stand
Kyle Evans 59288c719d stand: zfs: handle holes at the tail end correctly
This mirrors dmu_read_impl(), zeroing out the tail end of the buffer and
clipping the read to what's contained by the block that exists.

This fixes an issue that arose during the 13.1 release process; in
13.1-RC1 and later, setting up GELI+ZFS will result in a failure to
boot.  The culprit is this, which causes us to fail to load geom_eli.ko
as there's a residual portion after the single datablk that should be
zeroed out.

PR:		263407
Reviewed by:	tsoome
Approved by:	re (gjb)

(cherry picked from commit 914dc91d12)
(cherry picked from commit 0c9c8a4c64)
2022-04-24 18:15:07 -05:00
..
arm
arm64
common loader: tslog: Add more log for module loading 2022-01-27 11:06:43 +01:00
defaults Add support for getting early entropy from UEFI 2022-03-14 14:26:33 -07:00
efi Add support for getting early entropy from UEFI 2022-03-14 14:26:33 -07:00
fdt
ficl
ficl32
fonts
forth loader.4th(8): Fix a typo in the manual page 2022-04-15 15:25:48 +02:00
i386
images
kshim
liblua
liblua32
libofw
libsa stand: zfs: handle holes at the tail end correctly 2022-04-24 18:15:07 -05:00
libsa32
lua Add support for getting early entropy from UEFI 2022-03-14 14:26:33 -07:00
man
mips Disable PIE for MIPS ubldr 2022-01-23 11:09:53 +01:00
powerpc powerpc64: fix loader regression 2022-03-04 19:18:22 -03:00
uboot
usb
userboot
defs.mk
fdt.mk
ficl.mk
loader.mk
lua.mk
Makefile
Makefile.amd64
Makefile.inc
uboot.mk