Date: Fri, 17 Jun 2011 22:29:07 +0000 From: gk@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r223367 - soc2011/gk/ino64-head/sys/ufs/ffs Message-ID: <20110617222907.6DCD11065670@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gk Date: Fri Jun 17 22:29:07 2011 New Revision: 223367 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=223367 Log: ufs: Verify inode is 32 bit in ffs_vget Modified: soc2011/gk/ino64-head/sys/ufs/ffs/ffs_vfsops.c Modified: soc2011/gk/ino64-head/sys/ufs/ffs/ffs_vfsops.c ============================================================================== --- soc2011/gk/ino64-head/sys/ufs/ffs/ffs_vfsops.c Fri Jun 17 22:28:55 2011 (r223366) +++ soc2011/gk/ino64-head/sys/ufs/ffs/ffs_vfsops.c Fri Jun 17 22:29:07 2011 (r223367) @@ -1472,6 +1472,11 @@ struct cdev *dev; int error; + if ((ino >> 32) != 0) { + printf("ffs_vget: invalid inode number: %jd\n", (intmax_t)ino); + return (EINVAL); + } + error = vfs_hash_get(mp, ino, flags, curthread, vpp, NULL, NULL); if (error || *vpp != NULL) return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110617222907.6DCD11065670>