mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sched/assert: Re-implement assert() into user space
_assert is a kernel procedure, entered via system call to make the core dump in privileged mode. Running exit() from this context is not OK as it runs the registered exit functions and flushes streams, which must not be done from privileged mode as it is a security hole. Thus, implement assert() into user space (again) and remove the exit() call from the kernel procedure.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
"_exit","unistd.h","","noreturn","int"
|
||||
"_assert","assert.h","","noreturn","FAR const char *","int"
|
||||
"_assert","assert.h","","void","FAR const char *","int"
|
||||
"accept","sys/socket.h","defined(CONFIG_NET)","int","int","FAR struct sockaddr *","FAR socklen_t *"
|
||||
"adjtime","sys/time.h","defined(CONFIG_CLOCK_TIMEKEEPING)","int","FAR const struct timeval *","FAR struct timeval *"
|
||||
"aio_cancel","aio.h","defined(CONFIG_FS_AIO)","int","int","FAR struct aiocb *"
|
||||
|
||||
|
Reference in New Issue
Block a user