« Previous | Next » 

Revision aed76ef1

IDaed76ef1f778cc4185ddd699631316d05d6811b6

Added by dillon about 4 years ago

kernel - Fix one-cycle MP race in vshouldmsync()

* vshouldmsync() is the mntvnode fast function, which is called without
any vnode lock. vp->v_object can thus get ripped out from under the
scan function.

Hold vmobj_token through the scan so any pointer accessed via
v_object remains stable (even if no longer related to the vnode
due to the race).

Reported-by: swildner

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Review assignments Add