From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:43774 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbbEBR7l (ORCPT ); Sat, 2 May 2015 13:59:41 -0400 Subject: Patch "nfsd4: disallow SEEK with special stateids" has been added to the 3.19-stable tree To: bfields@redhat.com, Anna.Schumaker@Netapp.com, gregkh@linuxfoundation.org, hch@infradead.org Cc: , From: Date: Sat, 02 May 2015 19:59:16 +0200 Message-ID: <143058955665191@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled nfsd4: disallow SEEK with special stateids to the 3.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: nfsd4-disallow-seek-with-special-stateids.patch and it can be found in the queue-3.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 980608fb50aea34993ba956b71cd4602aa42b14b Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Tue, 21 Apr 2015 15:25:39 -0400 Subject: nfsd4: disallow SEEK with special stateids From: "J. Bruce Fields" commit 980608fb50aea34993ba956b71cd4602aa42b14b upstream. If the client uses a special stateid then we'll pass a NULL file to vfs_llseek. Fixes: 24bab491220f " NFSD: Implement SEEK" Cc: Anna Schumaker Reported-by: Christoph Hellwig Signed-off-by: J. Bruce Fields Signed-off-by: Greg Kroah-Hartman --- fs/nfsd/nfs4proc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1069,6 +1069,8 @@ nfsd4_seek(struct svc_rqst *rqstp, struc dprintk("NFSD: nfsd4_seek: couldn't process stateid!\n"); return status; } + if (!file) + return nfserr_bad_stateid; switch (seek->seek_whence) { case NFS4_CONTENT_DATA: Patches currently in stable-queue which might be from bfields@redhat.com are queue-3.19/nfsd4-disallow-seek-with-special-stateids.patch queue-3.19/nfsd-eliminate-nfsd_debug.patch queue-3.19/nfsd4-fix-read-permission-checking.patch queue-3.19/nfsd4-disallow-allocate-with-special-stateids.patch