linux-hardened/drivers/clk/mvebu
Dan Carpenter d9f5b7f5dd clk: mvebu: Off by one bugs in cp110_of_clk_get()
These > comparisons should be >= to prevent reading beyond the end of
of the clk_data->hws[] buffer.

The clk_data->hws[] array is allocated in cp110_syscon_common_probe()
when we do:
	cp110_clk_data = devm_kzalloc(dev, sizeof(*cp110_clk_data) +
				      sizeof(struct clk_hw *) * CP110_CLK_NUM,
				      GFP_KERNEL);
As you can see, it has CP110_CLK_NUM elements which is equivalent to
CP110_MAX_CORE_CLOCKS + CP110_MAX_GATABLE_CLOCKS.

Fixes: d3da3eaef7 ("clk: mvebu: new driver for Armada CP110 system controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2018-12-03 09:54:48 -08:00
..
ap806-system-controller.c Merge branches 'clk-mvebu-periph-pm', 'clk-meson', 'clk-allwinner', 'clk-mvebu-dup' and 'clk-davinci' into clk-next 2018-10-18 15:39:08 -07:00
armada-37xx-periph.c clk: mvebu: armada-37xx-periph: add suspend/resume support 2018-08-31 10:47:48 -07:00
armada-37xx-tbg.c Merge branches 'clk-dt-name', 'clk-ti-of-node' and 'clk-sa' into clk-next 2018-10-18 15:33:52 -07:00
armada-37xx-xtal.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
armada-38x.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
armada-39x.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
armada-370.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
armada-375.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
armada-xp.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
clk-corediv.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
clk-cpu.c This time it looks like a quieter release cycle in the clk tree. I guess that's 2018-10-31 11:08:30 -07:00
common.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
common.h clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
cp110-system-controller.c clk: mvebu: Off by one bugs in cp110_of_clk_get() 2018-12-03 09:54:48 -08:00
dove-divider.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dove-divider.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dove.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
Kconfig clk: mvebu: Add the xtal clock for Armada 3700 SoC 2016-08-15 14:07:04 -07:00
kirkwood.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mv98dx3236.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00
orion.c clk: mvebu: use SPDX-License-Identifier 2018-10-01 15:12:47 -07:00