freebsd-dev/sys/ufs
Konstantin Belousov f0d5223230 Avoid dereferencing potentially freed workitem in
softdep_count_dependencies().

Buffer's b_dep list is protected by the SU mount lock.  Owning the
buffer lock is not enough to guarantee the stability of the list.

Calculation of the UFS mount owning the workitems from the buffer must
be much more careful to not dereference the work item which might be
freed meantime.  To get to ump, use the pointers chain which does not
involve workitems at all.

Reported and tested by:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-08-21 16:23:44 +00:00
..
ffs Avoid dereferencing potentially freed workitem in 2017-08-21 16:23:44 +00:00
ufs Consistently use vop_stdpathconf() for default pathconf values. 2017-07-11 21:55:20 +00:00