nuttx/include/nuttx
Gregory Nutt 252f58f6e9 sched/sched/sched_get_stackinfo.c: Add some security.
The sched_get_stackinfo() interface was just added.  However, it occurs to me that it is a dangerous feature and could lead to security problems.  In FLAT and PROTECTED modes, if you get access to any other threads stack, you could do harm.

This commit adds some level of security.  Basically, it implements these rules:

1. Any thread may query its own stack,
2. A kernel thread may query the stack of any other thread
3. Application threads, however, may query only the stacks of threads within the same task group, i.e., the main thread and any of the child pthreads created with the main thread as a parent or grandparent or great-grandpart ...
2020-05-04 01:13:11 +01:00
..
1wire
analog include/nuttx/analog/ads1242.h: fix nxstyle warnings 2020-03-10 07:20:38 -06:00
audio audio: nxstyle fixes for core and drivers 2020-04-21 17:19:52 -06:00
binfmt binfmt: exec_spawn as internal function shouldn't modify errno 2020-05-03 12:15:54 -06:00
can Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
contactless Merged in raiden00/nuttx_l0f0 (pull request #848) 2019-04-05 15:49:45 +00:00
crypto Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
drivers Run all .c and .h files in previous commits through nxstyle. 2020-03-22 08:24:07 -05:00
eeprom Check return from nxsem_wait_initialize() (#661) 2020-03-30 20:59:47 -06:00
fs fs/vfs: Rename fdesc_poll to fs_poll 2020-05-03 12:15:54 -06:00
i2c include/nuttx/i2c/i2c_master.h: Fix a small typo. 2018-12-07 18:53:57 -06:00
input Run codespell -w against all files 2020-02-22 14:45:07 -06:00
ioexpander Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
lcd Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
leds drivers/timers/pwm.c: Move the pwm/pwm.c driver to timers/pwm.c, The drivers/pwm contained only one .c file (pwm.c), so to avoid the proliferation of sub-directories inside drivers/ is better to move the pwm.c driver to drivers/timers. The pwm.h header was moved to include/nuttx/timers to keep consistency, so all files referencing it need to be updated. 2019-09-02 07:57:10 -06:00
lib Fix nxstyle issue 2020-05-01 10:43:47 -03:00
mbox This commit brings in the drivers needed to support OpenAMP. These changes were ported from https://github.com/FishsemiCode/nuttx. The current state: Most drivers do now compile but are not yet verfied. 2019-11-02 11:30:33 -06:00
mm Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
modem Merged in alinjerpelea/nuttx (pull request #1056) 2019-10-21 14:14:33 +00:00
mtd Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
net build: Remove 'u' prefix from userspace library 2020-05-01 15:56:55 -06:00
nx Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
power Battery monitor support (#404) 2020-02-28 18:18:50 -06:00
rf drivers/rf/dat-31r5-sp.c: dd support to the DAT-31R5-SP+ digital attenuator. Creates a the new device driver directory drivers/rf/ to support drivers related to RF peripherals. It also adds support for the DAT-31R5-SP+ digital attenuator. 2019-09-05 13:28:28 -06:00
rptun fix nxstyle warning 2020-04-26 19:53:43 -06:00
sensors "Uninterruptible" semaphore waits must return when canceled. 2020-03-29 11:58:28 -03:00
serial Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
spi stm32h7_qspi: support for custom clock (not just HCLK) and support for DUAL/QUAD commands (#582) 2020-03-19 05:59:18 -07:00
syslog syslog/rpmsg: Fix warning: ‘syslog_rpmsg_write’ defined but not used 2020-04-27 06:52:50 -06:00
timers Fix typos in comments and documentation. 2020-03-16 20:01:11 -06:00
usb Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
video Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
wireless Run nxstyle against files modified in previous commit. 2020-04-13 02:09:34 +08:00
.gitignore
addrenv.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
arch.h Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
ascii.h
b2c.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
board.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
cache.h include/nuttx/cache.h: Fix a copy-paste error. 2020-03-04 12:37:21 -03:00
cancelpt.h
clock.h Fix nxstyle issue 2020-05-01 10:43:47 -03:00
compiler.h nxstyle fixes 2020-04-11 21:19:47 +01:00
elf.h ELF64 support (#220) 2020-02-07 17:10:23 -06:00
environ.h All function pointer types should be prefaced by the qualifier CODE (unless the callable function is known to reside in RAM, then it should be FAR). 2019-08-26 17:31:29 -06:00
envpath.h binfmt/ and libs/libc: Make exepath_*() more common: 2018-11-08 07:27:14 -06:00
init.h libs/libc/unistd/lib_getcwd.c: remove stray sched_unlock(). Also fixes several typos. 2019-09-20 06:23:48 -06:00
irq.h include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave macro typo error and remove the duplicated inclusion of arch/irq.h 2019-01-27 11:21:03 -06:00
kmalloc.h Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
kthread.h
list.h include/nuttx/list.h: fix typos 2020-01-18 21:44:07 -06:00
mmcsd.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
module.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
mqueue.h build: Remove 'u' prefix from userspace library 2020-05-01 15:56:55 -06:00
mutex.h Fix a few minor typos 2019-09-08 15:59:14 -06:00
nuttx.h Kconfig: Move 'option modules' from NSH_FILE_APPS to BUILD_LOADABLE 2018-08-27 07:06:57 -06:00
page.h Run codespell -w against all files 2020-02-22 14:45:07 -06:00
pgalloc.h
progmem.h Merged in ebsong/nuttx (pull request #722) 2018-09-21 03:18:38 +00:00
pthread.h
random.h
sched.h sched/sched/sched_get_stackinfo.c: Add some security. 2020-05-04 01:13:11 +01:00
sched_note.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
scsi.h Fix use of undefined pp-token #errror, other typos. 2019-09-19 18:19:18 -06:00
sdio.h Fix nxstyle warning 2020-04-13 12:01:39 -06:00
semaphore.h build: Remove 'u' prefix from userspace library 2020-05-01 15:56:55 -06:00
signal.h build: Remove 'u' prefix from userspace library 2020-05-01 15:56:55 -06:00
spawn.h syscall: nx_task_spawn should exist in the flat build just like the protected build 2020-05-02 09:56:23 -06:00
spinlock.h sched/semaphore/spinlock.c: spin_trylock handle memory barrier and instrumentation correctly. 2019-11-03 19:40:58 -06:00
streams.h drivers/syslog: syslog_force does not set errno so do not test against it. Some changes to comments. 2019-09-16 07:48:48 -06:00
symtab.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
time.h Remove TIME_EXTENDED option to more conform C standard 2020-01-23 08:17:22 -06:00
tls.h
tree.h
userspace.h Fix nxstyle issue 2020-05-01 10:43:47 -03:00
vt100.h
wdog.h include/nuttx/wdog.h: Add some additional comments. 2020-04-07 17:40:46 +01:00
wqueue.h Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
zoneinfo.h