From owner-svn-soc-all@FreeBSD.ORG Fri Jun 17 22:29:09 2011 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id 6DCD11065670 for ; Fri, 17 Jun 2011 22:29:07 +0000 (UTC) (envelope-from gk@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Fri, 17 Jun 2011 22:29:07 +0000 Date: Fri, 17 Jun 2011 22:29:07 +0000 From: gk@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20110617222907.6DCD11065670@hub.freebsd.org> Cc: Subject: socsvn commit: r223367 - soc2011/gk/ino64-head/sys/ufs/ffs X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2011 22:29:09 -0000 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);