posix: Fixing mm0 mapping task pages incorrectly

Modifying task_virt_to_page() so that it takes into account page
protections. If mm0 writes to a task page that is meant to be
read-only, (e.g. the zero page) the design is broken.

Every access to a task's page will take the page fault route,
and the page fault handler will return the page instead of 0.
This commit is contained in:
Bahadir Balban
2009-11-05 18:25:26 +02:00
parent 35a5dc4c92
commit d306d6b451
8 changed files with 57 additions and 23 deletions
+1
View File
@@ -6,6 +6,7 @@
*/
#include <l4/macros.h>
#include <l4lib/exregs.h>
#include <l4lib/arch/syslib.h>
#include INC_GLUE(message.h)
void exregs_print_registers(void)