Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178281821
D62386.1796417043.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
693 B
Referenced Files
None
Subscribers
None
D62386.1796417043.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -3208,11 +3208,14 @@
* and userspace memory as not executable from the kernel.
* This has been done for the bootstrap L0 entries in
* locore.S.
+ * This only applies to stage1.
*/
- if (pmap == kernel_pmap)
- l0e |= TATTR_UXN_TABLE | TATTR_AP_TABLE_NO_EL0;
- else
- l0e |= TATTR_PXN_TABLE;
+ if (pmap->pm_stage == PM_STAGE1) {
+ if (pmap == kernel_pmap)
+ l0e |= TATTR_UXN_TABLE | TATTR_AP_TABLE_NO_EL0;
+ else
+ l0e |= TATTR_PXN_TABLE;
+ }
pmap_store(l0p, l0e);
} else if (ptepindex >= NUL2E) {
vm_pindex_t l0index, l1index;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 8:44 PM (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42210942
Default Alt Text
D62386.1796417043.diff (693 B)
Attached To
Mode
D62386: arm64/pmap: _pmap_alloc_l3: Restrict stage1 attrs to stage1
Attached
Detach File
Event Timeline