aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorWill McVicker <[email protected]>2025-02-12 18:32:52 +0000
committerKrzysztof Kozlowski <[email protected]>2025-02-15 13:35:02 +0000
commitd19d7345a7bcdb083b65568a11b11adffe0687af (patch)
tree46fcbab13e10978da264be25e7812552e94e70e8 /tools/perf/scripts/python/libxed.py
parentclk: samsung: Fix spelling mistake "stablization" -> "stabilization" (diff)
downloadkernel-d19d7345a7bcdb083b65568a11b11adffe0687af.tar.gz
kernel-d19d7345a7bcdb083b65568a11b11adffe0687af.zip
clk: samsung: Fix UBSAN panic in samsung_clk_init()
With UBSAN_ARRAY_BOUNDS=y, I'm hitting the below panic due to dereferencing `ctx->clk_data.hws` before setting `ctx->clk_data.num = nr_clks`. Move that up to fix the crash. UBSAN: array index out of bounds: 00000000f2005512 [#1] PREEMPT SMP <snip> Call trace: samsung_clk_init+0x110/0x124 (P) samsung_clk_init+0x48/0x124 (L) samsung_cmu_register_one+0x3c/0xa0 exynos_arm64_register_cmu+0x54/0x64 __gs101_cmu_top_of_clk_init_declare+0x28/0x60 ... Fixes: e620a1e061c4 ("drivers/clk: convert VL struct to struct_size") Signed-off-by: Will McVicker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions