linux-stable/drivers/hwtracing
Alexander Shishkin a9624ba9f7 stm class: Prevent division by zero
commit bf7cbaae08 upstream.

Using STP_POLICY_ID_SET ioctl command with dummy_stm device, or any STM
device that supplies zero mmio channel size, will trigger a division by
zero bug in the kernel.

Prevent this by disallowing channel widths other than 1 for such devices.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: 7bd1d4093c ("stm class: Introduce an abstraction for System Trace Module devices")
CC: stable@vger.kernel.org # v4.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 13:19:44 +01:00
..
coresight coresight: etb10: Fix handling of perf mode 2018-11-13 11:16:53 -08:00
intel_th intel_th: msu: Fix an off-by-one in attribute store 2019-01-13 10:03:55 +01:00
stm stm class: Prevent division by zero 2019-03-23 13:19:44 +01:00