summaryrefslogtreecommitdiff
path: root/tools/perf/python
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2026-09-09 17:57:07 +0200
committerWill Deacon <will@kernel.org>2026-09-11 12:48:02 +0000
commit3d1ba5cbfb622025690c218d8f20da92a9ecb383 (patch)
tree331362f544c0a41a17de391715a04add1d1fd854 /tools/perf/python
parent8cf2093f5372952a9ebc805c418d45df7112cd14 (diff)
downloadlinux-next-3d1ba5cbfb622025690c218d8f20da92a9ecb383.tar.gz
linux-next-3d1ba5cbfb622025690c218d8f20da92a9ecb383.zip
kselftest/arm64: Fix size of thread_data values for pthread_join()
pthread_join() stores the thread's return value (a "void *", i.e. 8 bytes on 64 bit computers) into the address that is passed as second parameter. However, the entries of thread_data are only normal "int"s, i.e. only 4 bytes. The additional 4 bytes of the return value clobber whatever is adjacent on the stack, i.e. other members of the thread_data array (which will be re-written in the next iteration of the for-loop, so that nobody noticed this problem), or another other local variable on the stack for the last iteration. Use "intptr_t" to declare the thread_data array entries with the correct size. Fixes: 29f080881601c ("kselftest/arm64: check GCR_EL1 after context switch") Cc: stable@vger.kernel.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions