git: 93c4f310fc65 - main - vm_fault: correct mpred update after alloc fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Mar 2025 07:04:41 UTC
The branch main has been updated by dougm:
URL: https://cgit.FreeBSD.org/src/commit/?id=93c4f310fc653b0b7dda57043430dac8c7feaece
commit 93c4f310fc653b0b7dda57043430dac8c7feaece
Author: Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2025-03-28 07:01:50 +0000
Commit: Doug Moore <dougm@FreeBSD.org>
CommitDate: 2025-03-28 07:01:50 +0000
vm_fault: correct mpred update after alloc fail
Find the predecessor in dst_object, not src_object.
Fixes: 6d6c97fb72a7 <https://reviews.freebsd.org/rG6d6c97fb72a7dce85008cef891d093b24dcbb380> ("vm_fault: update pred lock acq in copy_entry")
Reported by: markj
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D49547
---
sys/vm/vm_fault.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 2e254e255dce..48a7a47e4c59 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -2208,7 +2208,7 @@ again:
VM_OBJECT_RUNLOCK(object);
vm_wait(dst_object);
VM_OBJECT_WLOCK(dst_object);
- mpred = vm_page_mpred(src_object, pindex);
+ mpred = vm_page_mpred(dst_object, pindex);
goto again;
}