Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132287710
D14062.id39282.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D14062.id39282.diff
View Options
Index: sys/amd64/amd64/pmap.c
===================================================================
--- sys/amd64/amd64/pmap.c
+++ sys/amd64/amd64/pmap.c
@@ -2330,7 +2330,7 @@
pa = VM_PAGE_TO_PHYS(m) | cache_bits;
if ((*pte & (PG_FRAME | X86_PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
- pte_store(pte, pa | pg_g | X86_PG_RW | X86_PG_V);
+ pte_store(pte, pa | pg_g | pg_nx | X86_PG_RW | X86_PG_V);
}
pte++;
}
Index: sys/i386/i386/pmap.c
===================================================================
--- sys/i386/i386/pmap.c
+++ sys/i386/i386/pmap.c
@@ -1677,7 +1677,7 @@
pa = VM_PAGE_TO_PHYS(m) | pmap_cache_bits(m->md.pat_mode, 0);
if ((*pte & (PG_FRAME | PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
- pte_store(pte, pa | pgeflag | PG_RW | PG_V);
+ pte_store(pte, pa | pgeflag | pg_nx | PG_RW | PG_V);
}
pte++;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 16, 1:27 PM (12 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23793268
Default Alt Text
D14062.id39282.diff (854 B)
Attached To
Mode
D14062: Make memory mapped via pmap_qenter() non-executable for amd64/i386.
Attached
Detach File
Event Timeline
Log In to Comment