freebsd-dev/stand
Kyle Evans 914dc91d12 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
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D35019
2022-04-21 14:57:24 -05:00
..
arm64 Add an loader command on arm64 to sync the cache 2021-12-20 13:58:36 +00:00
common stand: Remove a double word in a source code comment 2022-04-09 09:27:34 +02:00
defaults Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
efi stand: libefi: swap /Pci() printing around 2022-04-12 19:30:30 -05:00
fdt loader: Fix dtb loading 2021-07-05 15:53:08 +02:00
ficl ficl: Fix a typo in a comment 2021-11-30 10:36:29 +01:00
ficl32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
fonts loader: really use bold font for vga text mode 2021-01-08 01:24:30 +02:00
forth loader.4th(8): Fix a typo in the manual page 2022-04-02 15:11:59 +02:00
i386 stand: Fix a common typo in source code comments 2022-03-28 19:34:30 +02:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kboot powerpc64: Fix a typo in a source code comment 2022-04-02 10:56:45 +02:00
kshim stand/usb: Fix build by declaring missing functions and types. 2022-03-17 15:26:24 +01:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32
libofw powerpc64le: stand fixes 2021-10-20 15:48:33 -03:00
libsa stand: zfs: handle holes at the tail end correctly 2022-04-21 14:57:24 -05:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
man Clean up some grammos I left behind. 2022-04-11 20:24:11 +02:00
powerpc kboot: Move powerpc kboot to top level 2021-12-30 16:07:06 -07:00
uboot stand/uboot: Fix building of ubldr.bin 2022-02-07 13:14:48 -07:00
usb mips: remove saf1761 2022-01-04 16:01:14 -07:00
userboot loader: userboot: provide a getsecs() implementation 2022-04-12 19:33:54 -05:00
defs.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
fdt.mk
ficl.mk stand: remove mips support 2021-12-10 11:05:31 -07:00
loader.mk loader: narrow the scope of gfx frame buffer wrt tg supported kernels 2021-12-14 15:27:47 -07:00
lua.mk
Makefile kboot: Split out powerpc build 2021-12-30 16:07:13 -07:00
Makefile.amd64 stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
Makefile.inc stand: properly declare subdir deps or .WAIT, do parallel build 2020-12-31 11:15:45 -06:00
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00