Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162724895
D58195.id181843.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
755 B
Referenced Files
None
Subscribers
None
D58195.id181843.diff
View Options
Index: sys/compat/linuxkpi/common/src/linux_compat.c
===================================================================
--- sys/compat/linuxkpi/common/src/linux_compat.c
+++ sys/compat/linuxkpi/common/src/linux_compat.c
@@ -1399,6 +1399,19 @@
error = ESTALE;
vm_no_fault = 1;
} else {
+ if (ptr->vm_start == vmap->vm_start &&
+ ptr->vm_end <= vmap->vm_end) {
+ /*
+ * Userspace wants to grow an existing
+ * mapping. We already have a
+ * `vm_object_t' for this mapping. We
+ * just need to update the `struct
+ * vm_area_struct` to have the correct
+ * end address.
+ */
+ ptr->vm_end = vmap->vm_end;
+ }
+
error = EEXIST;
vm_no_fault = (ptr->vm_ops->fault == NULL);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 17, 4:37 AM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35114832
Default Alt Text
D58195.id181843.diff (755 B)
Attached To
Mode
D58195: linuxkpi: Update `struct vm_area_struct` when an existing mapping is extended
Attached
Detach File
Event Timeline
Log In to Comment