plan9fox/sys
cinap_lenrek 12fa017f3f devproc: fix fishy locking in proctext(), check proc validity, static functions
the locking in proctext() is wrong. we have to acquire Proc.seglock
when reading segments from Proc.seg[] as segments do not
have a private freelist and can therefore be reused for other
data structures.

once we have Proc.seglock acquired, check that the process pid
is still valid so we wont accidentally read some other processes
segments. (for both proctext() and procctlmemio()). this also
should give better error message to distinguish the case when
the process did segdetach() the segment in question before we
could acquire Proc.seglock.

declare private functions as static.
2019-09-21 16:36:40 +02:00
..
doc
games/lib
include Add toascii() to ape 2019-09-09 16:00:06 +01:00
lib acid/kernel: for stacktraces, try to use context from error stack when process is not sleeping 2019-09-12 15:28:04 +02:00
man sys/src/libventi: implement vtreconn and vtredial functions 2019-09-06 11:54:44 -07:00
src devproc: fix fishy locking in proctext(), check proc validity, static functions 2019-09-21 16:36:40 +02:00