Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177573701
D61549.1794778102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
920 B
Referenced Files
None
Subscribers
None
D61549.1794778102.diff
View Options
Index: sys/arm64/arm64/pmap.c
===================================================================
--- sys/arm64/arm64/pmap.c
+++ sys/arm64/arm64/pmap.c
@@ -5645,8 +5645,22 @@
pmap_store(tl3p, newpte);
newpte += L3_SIZE;
}
+ newpte -= L3_SIZE;
}
- dsb(ishst);
+
+ /*
+ * A page fault does not automatically invalidate the TLB entry for a
+ * valid mapping, so we must perform an invalidation on any change to
+ * a valid mapping, including changes that add permissions. The only
+ * exception is a wiring-only change. One TLB invalidation suffices
+ * for L1 or L2 block mappings.
+ */
+ if ((origpte & ATTR_DESCR_VALID) != 0 &&
+ ((origpte ^ newpte) & ~ATTR_SW_WIRED) != 0)
+ pmap_invalidate_range(pmap, va, va + (psind == 1 ?
+ L3C_SIZE : PAGE_SIZE), true);
+ else
+ dsb(ishst);
if ((origpte & ATTR_DESCR_VALID) == 0)
pmap_resident_count_inc(pmap, pagesizes[psind] / PAGE_SIZE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 9:28 PM (13 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41749036
Default Alt Text
D61549.1794778102.diff (920 B)
Attached To
Mode
D61549: arm64 pmap: a non-transparent large page mapping may require a TLB invalidation
Attached
Detach File
Event Timeline