From owner-cvs-src-old@FreeBSD.ORG Fri Nov 12 01:45:42 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7441A106590A for ; Fri, 12 Nov 2010 01:45:42 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 624DD8FC17 for ; Fri, 12 Nov 2010 01:45:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAC1jgU3053146 for ; Fri, 12 Nov 2010 01:45:42 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAC1jgkU053145 for cvs-src-old@freebsd.org; Fri, 12 Nov 2010 01:45:42 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <201011120145.oAC1jgkU053145@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Fri, 12 Nov 2010 01:45:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ioctl.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 01:45:42 -0000 delphij 2010-11-12 01:45:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_ioctl.c Log: SVN rev 215155 on 2010-11-12 01:45:29Z by delphij MFC r214854: Validate whether the zfs_cmd_t submitted from userland is not smaller than what we have. Without the check the kernel could accessing memory that does not belong to the request struct. Note that we do not test if the struct equals in size at this time, which may faciliate forward compatibility with newer binaries. Revision Changes Path 1.12.2.10 +8 -0 src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c