mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
BUG: KASAN: global-out-of-bounds in of_match_node+0x70/0xc0 Read of size 1 at addr ffffff900a0f06f0 by task swapper/0/1 CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.161 #54 Hardware name: Rockchip RK3566 EVB1 DDR4 V10 Board (DT) Call trace: dump_backtrace+0x0/0x1bc show_stack+0x14/0x1c dump_stack+0xd8/0x118 print_address_description+0x80/0x2e4 __kasan_report+0x164/0x1c4 kasan_report+0x10/0x18 __asan_load1+0x4c/0x54 of_match_node+0x70/0xc0 of_match_device+0x30/0x44 i2c_of_match_device+0x30/0xb8 i2c_device_match+0x48/0xc0 __driver_attach+0x44/0x1b0 bus_for_each_dev+0xa0/0xe8 driver_attach+0x30/0x3c bus_add_driver+0x198/0x2a0 driver_register+0xf0/0x1c4 i2c_register_driver+0x6c/0xd0 es7202_modinit+0x1c/0x48 do_one_initcall+0xb0/0x344 do_initcall_level+0xec/0x1fc do_basic_setup+0x68/0x80 kernel_init_freeable+0x108/0x194 kernel_init+0x14/0x2a0 ret_from_fork+0x10/0x18 The buggy address belongs to the variable: es7202_dt_ids+0x190/0x200 Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: Ic41116912bc323005787878ab29318ad38efd07e