]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[linux] Validate length of ACPI table read from sysfs
authorMichael Brown <mcb30@ipxe.org>
Wed, 3 Mar 2021 01:55:07 +0000 (01:55 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 3 Mar 2021 01:55:07 +0000 (01:55 +0000)
commit1c4917b6a739c887acbf6f7631b1f74084430ee7
tree18aec658cbb858f62d63911f9533cb03d77c00a0
parent50d13907c440da96e352979da43f5eea68446db1
[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>
src/include/ipxe/errfile.h
src/interface/linux/linux_acpi.c