Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102742896
D45851.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
739 B
Referenced Files
None
Subscribers
None
D45851.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
@@ -4403,8 +4403,22 @@
va = va_next;
}
if ((l3 & ATTR_CONTIGUOUS) != 0) {
- l3p += L3C_ENTRIES - 1;
- sva += L3C_SIZE - L3_SIZE;
+ /*
+ * Does this L3C page extend beyond
+ * the requested range? Handle the
+ * possibility that "va_next" is zero.
+ */
+ if ((sva | L3C_OFFSET) > va_next - 1)
+ break;
+
+ /*
+ * Skip ahead to the last L3_PAGE
+ * within this L3C page.
+ */
+ l3p = (pt_entry_t *)((uintptr_t)l3p |
+ ((L3C_ENTRIES - 1) *
+ sizeof(pt_entry_t)));
+ sva |= L3C_SIZE - L3_SIZE;
}
continue;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 2:46 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14680388
Default Alt Text
D45851.diff (739 B)
Attached To
Mode
D45851: arm64: handle an unaligned start in pmap_mask_set_locked()
Attached
Detach File
Event Timeline
Log In to Comment