freebsd-dev/stand
David Bright 3df4c387d2 libsa: Fix infinite loop in bzipfs & gzipfs
A bug in the loader's bzipfs & gzipfs filesystems caused compressed
kernel and modules not to work on EFI systems with a veriexec-enabled
loader. Since the size of files in these filesystems are not known
_a priori_ `stat` would initialize the size to -1 and the loader would
then hang in an infinite loop while trying to seek (read) to the end
of file since the loop termination condition compares the current
offset to that negative target position.

Reviewers:	vangyzen, imp, Bret Ketchum (Bret.Ketchum@dell.com)
Differential Revision:	https://reviews.freebsd.org/D30414
Sponsored by:	Dell EMC Isilon
MFC to:	     stable/12, stable/13
MFC after:   1 week
2021-06-01 11:08:20 -05:00
..
arm Remove obsolete code gated on _ARM_ARCH_* 2021-01-28 10:41:45 +00:00
arm64
common loader: gfx_fb_drawrect should use GfxFbBltVideoFill 2021-05-16 11:22:37 +03:00
defaults Fix date 2021-01-07 21:15:26 +01:00
efi Update the EFI timer to be called once a second 2021-05-12 14:12:34 +00:00
fdt EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
ficl loader: implement framebuffer console 2021-01-02 21:41:36 +02: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: do not output empty menu title 2021-04-21 14:50:23 +03:00
i386 boot: fix OBJS to not include BTX's crt0.o 2021-05-06 13:08:30 -06:00
images loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
kshim Fix build of stand/usb . 2021-04-12 16:13:33 +02:00
liblua EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
liblua32
libofw Fix 64-bit build of libofw. 2020-09-08 23:22:11 +00:00
libsa libsa: Fix infinite loop in bzipfs & gzipfs 2021-06-01 11:08:20 -05:00
libsa32 Enable veriexec for loader 2019-02-26 06:22:10 +00:00
lua loader: do not output empty menu title 2021-04-21 14:50:23 +03:00
man Loader: support booting OS from memory disk (MD) 2021-04-07 13:40:57 -05:00
mips Disable PIE for MIPS BERI boot loader 2021-02-25 06:41:35 +01:00
powerpc Disable PIE for powerpc bootloaders. 2021-02-25 00:26:11 +01:00
uboot loader: fix uboot build with gfx_fb 2021-01-03 20:45:37 +02:00
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
userboot userboot: provide stub gfx functions 2021-01-30 21:20:27 +02:00
defs.mk [PowerPC64LE] Set up powerpc.powerpc64le architecture 2020-09-22 23:49:30 +00:00
fdt.mk
ficl.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
loader.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00
lua.mk
Makefile stand: ensure that the efi directory's dependencies are correct 2021-01-27 13:02:51 -06: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
uboot.mk
veriexec.mk EFI secure boot VECTX related changes 2021-04-30 12:53:45 -05:00