linux/drivers/clk
Elaine Zhang be8fe08b78 clk: rockchip: pvtm : fix up the of_match_table cross-border access
fix up the error log:
[    2.901537] ==================================================================
[    2.901625] BUG: KASAN: global-out-of-bounds in __of_match_node.part.0+0x30/0xa0
[    2.901655] Read of size 1 at addr ffffff900934ae08 by task swapper/0/1
[    2.901693]
[    2.901727] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.19.20 #11
[    2.901766] Hardware name: Rockchip RK3399 Evaluation Board v3 (Android) (DT)
[    2.901817] Call trace:
[    2.901863]  dump_backtrace+0x0/0x250
[    2.901909]  show_stack+0x14/0x1c
[    2.901942]  dump_stack+0xf8/0x170
[    2.901998]  print_address_description+0x54/0x238
[    2.902049]  kasan_report+0x294/0x2bc
[    2.902099]  __asan_load1+0x24/0x50
[    2.902154]  __of_match_node.part.0+0x30/0xa0
[    2.902188]  of_match_node+0x38/0x5c
[    2.902240]  of_match_device+0x48/0x4c
[    2.902294]  platform_match+0x60/0xe8
[    2.902341]  __driver_attach+0x40/0x10c
[    2.902392]  bus_for_each_dev+0x10c/0x134
[    2.902424]  driver_attach+0x30/0x3c
[    2.902454]  bus_add_driver+0x238/0x28c
[    2.902503]  driver_register+0x140/0x188
[    2.902559]  __platform_driver_register+0x7c/0x88
[    2.902619]  rockchip_clock_pvtm_driver_init+0x18/0x20
[    2.902666]  do_one_initcall+0x14c/0x47c
[    2.902702]  kernel_init_freeable+0x5ec/0x60c
[    2.902752]  kernel_init+0x10/0x110
[    2.902801]  ret_from_fork+0x10/0x18
[    2.902841]
[    2.902863] The buggy address belongs to the variable:
[    2.902925]  rockchip_clock_pvtm_match+0xc8/0x2e0
[    2.902944]
[    2.902991] Memory state around the buggy address:
[    2.903028]  ffffff900934ad00: 00 00 00 07 fa fa fa fa 00 00 00 00 00 00 00 00
[    2.903073]  ffffff900934ad80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.903126] >ffffff900934ae00: 00 fa fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
[    2.903167]                       ^
[    2.903197]  ffffff900934ae80: 00 05 fa fa fa fa fa fa 00 00 00 00 03 fa fa fa
[    2.903230]  ffffff900934af00: fa fa fa fa 00 00 03 fa fa fa fa fa 00 00 00 06
[    2.903266] ==================================================================

Change-Id: Ie2bc926da76dfbb14ca6e250d7fe57e842939f79
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-04-29 09:46:26 +08:00
..
actions clk: actions: Add S700 SoC clock support 2018-07-25 16:40:54 -07:00
at91 rk: revert to v4.4 2019-02-10 00:33:21 +08:00
axis
axs10x
bcm rk: revert to v4.4 2019-02-10 00:33:21 +08:00
berlin This time we have a good set of changes to the core framework that do some 2018-06-09 12:06:24 -07:00
davinci ARM: 32-bit SoC platform updates 2018-08-23 13:44:43 -07:00
h8300
hisilicon reset: hisilicon: fix potential NULL pointer dereference 2018-11-21 09:19:17 +01:00
imgtec
imx rk: revert to v4.4 2019-02-10 00:33:21 +08:00
ingenic clk: ingenic: Add missing flag for UDC clock 2018-07-06 11:47:28 -07:00
keystone
loongson1
mediatek rk: revert to v4.4 2019-02-10 00:33:21 +08:00
meson rk: revert to v4.4 2019-02-10 00:33:21 +08:00
microchip
mmp rk: revert to v4.4 2019-02-10 00:33:21 +08:00
mvebu rk: revert to v4.4 2019-02-10 00:33:21 +08:00
mxs rk: revert to v4.4 2019-02-10 00:33:21 +08:00
nxp rk: revert to v4.4 2019-02-10 00:33:21 +08:00
pistachio
pxa clk: pxa: export 32kHz PLL 2018-07-06 13:52:57 -07:00
qcom rk: revert to v4.4 2019-02-10 00:33:21 +08:00
renesas clk: renesas: r9a06g032: Fix UART34567 clock rate 2018-11-27 16:13:01 +01:00
rockchip clk: rockchip: pvtm : fix up the of_match_table cross-border access 2019-04-29 09:46:26 +08:00
samsung rk: revert to v4.4 2019-02-10 00:33:21 +08:00
sirf
socfpga clk: socfpga: stratix10: fix naming convention for the fixed-clocks 2019-01-31 08:14:34 +01:00
spear clk: spear: fix WDT clock definition on SPEAr600 2018-04-06 13:45:34 -07:00
sprd
st rk: revert to v4.4 2019-02-10 00:33:21 +08:00
sunxi rk: revert to v4.4 2019-02-10 00:33:21 +08:00
sunxi-ng clk: sunxi-ng: Use u64 for calculation of NM rate 2019-01-09 17:38:44 +01:00
tegra rk: revert to v4.4 2019-02-10 00:33:21 +08:00
ti rk: revert to v4.4 2019-02-10 00:33:21 +08:00
uniphier clk: uniphier: add clock frequency support for SPI 2018-07-25 16:26:18 -07:00
ux500
versatile rk: revert to v4.4 2019-02-10 00:33:21 +08:00
x86 clk: x86: Stop marking clocks as CLK_IS_CRITICAL 2018-09-17 18:47:58 -07:00
zte
zynq
clk-asm9260.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
clk-aspeed.c The new and exciting feature this time around is in the clk core. 2018-08-15 21:41:21 -07:00
clk-axi-clkgen.c
clk-axm5516.c
clk-bulk.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
clk-composite.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-conf.c clk: defer clk_gets on orphan clocks 2019-04-01 19:03:38 +08:00
clk-cs2000-cp.c clk: cs2000-cp: convert to SPDX identifiers 2018-08-02 13:55:00 -07:00
clk-devres.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-divider.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-efm32gg.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
clk-fixed-factor.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-fixed-rate.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-fractional-divider.c clk: fractional-divider: Improve fractional divider jitter 2019-03-13 17:04:10 +08:00
clk-gate.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-gemini.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
clk-gpio.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-hi655x.c
clk-highbank.c
clk-hsdk-pll.c
clk-max9485.c clk: Add driver for MAX9485 2018-07-06 13:44:06 -07:00
clk-max77686.c
clk-moxart.c
clk-multiplier.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-mux.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-nomadik.c
clk-npcm7xx.c clk: npcm7xx: fix memory allocation 2018-08-28 15:12:59 -07:00
clk-nspire.c
clk-oxnas.c
clk-palmas.c
clk-pwm.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-qoriq.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-rk808.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-s2mps11.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-scmi.c clk: scmi: Fix the rounding of clock rate 2018-08-02 13:43:48 -07:00
clk-scpi.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-si514.c clk-si514, clk-si544: Implement prepare/unprepare/is_prepared operations 2018-06-29 10:59:40 -07:00
clk-si544.c clk-si514, clk-si544: Implement prepare/unprepare/is_prepared operations 2018-06-29 10:59:40 -07:00
clk-si570.c
clk-si5351.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-si5351.h
clk-stm32f4.c
clk-stm32h7.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
clk-stm32mp1.c This time we have a good set of changes to the core framework that do some 2018-06-09 12:06:24 -07:00
clk-tango4.c
clk-twl6040.c
clk-u300.c
clk-versaclock5.c
clk-vt8500.c
clk-wm831x.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk-xgene.c rk: revert to v4.4 2019-02-10 00:33:21 +08:00
clk.c clk: defer clk_gets on orphan clocks 2019-04-01 19:03:38 +08:00
clk.h clk: defer clk_gets on orphan clocks 2019-04-01 19:03:38 +08:00
clkdev.c clk: defer clk_gets on orphan clocks 2019-04-01 19:03:38 +08:00
Kconfig rk: revert to v4.4 2019-02-10 00:33:21 +08:00
Makefile rk: revert to v4.4 2019-02-10 00:33:21 +08:00