Elaine Zhang
2797ba7e60
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:24:38 +08:00
..
2018-12-19 18:46:58 +08:00
2018-05-02 07:53:42 -07:00
2018-12-19 18:46:58 +08:00
2018-12-19 18:46:58 +08:00
2018-07-22 14:25:52 +02:00
2019-03-28 14:53:57 +08:00
2018-12-11 00:07:21 +05:30
2018-12-19 18:46:58 +08:00
2018-04-13 19:50:05 +02:00
2018-11-21 09:27:39 +01:00
2018-12-19 18:46:58 +08:00
2019-04-29 09:24:38 +08:00
2018-12-19 18:46:58 +08:00
2019-04-25 19:40:40 +08:00
2018-07-05 11:05:40 +01:00
2019-04-28 10:35:12 +08:00
2019-04-25 19:40:52 +08:00
2018-12-19 18:46:58 +08:00
2018-10-10 08:52:06 +02:00
2018-05-30 07:48:52 +02:00
2018-12-13 18:08:05 +08:00
2018-12-19 18:46:58 +08:00
2019-04-25 19:33:19 +08:00
2018-11-01 15:11:58 +08:00
2018-12-19 18:46:58 +08:00
2018-10-20 09:52:38 +02:00
2018-12-19 18:46:58 +08:00
2018-10-11 12:01:02 +08:00
2018-10-01 12:13:41 +01:00
2018-12-19 18:46:58 +08:00
2018-05-30 07:49:13 +02:00
2019-02-14 14:48:26 +08:00
2018-12-13 09:21:29 +01:00
2019-04-03 17:35:52 +08:00
2019-01-02 18:53:02 +08:00
2018-10-10 19:37:13 +08:00
2018-11-10 07:41:34 -08:00
2018-12-19 18:46:58 +08:00
2018-09-19 22:48:57 +02:00
2018-12-19 18:46:58 +08:00
2019-04-28 10:31:27 +08:00
2018-08-06 16:24:38 +02:00
2018-05-30 07:48:58 +02:00
2019-04-18 19:55:27 +08:00
2018-12-19 18:46:58 +08:00
2019-03-26 10:35:15 +08:00
2019-03-27 16:17:16 +08:00
2019-04-02 20:10:47 +08:00
2018-12-19 18:46:58 +08:00
2018-05-30 07:48:55 +02:00
2018-11-21 09:27:34 +01:00
2018-08-09 14:12:30 +08:00
2019-01-11 14:42:16 +08:00
2018-12-19 18:46:58 +08:00
2018-05-30 07:49:10 +02:00
2018-09-26 08:35:09 +02:00
2019-03-22 17:31:40 +08:00
2018-11-21 09:27:30 +01:00
2018-04-08 18:28:30 +08:00
2019-03-28 19:06:34 +08:00
2019-03-28 14:37:04 +08:00
2018-12-19 18:46:58 +08:00
2019-03-20 18:38:38 +08:00
2018-04-13 19:50:05 +02:00
2018-11-10 07:41:42 -08:00
2018-10-10 19:37:13 +08:00
2019-02-18 16:03:19 +08:00
2018-11-05 16:21:11 +08:00
2019-04-02 20:16:19 +08:00
2019-04-24 09:43:38 +08:00
2018-12-19 18:46:58 +08:00
2018-12-13 09:21:36 +01:00
2018-12-14 11:52:31 +00:00
2019-04-25 19:40:52 +08:00
2018-12-19 18:46:58 +08:00
2019-03-28 14:53:57 +08:00
2018-10-10 08:52:08 +02:00
2018-11-21 09:27:36 +01:00
2019-04-25 19:37:48 +08:00
2018-04-24 09:32:07 +02:00
2019-02-14 17:49:31 +08:00
2018-11-27 16:08:02 +01:00
2019-04-01 15:45:03 +08:00
2018-10-10 08:52:04 +02:00
2018-04-24 09:32:09 +02:00
2018-11-21 09:27:42 +01:00
2019-04-17 16:14:36 +08:00
2018-08-06 16:24:42 +02:00
2018-12-11 00:07:21 +05:30
2019-03-12 16:21:28 +08:00
2018-11-21 09:27:33 +01:00
2018-05-30 07:49:11 +02:00
2018-05-23 09:26:14 +08:00
2018-12-26 09:41:48 +08:00