HomeFreeBSD

md: Fix a race in mdstart_swap()

Description

md: Fix a race in mdstart_swap()

Release a grabbed page's busy state only after marking it as referenced.
Otherwise there exists a narrow window where the page could be freed
before the update. Before r356902 this was not a problem since the
object lock was held.

Discussed with: kib
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jan 4 2021, 1:21 PM
Parents
rGea70ab2387e5: Use the actual credentials to create the /dev/nmdm* devices.
Branches
Unknown
Tags
Unknown