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
F114385793: D49521.id152706.diff
Sat, Apr 12, 12:09 AM
F114376237: D49521.id152705.diff
Fri, Apr 11, 9:14 PM
Unknown Object (File)
Thu, Apr 10, 9:01 AM
Unknown Object (File)
Wed, Apr 9, 4:22 AM
Unknown Object (File)
Wed, Apr 9, 4:22 AM
Unknown Object (File)
Wed, Apr 9, 4:22 AM
Unknown Object (File)
Wed, Apr 9, 4:22 AM
Unknown Object (File)
Wed, Apr 9, 4:21 AM
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

Lint
Lint Skipped
Unit
Tests Skipped

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
2208

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