nuttx/libs/libc
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
..
aio libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
assert toolchain/gcc: fix linker error if enable STACK_CANARIES/LTO at same time 2023-07-21 01:13:34 +08:00
audio libsrc: update version in CMakeLists.txt 2023-09-07 22:15:48 +08:00
bin build: add initial cmake build system 2023-07-08 13:50:48 +08:00
builtin libs/libc: adapt the cmake script from the makefile 2023-11-07 17:39:03 +01:00
ctype libs/ctype/toupper_l: Implement function toupper_l instead of macro 2023-08-22 00:07:16 +08:00
dirent build: add initial cmake build system 2023-07-08 13:50:48 +08:00
dlfcn Fix loading of ET_DYN type of shared objects 2023-09-20 09:35:28 -04:00
errno build: add initial cmake build system 2023-07-08 13:50:48 +08:00
eventfd build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fdt libfdt: modify makefile 2023-08-26 17:07:02 +08:00
fixedmath build: add initial cmake build system 2023-07-08 13:50:48 +08:00
gdbstub tcbinfo:remove total_num form tcbinfo. 2023-11-21 21:52:24 -08:00
gpsutils libs/libc: adapt the cmake script from the makefile 2023-11-07 17:39:03 +01:00
grp build: add initial cmake build system 2023-07-08 13:50:48 +08:00
hex2bin c++ compatibility: rename reserved c++ keywords 'public' and 'this' 2023-09-16 19:45:02 +08:00
inttypes build: add initial cmake build system 2023-07-08 13:50:48 +08:00
kbin build: add initial cmake build system 2023-07-08 13:50:48 +08:00
libgen libc/basename: Change len type from int to size_t 2023-07-16 00:35:35 +03:00
locale libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
lzf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
machine libc_atomic: add file to cmake script 2023-11-07 17:39:03 +01:00
misc libs/libc: adapt the cmake script from the makefile 2023-11-07 17:39:03 +01:00
modlib modlib/modlib_load: fix compile warning 2023-10-26 01:53:38 +08:00
net net/ip: print ip addresses using ip4_addrN macro 2023-08-19 13:28:21 -03:00
netdb netdb: When set a dns nameserver, if the nameserver already exists, retrun OK. 2023-10-12 12:22:16 +08:00
obstack c++ compatibility: rename reserved c++ keywords 'public' and 'this' 2023-09-16 19:45:02 +08:00
pthread sched/tls_info: Add tl_ prefix to pthread cleanup stack / tos 2023-11-15 08:52:04 -08:00
pwd pwd: fix syntax error 2023-09-04 23:19:46 +08:00
queue build: add initial cmake build system 2023-07-08 13:50:48 +08:00
regex libs/libc/regex: add newline at the end of Make.defs 2023-06-11 12:55:29 +08:00
sched task/pthread_cancelpt: Move cancel point handling to libc, data to TLS 2023-11-15 08:52:04 -08:00
semaphore build: add initial cmake build system 2023-07-08 13:50:48 +08:00
signal signal: add siginterrupt implementation 2023-08-29 09:43:42 +08:00
spawn libs/libc/spawn: Add minimal implementation for posix_spawnattr_destory. 2023-10-31 13:42:00 +08:00
stdio Fix improper handling of 64 bit types for libvsprintf 2023-11-15 18:37:43 -08:00
stdlib libc/realpath: allocate link buffer of pseudofs to save stack 2023-11-07 09:05:50 +08:00
stream libc/stdio: Remove bforce from lib_fflush[_unlocked] 2023-10-29 17:09:18 +02:00
string Revert "libc/lib_bzero:Add bzero prototype." 2023-11-21 07:56:52 -08:00
symtab libc/symtab: Don't include symtab.h in the header files 2023-07-10 23:03:17 +03:00
syslog build: add initial cmake build system 2023-07-08 13:50:48 +08:00
termios build: add initial cmake build system 2023-07-08 13:50:48 +08:00
time libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
tls task/pthread_cancelpt: Fix task_delete from another task group 2023-11-22 08:05:58 -08:00
uio build: add initial cmake build system 2023-07-08 13:50:48 +08:00
unistd libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
userfs build: add initial cmake build system 2023-07-08 13:50:48 +08:00
uuid libc: Change errno to set_errno and get_errno 2023-10-29 17:16:09 +02:00
wchar libs/libc/wchar: add wcswidth implementation 2023-09-22 08:51:07 +08:00
wctype build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wqueue build: add initial cmake build system 2023-07-08 13:50:48 +08:00
zoneinfo Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
.gitignore libfdt: modify makefile 2023-08-26 17:07:02 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig fdt: add libfdt support 2023-08-10 20:47:37 +08:00
libc.csv libc: Add bsearch to libc.csv 2023-09-25 01:08:15 +03:00
libc.h stdio: Implement [clearerr|putc|fflush]_unlocked 2023-10-29 17:09:18 +02:00
Makefile fdt: add libfdt support 2023-08-10 20:47:37 +08:00