Page MenuHomeFreeBSD

vm_fault: update page pred after lock rel/acq in copy_entry
ClosedPublic

Authored by dougm on Wed, Mar 26, 4:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 1, 7:06 AM
Unknown Object (File)
Fri, Mar 28, 2:55 PM
Unknown Object (File)
Fri, Mar 28, 7:34 AM
Unknown Object (File)
Fri, Mar 28, 6:41 AM
Unknown Object (File)
Fri, Mar 28, 3:51 AM
Unknown Object (File)
Fri, Mar 28, 12:50 AM
Unknown Object (File)
Thu, Mar 27, 11:54 PM
Unknown Object (File)
Thu, Mar 27, 9:56 PM
Subscribers

Details

Summary

In vm_fault_copy_entry, variable 'mpred' is invalided as the predecessor of the next page to be inserted when an allocation failure leads to lock release and reacquisition. Recompute it in that case.

Addresses a problem identified by @markj in D49103.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Wed, Mar 26, 4:27 PM
dougm created this revision.

Sorry, that was all to complicated. Simplify.

Update the correct variable.

Could you please include a Fixes tag in the commit log?

This revision is now accepted and ready to land.Thu, Mar 27, 8:58 AM
This revision was automatically updated to reflect the committed changes.
sys/vm/vm_fault.c
2211

Sorry I didn't catch this - this should be dst_object, not src_object.