svc: Don't call xpo_free until after releasing auth data
Subsystems (3)
RFC PATCH 1/1 svc: Don't call xpo_free until after releasing auth data
The svc_xprt_free function is calling xpo_free and then using the xprt pointer while attempting to free the cached auth data. Reverse the order of these operations.
---
net/sunrpc/svc_xprt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/svc_xprt.c +1 -1
@@ -127,10 +127,10 @@ static void svc_xprt_free(struct kref *k container_of(kref, struct svc_xprt, xpt_ref);struct module *owner = xprt->xpt_class->xcl_owner;BUG_ON (atomic_read (&kref->refcount)); - xprt->xpt_ops->xpo_free (xprt);if (test_bit (XPT_CACHE_AUTH , &xprt->xpt_flags) && xprt->xpt_auth_cache !=NULL )svcauth_unix_info_release (xprt->xpt_auth_cache); + xprt->xpt_ops->xpo_free (xprt);module_put (owner); }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 5 lines · Tom Tucker
The
svc_xprt_freefunction is callingxpo_freeand then using the xprt pointer while attempting to free the cached auth data. Reverse the order of these operations.
ok.
Greg.
Signature · 12 lines
Greg Banks, R&D Software Engineer, SGI Australian Software Group. Apparently, I'm Bedevere. Which MPHG character are you? I don't speak for SGI. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs