Re: [PATCH 1/2] tools/power turbostat: Fix out-of-bounds memory access in thread_data allocation

From: Len Brown

Date: Tue Mar 10 2026 - 15:03:52 EST


Applied, thanks!

i simplified the commit log a bit:

tools/power turbostat: Fix illegal memory access when SMT is
present and disabled

When SMT is present and disabled, turbostat may under-size
the thread_data array. This can corrupt results or
cause turbostat to exit with a segmentation fault.

[lenb: commit message]
Fixes: a2b4d0f8bf07 ("tools/power turbostat: Favor cpu# over core#")
Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>
Signed-off-by: Len Brown <len.brown@xxxxxxxxx>



--
Len Brown, Intel Open Source Technology Center