HomeFreeBSD

softdep_flush(): do not access ump after we acked FLUSH_EXIT and unlocked SU…

Description

softdep_flush(): do not access ump after we acked FLUSH_EXIT and unlocked SU lock

otherwise we might follow a pointer in the freed memory.

Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D29178

Details

Provenance
kibAuthored on Feb 28 2021, 10:45 PM
Reviewer
mckusick
Differential Revision
D29178: UFS SU: handle races on remounts rw<->ro
Parents
rG7c7a6681fab2: ffs: clear MNT_SOFTDEP earlier when remounting rw to ro
Branches
Unknown
Tags
Unknown