From ff2783442ea2801a4bf6c76f198f36a6e985e7dd Mon Sep 17 00:00:00 2001 From: Stephen Tu Date: Mon, 4 Mar 2013 16:16:54 -0500 Subject: Correct a security bug in copyuvm() copyuvm() should not allow new copied pages to inherit more permissions than the original pages. --- mmu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mmu.h') 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; -- cgit v1.2.3