« Previous | Next » 

Revision aed76ef1


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


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Review assignments Add