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>
Fri, 30 Mar 2012 06:33:08 +0000 (23:33 -0700)
commit609f61878d1378c3d04602cf1e581a6f57dfae47
tree34551facafef0c9a72229724e5b1c55a4092dceb
parentd70eef2884c20a6688e6ead2e62ccdc3b5191d55
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