Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178275081
D62362.1796398342.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
716 B
Referenced Files
None
Subscribers
None
D62362.1796398342.diff
View Options
diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c
--- a/sys/powerpc/aim/mmu_radix.c
+++ b/sys/powerpc/aim/mmu_radix.c
@@ -4546,8 +4546,8 @@
newpde &= ~(PG_RW | PG_M);
newpde |= RPTE_EAA_R;
}
- if (prot & VM_PROT_EXECUTE)
- newpde |= PG_X;
+ if ((prot & VM_PROT_EXECUTE) == 0)
+ newpde &= ~PG_X;
if (newpde != oldpde) {
/*
* As an optimization to future operations on this PDE, clear
@@ -4666,8 +4666,8 @@
pbits &= ~(PG_RW | PG_M);
pbits |= RPTE_EAA_R;
}
- if (prot & VM_PROT_EXECUTE)
- pbits |= PG_X;
+ if ((prot & VM_PROT_EXECUTE) == 0)
+ pbits &= ~PG_X;
if (pbits != obits) {
if (!atomic_cmpset_long(pte, htobe64(obits), htobe64(pbits)))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 3:32 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42208231
Default Alt Text
D62362.1796398342.diff (716 B)
Attached To
Mode
D62362: powerpc/radix: let mprotect() revoke execute permission
Attached
Detach File
Event Timeline