kernel -- ffs: Do not dereference NULL inodes in ffs_sync_scan1.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Fri, 30 Mar 2012 06:33:08 +0000 (23:33 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 2 Apr 2012 17:31:58 +0000 (10:31 -0700)
commitec1ca5aa2ac5e7b271523073740017bebe6f95bc
treee29ffd9c305e2f39ea2dcb0346df9dd3cac00b6d
parent7b7fca2992a0ab00710ccd9cc09a3b479c9cb613
kernel -- ffs: Do not dereference NULL inodes in ffs_sync_scan1.

ffs_sync_scan1 is a fast callback from vmntvnodescan; it is not called
with vnodes locked. It is possible for an ffs_reclaim to have reclaimed
the vnode in question, NULL-ing out ip, without having removed the vnode
from the per-mount list. If we see a NULL inode, return failure from the
fast callback.
sys/vfs/ufs/ffs_vfsops.c