Commit ea444b6
mfd: display-serdes: Fix out-of-bounds access issue
Checked with kasan, the buggy stacktrace:
BUG: KASAN: global-out-of-bounds in serdes_bridge_probe+0x2bc/0x568
Read of size 20 at addr ffffffc009a87240 by task swapper/0/1
CPU: 3 PID: 1 Comm: swapper/0 Tainted: G B 6.1.84 khadas#7
Hardware name: Rockchip RK3576 VEHICLE EVB V20 MOS LINUX Board (DT)
Call trace:
dump_backtrace+0x11c/0x128
show_stack+0x1c/0x28
dump_stack_lvl+0x64/0x7c
print_report+0x150/0x498
kasan_report+0x80/0xf0
kasan_check_range+0xe8/0x198
__asan_loadN+0x20/0x28
serdes_bridge_probe+0x2bc/0x568
platform_probe+0x90/0x108
really_probe+0x118/0x548
__driver_probe_device+0xc0/0x1f0
driver_probe_device+0x60/0x168
Fixes: 563845b ("mfd: display-serdes: add serdes display driver support base on mfd arch")
Change-Id: Ib0f6a674d75e0f9861163b0803f327963c3a85e5
Signed-off-by: Cody Xie <[email protected]>1 parent f503114 commit ea444b6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments