Searched hist:bf7cbaae (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/hwtracing/stm/ |
H A D | core.c | bf7cbaae Thu Feb 21 06:19:17 CST 2019 Alexander Shishkin <alexander.shishkin@linux.intel.com> stm class: Prevent division by zero
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: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices") CC: stable@vger.kernel.org # v4.4+ bf7cbaae Thu Feb 21 06:19:17 CST 2019 Alexander Shishkin <alexander.shishkin@linux.intel.com> stm class: Prevent division by zero 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: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices") CC: stable@vger.kernel.org # v4.4+
|