nuttx/sched
Masayuki Ishikawa e277ac7a7f sched: task: Fix a potential bug in nxtask_assign_pid()
Summary:
- During reviewing sched_lock() in nxtask_assign_pid(),
  I noticed that g_pidhash is not protected by a critical section
- Because g_pidhash is accessed in an interrupt context,
  it should be protected by a critical section.
- Actually, nxsched_foreach(), nxsched_get_tcb() and so on
  use a critical section.

Impact:
- No impact

Testing:
- Tested with spresense:wifi (non-SMP) and spresense:wifi_smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-01-24 20:02:58 -08:00
..
clock clock/time: add CLOCK_BOOTTIME definition 2020-12-10 06:40:47 -06:00
environ global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
group fs: Remove fs_dupfd and fs_dupfd2 internal functions 2021-01-13 16:39:45 +08:00
init sched/init: init the default home directory to environment 2020-11-09 23:42:46 -08:00
irq sched: irq: Change irq_waitlock() from private to public 2020-12-10 08:33:42 +01:00
module sched/module/mod_modhandle.c: Fix a syslog format 2020-11-21 19:38:32 -08:00
mqueue mqueue: add file_mq_xx for kernel use 2021-01-05 02:40:43 -06:00
paging Rename clock_systime[r|spec] to clock_systime_[ticks|timespec] 2020-05-10 14:35:50 -06:00
pthread sched: pthread: Fix potential bugs in pthread_condclockwait.c 2020-12-14 21:11:05 -06:00
sched sched: sched: Remove sched_lock/unlock from nxsched_set_affinity() 2021-01-20 21:52:58 -08:00
semaphore spinlock: Introduce SP_WFE() and SP_SEV() 2020-12-11 05:58:35 -06:00
signal sched/signal: Make the pre-allocated irq actions configurable 2020-12-20 19:31:59 +01:00
task sched: task: Fix a potential bug in nxtask_assign_pid() 2021-01-24 20:02:58 -08:00
timer clock/time: add CLOCK_BOOTTIME definition 2020-12-10 06:40:47 -06:00
wdog sched/wdog: Remove MAX_WDOGPARMS and related stuff 2020-08-14 08:19:50 -06:00
wqueue sched/: Make more naming consistent 2020-05-16 13:39:03 -03:00
Kconfig arch/spinlock: implement the default test-and-set semantics 2021-01-01 15:03:55 -06:00
Makefile style/Makefile: remove unnecessary trailing whitespace 2020-11-28 12:20:30 +01:00