diff options
author | Michael Brown | 2021-03-03 02:55:07 +0100 |
---|---|---|
committer | Michael Brown | 2021-03-03 02:55:07 +0100 |
commit | 1c4917b6a739c887acbf6f7631b1f74084430ee7 (patch) | |
tree | 18aec658cbb858f62d63911f9533cb03d77c00a0 /src/include/ipxe/errfile.h | |
parent | [linux] Place -lslirp at end of linker search list (diff) | |
download | ipxe-1c4917b6a739c887acbf6f7631b1f74084430ee7.tar.gz ipxe-1c4917b6a739c887acbf6f7631b1f74084430ee7.tar.xz ipxe-1c4917b6a739c887acbf6f7631b1f74084430ee7.zip |
[linux] Validate length of ACPI table read from sysfs
Consumers of acpi_find() will assume that returned structures include
a valid table header and that the length in the table header is
correct. These assumptions are necessary when dealing with raw ACPI
tables, since there exists no independent source of length
information.
Ensure that these assumptions are also valid for ACPI tables read from
sysfs.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/errfile.h')
-rw-r--r-- | src/include/ipxe/errfile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 3daf7bde..e3bf9f56 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -389,6 +389,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define ERRFILE_efi_autoexec ( ERRFILE_OTHER | 0x00540000 ) #define ERRFILE_efi_cachedhcp ( ERRFILE_OTHER | 0x00550000 ) #define ERRFILE_linux_sysfs ( ERRFILE_OTHER | 0x00560000 ) +#define ERRFILE_linux_acpi ( ERRFILE_OTHER | 0x00570000 ) /** @} */ |