-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acpi: prevent potential overflows in load_acpi_cpu_info()
Bounds check accesses to the MADT table buffer to prevent malformed entries from causing out of bounds reads. Do this by introducing a new method that safely casts the buffer contents as an arbitrary type, verifying that the type itself fits within the buffer bounds. While we are at it, reduce the scope of unsafe to dereferencing the casted pointers. Signed-off-by: Carlos López <carlos.lopez@suse.com>
- Loading branch information
Showing
1 changed file
with
40 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters