>From Daniel Gryniewicz <d...@redhat.com>:
Daniel Gryniewicz has uploaded a new change for review. (
https://review.gerrithub.io/308298
Change subject: State - Take a ref on an object for each state
......................................................................
State - Take a ref on an object for each state
The state is linked into the list in the state_hdl. For MDCACHE, this
lives directly in the entry itself. This means that, if the entry is
reused, this list get's cleaned and reused. The new entry can then be
freed, and when the old state is removed, it derefences into the now
freed entry, causing use-after-free.
Take a ref on the entry for each state; this will keep the entry from
being reused off the LRU.
Change-Id: I8d810c2cb884450c08620096f77d08fe70255d8d
Signed-off-by: Daniel Gryniewicz <d...@redhat.com>
---
M src/SAL/nfs4_state.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29419/ffilz/nfs-ganesha
refs/changes/98/308298/1
--
To view, visit https://review.gerrithub.io/308298
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d810c2cb884450c08620096f77d08fe70255d8d
Gerrit-Change-Number: 308298
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: Daniel Gryniewicz <d...@redhat.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel