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 585984 Details for
Bug 821847
Using /net to access a NFS share leads to a segfault
[?]
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]
Patch - fix initialization in rpc create_client()
autofs-5.0.6-fix-initialization-in-rpc-create_client.patch (text/plain), 1.89 KB, created by
Ian Kent
on 2012-05-22 10:03:06 UTC
(
hide
)
Description:
Patch - fix initialization in rpc create_client()
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-05-22 10:03:06 UTC
Size:
1.89 KB
patch
obsolete
>autofs-5.0.6 - fix initialization in rpc create_client() > >From: Ian Kent <ikent@redhat.com> > >Sometimes the RPC function create_client() gets a non-null stack >variable passed in which can cause a SEGV. Fix it by initializing >the passed in variable. >--- > > CHANGELOG | 1 + > lib/rpc_subs.c | 11 ++++++++--- > 2 files changed, 9 insertions(+), 3 deletions(-) > > >--- autofs-5.0.6.orig/CHANGELOG >+++ autofs-5.0.6/CHANGELOG >@@ -40,6 +40,7 @@ > - fix sss wildcard match. > - fix dlopen() error handling in sss module. > - fix configure string length tests for sss library. >+- fix initialization in rpc create_client(). > > 28/06/2011 autofs-5.0.6 > ----------------------- >--- autofs-5.0.6.orig/lib/rpc_subs.c >+++ autofs-5.0.6/lib/rpc_subs.c >@@ -316,6 +316,7 @@ static int create_client(struct conn_inf > int fd, ret; > > fd = RPC_ANYSOCK; >+ *client = NULL; > > if (info->client) { > if (!clnt_control(info->client, CLGET_FD, (char *) &fd)) { >@@ -344,7 +345,10 @@ static int create_client(struct conn_inf > memset(&hints, 0, sizeof(hints)); > hints.ai_flags = AI_ADDRCONFIG; > hints.ai_family = AF_UNSPEC; >- hints.ai_socktype = SOCK_DGRAM; >+ if (info->proto->p_proto == IPPROTO_UDP) >+ hints.ai_socktype = SOCK_DGRAM; >+ else >+ hints.ai_socktype = SOCK_STREAM; > > ret = getaddrinfo(info->host, NULL, &hints, &ai); > if (ret) { >@@ -377,12 +381,13 @@ static int create_client(struct conn_inf > > freeaddrinfo(ai); > >+done: > if (!*client) { > info->client = NULL; > ret = -ENOTCONN; > goto out_close; > } >-done: >+ > /* Close socket fd on destroy, as is default for rpcowned fds */ > if (!clnt_control(*client, CLSET_FD_CLOSE, NULL)) { > clnt_destroy(*client); >@@ -800,7 +805,7 @@ static int rpc_get_exports_proto(struct > (xdrproc_t) xdr_void, NULL, > (xdrproc_t) xdr_exports, (caddr_t) exp, > info->timeout); >- if (status != RPC_PROGVERSMISMATCH) >+ if (status == RPC_SUCCESS) > break; > if (++vers_entry > 2) > break;
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 821847
:
585779
|
585787
| 585984 |
585985