mirror of
https://github.com/ipxe/ipxe
synced 2026-02-06 13:19:28 +03:00
[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>
This commit is contained in:
@@ -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 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user