diff options
author | Stephen Tu <[email protected]> | 2013-03-04 16:16:54 -0500 |
---|---|---|
committer | Austin Clements <[email protected]> | 2013-03-04 16:16:54 -0500 |
commit | ff2783442ea2801a4bf6c76f198f36a6e985e7dd (patch) | |
tree | a7f1ac2325465a23c274f1e531ac3b2db376f0d3 /mmu.h | |
parent | 241c068066c51e9e06adf6d45834b97a50d029cf (diff) | |
download | xv6-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |