Nishant Puri has uploaded this change for review.

View Change

SAL: Fix crash during shutdown due to invalid svc_rqst_rec in svc_rqst_expire_insert

During shutdown, svc_destroy clears cx_rec->ev_p as part of xprt unregister.
Later, state_export_unlock_all may still trigger RPC callbacks that dereference
the freed ev_p (svc_rqst_expire_insert), leading to crashes.

Fix by validating, if admin_shutdown is in progress while granting
the lock we will not trigger the callbacks.

Change-Id: I80257143de6fd8fbc11b19e7de0a6d7bb76a8773
Signed-off-by: Nishant Puri <npuri@redhat.com>
---
M src/SAL/state_lock.c
1 file changed, 3 insertions(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/91/1222291/1

To view, visit change 1222291. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I80257143de6fd8fbc11b19e7de0a6d7bb76a8773
Gerrit-Change-Number: 1222291
Gerrit-PatchSet: 1
Gerrit-Owner: Nishant Puri <npuri@redhat.com>