minix/servers
Thomas Veerman de5a9a3e8b AVFS: Use scratchpad instead of m_in to pass around file descriptors
Some code relies on having the file descriptor in m_in.fd. Consequently,
m_in is not only used to provide syscall parameters from user space to
VFS, but also as a global variable to store temporary data within VFS.
This has the ugly side effect that m_in gets overwritten during core
dumping.*

To work around this problem VFS now uses a so called "scratchpad" to
store temporary data that has to be globally accessible. This is a simple
table indexed by process number, just like fproc. The scratchpad allows
us to store the buffer pointer and buffer size for suspended system calls
(i.e., read, write, open, lock) instead of using fproc. This makes fproc
a bit smaller and fproc iterators a bit faster. Moreover, suspension of
processes becomes simpler altogether and suspended operations on pipes
are now less of a special case.

* This patch fixes a bug where due to unexpected m_in overwriting a
coredump would fail, and consequently resources are leaked. The coredump
was triggered with:
$ a() { a; }
$ a
2011-12-21 10:52:51 +00:00
..
apfs Don't repeat out-of-space messages 2011-12-21 10:47:28 +00:00
avfs AVFS: Use scratchpad instead of m_in to pass around file descriptors 2011-12-21 10:52:51 +00:00
devman Cleanup servers to make GCC/Clang a little happier 2011-09-08 13:57:03 +00:00
ds Add "expected size" parameter to getsysinfo() 2011-12-11 22:34:14 +01:00
ext2 Don't repeat out-of-space messages 2011-12-21 10:47:28 +00:00
hgfs Move optset.c into libsys; remove redundant copies 2011-11-07 16:16:08 +01:00
inet Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
init init: write boot entry to root wtmp 2011-12-05 13:56:16 +01:00
ipc vm/ipc: only report signals when it matters to ipc 2011-08-05 20:52:32 +00:00
is IS: unbreak F6 2011-12-11 22:34:54 +01:00
iso9660fs VFS/FS: REQ_NEW_DRIVER now provides a label 2011-11-30 19:05:26 +01:00
lwip Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
mfs Don't repeat out-of-space messages 2011-12-21 10:47:28 +00:00
pfs Split block/character protocols and libdriver 2011-11-23 14:06:37 +01:00
pm Add "expected size" parameter to getsysinfo() 2011-12-11 22:34:14 +01:00
procfs procfs: add /proc/dmap 2011-12-11 22:35:33 +01:00
rs Add "expected size" parameter to getsysinfo() 2011-12-11 22:34:14 +01:00
sched boot: Add multiboot support 2011-06-24 17:21:51 +02:00
vfs Add "expected size" parameter to getsysinfo() 2011-12-11 22:34:14 +01:00
vm vm: report cropped region sizes 2011-11-26 15:12:17 +00:00
Makefile Merge AVFS and APFS 2011-08-17 13:40:36 +00:00
Makefile.inc Fix GCC image building 2011-07-09 15:04:42 +02:00