opnsense-src/stand
Kirk McKusick 690ae8a202 Bail out of corrupt directory entries during boot
A directory with a zero-valued d_reclen causes boot to hang, This
patch checks for directory entries with value zero and bails out
rather than spin forever. The hope is that the user has other options.

Sadly this was reported on Jun 16 2015 and is just now attended to
as part of a sweep of old unclosed phabricator reports.

Reported-by:  Daniel O'Connor darius-dons.net.au
Differential  Revision: https://reviews.freebsd.org/D2844
MFC-after:    1 week
Sponsored-by: Netflix
2025-08-21 22:33:48 -07:00
..
arm64 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
common stand: add a mechanism to avoid env var propagation to kenv 2025-08-21 22:48:29 -05:00
defaults loader: add nvidia modules to the loader blacklist 2025-07-30 23:41:28 -05:00
efi stand: use a common function in gfx_fb for setting up teken colors 2025-08-21 22:48:28 -05:00
fdt libsa: isprint() 2025-07-23 00:32:40 -06:00
ficl loader: ficl: restore isvirtualized? 2025-05-07 23:06:22 -05:00
ficl32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
fonts stand: Enable Spleen 32x64 font in the bootloader 2025-05-06 11:50:28 -04:00
forth loader: set boot_safe when safe mode is selected 2024-12-13 22:31:28 -06:00
i386 stand: use a common function in gfx_fb for setting up teken colors 2025-08-21 22:48:28 -05:00
images lualoader: Add distinct brand for installer 2025-06-24 12:11:15 -03:00
kboot kboot: Support reading the smbios vis sysfs 2025-07-30 19:35:29 +01:00
kshim newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
liblua machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
liblua32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libofw machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
libsa Bail out of corrupt directory entries during boot 2025-08-21 22:33:48 -07:00
libsa32 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
lua lualoader: Add distinct brand for installer 2025-06-24 12:11:15 -03:00
man loader: set boot_safe when safe mode is selected 2024-12-13 22:31:28 -06:00
powerpc machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
uboot machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
usb stand/usb: Quiet warnings so this builds again 2025-01-10 23:03:32 -05:00
userboot stand: userboot: allow building on !x86 2025-06-18 13:42:29 -05:00
defs.mk Allow secure-netboot 2025-08-20 15:49:53 -07:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-07 09:57:32 -05:00
ficl.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader.mk Allow secure-netboot 2025-08-20 15:49:53 -07:00
lua.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile loader: Don't need the arch list 2024-11-12 22:01:24 -07:00
Makefile.amd64 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
veriexec.mk libsecureboot do not report expected unverified files 2024-02-12 14:35:01 -08:00