Spdk/app
Krzysztof Karas 9494e8f54c spdk_top: allocate a copy of strings during thread display routine
The display_thread() function is the only one that needs to use a copy
of thread data, as threads might be moved between the cores during
SPDK application lifetime.
To avoid problems with using freed memory in the copied thread
structures, make sure the data is always present, by allocating a copy
of necessary strings. This will ensure that even after we have already
freed the globals holding data from RPC, the pointers used to display
the names and cpumasks will still have something to point to.

Fixes #2635

Change-Id: If9228ee199a774d208ddd6ff846532be3ef2012d
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14141
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
2022-08-25 07:31:06 +00:00
..
iscsi_tgt app: every app should have an (un)install target 2022-06-21 07:54:12 +00:00
iscsi_top check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
nvmf_tgt app: every app should have an (un)install target 2022-06-21 07:54:12 +00:00
spdk_dd check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
spdk_lspci app: every app should have an (un)install target 2022-06-21 07:54:12 +00:00
spdk_tgt Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
spdk_top spdk_top: allocate a copy of strings during thread display routine 2022-08-25 07:31:06 +00:00
trace check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
trace_record check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
vhost app: every app should have an (un)install target 2022-06-21 07:54:12 +00:00
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00