HomeFreeBSD

Close races in vm object chain traversal for unlock

Description

Close races in vm object chain traversal for unlock

We were unlocking the vm object before reading the backing_object field.
In the meantime, the object could be freed and reused. This could cause
us to go off the rails in the object chain traversal, failing to unlock
the rest of the objects in the original chain and corrupting the lock
state of the victim chain.

Reviewed by: bdrewery, kib, markj, vangyzen
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D28926

Details

Provenance
rlibbyAuthored on Feb 25 2021, 8:11 PM
Reviewer
bdrewery
Differential Revision
D28926: Close races in vm object chain traversal for unlock
Parents
rGf1ab799927c8: rc: fix rc script parsing
Branches
Unknown
Tags
Unknown