alistair23-linux/drivers/hwtracing
Alexander Shishkin ebe4582281 intel_th: Fix resource handling for ACPI glue layer
The core of the driver expects the resource array from the glue layer
to be indexed by even numbers, as is the case for 64-bit PCI resources.
This doesn't hold true for others, ACPI in this instance, which leads
to an out-of-bounds access and an ioremap() on whatever address that
access fetches.

This patch fixes the problem by reading resource array differently based
on whether the 64-bit flag is set, which would indicate PCI glue layer.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: ebc57e399b ("intel_th: Add ACPI glue layer")
CC: stable@vger.kernel.org # v4.17+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-18 16:08:38 +02:00
..
coresight coresight: tpiu: Fix disabling timeouts 2018-07-15 13:52:59 +02:00
intel_th intel_th: Fix resource handling for ACPI glue layer 2018-09-18 16:08:38 +02:00
stm Char/Misc driver patches for 4.18-rc1 2018-06-05 16:20:22 -07:00
Kconfig hwtracing: Add HW tracing support menu 2018-03-29 13:38:10 +03:00