From patchwork Thu Feb 10 12:13:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaliy Gusev X-Patchwork-Id: 546051 X-Patchwork-Delegate: Trond.Myklebust@netapp.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1ACDctX005200 for ; Thu, 10 Feb 2011 12:13:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756047Ab1BJMNg (ORCPT ); Thu, 10 Feb 2011 07:13:36 -0500 Received: from relay03.bluemeaney.com ([205.234.16.187]:56129 "EHLO relay03.bluemeaney.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755935Ab1BJMNf convert rfc822-to-8bit (ORCPT ); Thu, 10 Feb 2011 07:13:35 -0500 X-ASG-Debug-ID: 1297340014-6eb586830001-suBQlS Received: from sfdc-fe-02.bluemeaney.com ([172.28.16.34]) by relay03.bluemeaney.com with ESMTP id BKnB5UUJlK3aDYbR; Thu, 10 Feb 2011 04:13:34 -0800 (PST) X-Barracuda-Envelope-From: Gusev.Vitaliy@nexenta.com X-ASG-Whitelist: Client Received: from exch-ang.bluemeaney.com ([172.28.16.71]) by sfdc-fe-02.bluemeaney.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Feb 2011 04:13:33 -0800 Received: from 172.28.16.12 ([172.28.16.12]) by exch-ang.bluemeaney.com ([172.28.16.71]) via Exchange Front-End Server owa.bluemeaney.com ([172.28.16.34]) with Microsoft Exchange Server HTTP-DAV ; Thu, 10 Feb 2011 12:13:33 +0000 X-Barracuda-BBL-IP: 172.28.16.71 X-Barracuda-RBL-IP: 172.28.16.71 Received: from vT510 by owa.bluemeaney.com; 10 Feb 2011 15:13:32 +0300 Subject: [PATCH 1/2] Fix memory corruption due to not expected FS_LOCATION From: Vitaliy Gusev X-ASG-Orig-Subj: [PATCH 1/2] Fix memory corruption due to not expected FS_LOCATION To: Trond Myklebust Cc: Al Viro , linux-fsdevel , David Howells , linux-nfs@vger.kernel.org In-Reply-To: <1297338894.3667.0.camel@vT510> References: <1297338894.3667.0.camel@vT510> Date: Thu, 10 Feb 2011 15:13:32 +0300 Message-ID: <1297340012.3667.5.camel@vT510> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 X-OriginalArrivalTime: 10 Feb 2011 12:13:33.0676 (UTC) FILETIME=[EFECBAC0:01CBC91B] X-Barracuda-Connect: UNKNOWN[172.28.16.34] X-Barracuda-Start-Time: 1297340014 X-Barracuda-URL: http://spam.bluemeaney.com:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at bluemeaney.com Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 10 Feb 2011 12:13:38 +0000 (UTC) diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 242b392..8dbfd9a 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -4301,7 +4301,8 @@ xdr_error: } static int decode_getfattr_generic(struct xdr_stream *xdr, struct nfs_fattr *fattr, - struct nfs_fh *fh, const struct nfs_server *server, int may_sleep) + struct nfs_fh *fh, const struct nfs_server *server, int may_sleep, + int expect_fsloc) { __be32 *savep;