>From Daniel Gryniewicz <[email protected]>:
Daniel Gryniewicz has uploaded a new change for review. (
https://review.gerrithub.io/306878
Change subject: Fix use-after-free during shutdown
......................................................................
Fix use-after-free during shutdown
The root object for an export was having it's sentinal ref released by
the export code; however, this code doesn't own that ref, the hash table
in MDCACHE owns that ref, so when the objest is freed, the hash removes
it from the table after it's freed.
Instead, pass the root object into the FSAL's unexport() op, allowing
MDCACHE to clean up it's state on that object before the last ref is
dropped.
Change-Id: I768306e22cfb3a9b6344c76d0e6a17d59ee29769
Signed-off-by: Daniel Gryniewicz <[email protected]>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_export.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_hash.h
M src/FSAL/default_methods.c
M src/include/fsal_api.h
M src/support/exports.c
5 files changed, 37 insertions(+), 26 deletions(-)
git pull ssh://review.gerrithub.io:29419/ffilz/nfs-ganesha
refs/changes/78/306878/1
--
To view, visit https://review.gerrithub.io/306878
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I768306e22cfb3a9b6344c76d0e6a17d59ee29769
Gerrit-Change-Number: 306878
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: Daniel Gryniewicz <[email protected]>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel