Unstable changes for ipc - Fork fails for some reason

This commit is contained in:
Bahadir Balban
2009-05-23 18:43:55 +03:00
parent 577cc34db6
commit 5ac5889a0f
9 changed files with 205 additions and 43 deletions

View File

@@ -145,6 +145,14 @@ struct address_space *address_space_create(struct address_space *orig)
return space;
}
/*
* FIXME: This does not guarantee that a kernel can access a user pointer.
* A pager could map an address as requested by the kernel, and unmap it
* before the kernel has accessed that user address. In order to fix this,
* per-pte locks (via a bitmap) should be introduced, and map syscalls can
* check if a pte is locked before going forward with a request.
*/
/*
* Checks whether the given user address is a valid userspace address.
* If so, whether it is currently mapped into its own address space.