aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/configs
diff options
context:
space:
mode:
authorGravatar Seunghun Han <kkamagui@gmail.com> 2017-07-18 20:03:51 +0900
committerGravatar Ingo Molnar <mingo@kernel.org> 2017-07-20 10:27:59 +0200
commitdad5ab0db8deac535d03e3fe3d8f2892173fa6a4 (patch)
tree059f12b39e9be8cf55fabb631d8e57df283f5ff5 /arch/x86/configs
parentx86/mm, KVM: Fix warning when !CONFIG_PREEMPT_COUNT (diff)
downloadlinux-dad5ab0db8deac535d03e3fe3d8f2892173fa6a4.tar.gz
linux-dad5ab0db8deac535d03e3fe3d8f2892173fa6a4.tar.bz2
linux-dad5ab0db8deac535d03e3fe3d8f2892173fa6a4.zip
x86/acpi: Prevent out of bound access caused by broken ACPI tables
The bus_irq argument of mp_override_legacy_irq() is used as the index into the isa_irq_to_gsi[] array. The bus_irq argument originates from ACPI_MADT_TYPE_IO_APIC and ACPI_MADT_TYPE_INTERRUPT items in the ACPI tables, but is nowhere sanity checked. That allows broken or malicious ACPI tables to overwrite memory, which might cause malfunction, panic or arbitrary code execution. Add a sanity check and emit a warning when that triggers. [ tglx: Added warning and rewrote changelog ] Signed-off-by: Seunghun Han <kkamagui@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: security@kernel.org Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: stable@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/configs')
0 files changed, 0 insertions, 0 deletions