linux-stable/tools
Colin Ian King 093d62a6c9 radix tree test suite: fix incorrect allocation size for pthreads
commit cac7ea57a0 upstream.

Currently the pthread allocation for each array item is based on the size
of a pthread_t pointer and should be the size of the pthread_t structure,
so the allocation is under-allocating the correct size.  Fix this by using
the size of each element in the pthreads array.

Static analysis cppcheck reported:
tools/testing/radix-tree/regression1.c:180:2: warning: Size of pointer
'threads' used instead of size of its data. [pointerSize]

Link: https://lkml.kernel.org/r/20230727160930.632674-1-colin.i.king@gmail.com
Fixes: 1366c37ed8 ("radix tree test harness")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:10:53 +02:00
..
accounting
arch parisc: Align parisc MADV_XXX constants with all other architectures 2023-01-18 09:26:42 +01:00
build tools build: Switch to new openssl API for test-libcrypto 2022-08-25 11:11:33 +02:00
cgroup
firewire
gpio tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:12:39 +02:00
hv
iio tools/iio/iio_utils:fix memory leak 2023-03-11 16:26:54 +01:00
include perf tools: Correct SNOOPX field offset 2020-09-09 19:03:09 +02:00
kvm/kvm_stat tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
laptop
leds
lib libtraceevent: Fix build with binutils 2.35 2023-01-18 09:26:04 +01:00
net
nfsd
objtool objtool: Add a missing comma to avoid string concatenation 2023-02-06 07:46:33 +01:00
pci
pcmcia
perf perf test uprobe_from_different_cu: Skip if there is no gcc 2023-08-11 11:33:54 +02:00
power cpupower: Make TSC read per CPU for Mperf monitor 2023-05-30 12:38:36 +01:00
scripts
spi
testing radix tree test suite: fix incorrect allocation size for pthreads 2023-08-16 18:10:53 +02:00
thermal/tmon tools/thermal: Fix possible path truncations 2022-08-25 11:11:27 +02:00
time
usb usb: testusb: Fix for showing the connection speed 2021-10-09 14:09:46 +02:00
virtio tools/virtio: fix the vringh test for virtio ring changes 2023-02-22 12:46:05 +01:00
vm tools/vm/slabinfo-gnuplot: use "grep -E" instead of "egrep" 2022-12-08 11:16:32 +01:00
Makefile