Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162521221
D11556.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D11556.diff
View Options
Index: head/sys/vm/vm_page.c
===================================================================
--- head/sys/vm/vm_page.c
+++ head/sys/vm/vm_page.c
@@ -3478,9 +3478,11 @@
bool
vm_page_ps_test(vm_page_t m, int flags, vm_page_t skip_m)
{
+ vm_object_t object;
int i, npages;
- VM_OBJECT_ASSERT_LOCKED(m->object);
+ object = m->object;
+ VM_OBJECT_ASSERT_LOCKED(object);
npages = atop(pagesizes[m->psind]);
/*
@@ -3489,6 +3491,9 @@
* occupy adjacent entries in vm_page_array[].
*/
for (i = 0; i < npages; i++) {
+ /* Always test object consistency, including "skip_m". */
+ if (m[i].object != object)
+ return (false);
if (&m[i] == skip_m)
continue;
if ((flags & PS_NONE_BUSY) != 0 && vm_page_busied(&m[i]))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 15, 3:14 AM (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35088945
Default Alt Text
D11556.diff (741 B)
Attached To
Mode
D11556: Add support for psind == 1 to pmap_enter() on amd64 and use that support in vm_fault()'s "fast path"
Attached
Detach File
Event Timeline
Log In to Comment