nuttx/libs/libc/tls
Ville Juven 57de6484e9 task/pthread_cancelpt: Fix task_delete from another task group
PR #11165 causes an unnecessary regression; task_delete no longer works,
if the deleted task is from another group.

The logic that prevents this comes from:

nxnotify_cancellation() ->
tls_get_info_pid() ->
nxsched_get_stackinfo()

Which checks for permissions, which does not make sense in this case since
it is the kernel asking for the stack information.

Fix this by partially reverting 11165 and implementing a direct path for
the kernel to query for any tasks TLS.
2023-11-22 08:05:58 -08:00
..
CMakeLists.txt tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
Kconfig tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
Make.defs tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
task_getinfo.c
task_tls_destruct.c tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
task_tls.c tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
tls_destruct.c tls: Move task_tls_alloc and task_tls_destruct to libc 2023-08-28 11:02:18 +03:00
tls_getinfo.c task/pthread_cancelpt: Fix task_delete from another task group 2023-11-22 08:05:58 -08:00