]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power turbostat: Fix illegal memory access when SMT is present and disabled
authorZhang Rui <rui.zhang@intel.com>
Wed, 4 Mar 2026 00:30:12 +0000 (08:30 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 10 Mar 2026 18:58:50 +0000 (14:58 -0400)
commit57d2371d52be1d574b33382bfbf8052485b99d8b
treee48a69ef111f2ff21d158be3f41990e1da43a2f9
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
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@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c