summaryrefslogtreecommitdiff
path: root/mmu.h
diff options
context:
space:
mode:
authorStephen Tu <[email protected]>2013-03-04 16:16:54 -0500
committerAustin Clements <[email protected]>2013-03-04 16:16:54 -0500
commitff2783442ea2801a4bf6c76f198f36a6e985e7dd (patch)
treea7f1ac2325465a23c274f1e531ac3b2db376f0d3 /mmu.h
parent241c068066c51e9e06adf6d45834b97a50d029cf (diff)
downloadxv6-labs-ff2783442ea2801a4bf6c76f198f36a6e985e7dd.tar.gz
xv6-labs-ff2783442ea2801a4bf6c76f198f36a6e985e7dd.tar.bz2
xv6-labs-ff2783442ea2801a4bf6c76f198f36a6e985e7dd.zip
Correct a security bug in copyuvm()
copyuvm() should not allow new copied pages to inherit more permissions than the original pages.
Diffstat (limited to 'mmu.h')
-rw-r--r--mmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mmu.h b/mmu.h
index 5c9ab60..685f51d 100644
--- a/mmu.h
+++ b/mmu.h
@@ -142,6 +142,7 @@ struct segdesc {
// Address in page table or page directory entry
#define PTE_ADDR(pte) ((uint)(pte) & ~0xFFF)
+#define PTE_FLAGS(pte) ((uint)(pte) & 0xFFF)
#ifndef __ASSEMBLER__
typedef uint pte_t;