Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156827827
D14062.id39296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
911 B
Referenced Files
None
Subscribers
None
D14062.id39296.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,11 @@
pa = VM_PAGE_TO_PHYS(m) | pmap_cache_bits(m->md.pat_mode, 0);
if ((*pte & (PG_FRAME | PG_PTE_CACHE)) != pa) {
oldpte |= *pte;
+#if defined(PAE) || defined(PAE_TABLES)
+ pte_store(pte, pa | pgeflag | pg_nx | PG_RW | PG_V);
+#else
pte_store(pte, pa | pgeflag | PG_RW | PG_V);
+#endif
}
pte++;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 17, 6:05 PM (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33201901
Default Alt Text
D14062.id39296.diff (911 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