Frank Filz has uploaded this change for review.

View Change

Add refcount to COMPOUND4res_extended to protect slot cache

A race between a SEQUENCE op resulting in a slot cache replay and
CREATE_SESSION or other session/slot cleanup can result in a crash.

This patch refcounts the responses to protect from this.

Change-Id: Ib68435296ba71fa423a9f8cf2c168684525721f0
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/MainNFSD/nfs_worker_thread.c
M src/Protocols/NFS/nfs4_Compound.c
M src/Protocols/NFS/nfs4_op_bind_conn.c
M src/Protocols/NFS/nfs4_op_create_session.c
M src/Protocols/NFS/nfs4_op_layoutget.c
M src/Protocols/NFS/nfs4_op_lock.c
M src/Protocols/NFS/nfs4_op_open.c
M src/Protocols/NFS/nfs4_op_sequence.c
M src/SAL/nfs41_session_id.c
M src/include/nfs_proto_data.h
M src/include/nfs_proto_functions.h
M src/include/sal_data.h
12 files changed, 162 insertions(+), 136 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ib68435296ba71fa423a9f8cf2c168684525721f0
Gerrit-Change-Number: 441646
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-MessageType: newchange