Bug 27422

Summary: NFS OOps - kernel BUG at fs/nfs/nfs3xdr.c:1338
Product: File System Reporter: Maciej Rutecki (maciej.rutecki)
Component: NFSAssignee: Trond Myklebust (trondmy)
Status: CLOSED CODE_FIX    
Severity: normal CC: gmazyland, maciej.rutecki, rjw
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: Yes Bisected commit-id:
Bug Depends on:    
Bug Blocks: 27352    
Attachments: NFS: Fix "kernel BUG at fs/nfs/nfs3xdr.c:1338!"

Description Maciej Rutecki 2011-01-23 17:39:21 UTC
Subject    : NFS OOps  - kernel BUG at fs/nfs/nfs3xdr.c:1338
Submitter  : Milan Broz <mbroz@redhat.com>
Date       : 2011-01-14 23:18
Message-ID : 4D30D9D6.2080809@redhat.com
References : http://marc.info/?l=linux-kernel&m=129504714503972&w=2

This entry is being used for tracking a regression from 2.6.37. Please don't
close it until the problem is fixed in the mainline.
Comment 1 Trond Myklebust 2011-01-28 22:27:26 UTC
Created attachment 45422 [details]
NFS: Fix "kernel BUG at fs/nfs/nfs3xdr.c:1338!"

nfs3_xdr_enc_setacl3args() is not properly setting up the target
buffer before nfsacl_encode() attempts to encode the ACL.

Introduced by commit d9c407b1 "NFS: Introduce new-style XDR encoding
functions for NFSv3."

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>