Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 158599 Details for
Bug 247120
NFSd oops when exporting krb5p mounts
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
UPstream patch that stops the problem
linux-2.6.18-nfsd-export-oops.patch (text/plain), 1.73 KB, created by
Steve Dickson
on 2007-07-05 15:08:15 UTC
(
hide
)
Description:
UPstream patch that stops the problem
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2007-07-05 15:08:15 UTC
Size:
1.73 KB
patch
obsolete
>commit f988443a84528bd30c2f474efa5e2c511959f19b >Author: NeilBrown <neilb@suse.de> >Date: Wed Dec 13 00:35:45 2006 -0800 > > [PATCH] knfsd: Fix up some bit-rot in exp_export > > The nfsservctl system call isn't used but recent nfs-utils releases for > exporting filesystems, and consequently the code that is uses - exp_export - > has suffered some bitrot. > > Particular: > - some newly added fields in 'struct svc_export' are being initialised > properly. > - the return value is now always -ENOMEM ... > > This patch fixes both these problems. > > Signed-off-by: Neil Brown <neilb@suse.de> > Signed-off-by: Andrew Morton <akpm@osdl.org> > Signed-off-by: Linus Torvalds <torvalds@osdl.org> > >--- linux-2.6.18.i686/fs/nfsd/export.c.orig 2007-07-05 10:28:55.000000000 -0400 >+++ linux-2.6.18.i686/fs/nfsd/export.c 2007-07-05 10:29:58.000000000 -0400 >@@ -950,6 +950,8 @@ exp_export(struct nfsctl_export *nxp) > > exp = exp_get_by_name(clp, nd.mnt, nd.dentry, NULL); > >+ memset(&new, 0, sizeof(new)); >+ > /* must make sure there won't be an ex_fsid clash */ > if ((nxp->ex_flags & NFSEXP_FSID) && > (fsid_key = exp_get_fsid_key(clp, nxp->ex_dev)) && >@@ -980,6 +982,9 @@ exp_export(struct nfsctl_export *nxp) > > new.h.expiry_time = NEVER; > new.h.flags = 0; >+ new.ex_path = kstrdup(nxp->ex_path, GFP_KERNEL); >+ if (!new.ex_path) >+ goto finish; > new.ex_client = clp; > new.ex_mnt = nd.mnt; > new.ex_dentry = nd.dentry; >@@ -1000,10 +1005,11 @@ exp_export(struct nfsctl_export *nxp) > /* failed to create at least one index */ > exp_do_unexport(exp); > cache_flush(); >- err = -ENOMEM; >- } >- >+ } else >+ err = 0; > finish: >+ if (new.ex_path) >+ kfree(new.ex_path); > if (exp) > exp_put(exp); > if (fsid_key && !IS_ERR(fsid_key))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247120
:
158597
| 158599