[Bugs] [Bug 1242515] New: racy condition in nfs/auth-cache feature

bugzilla at redhat.com bugzilla at redhat.com
Mon Jul 13 13:13:11 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1242515

            Bug ID: 1242515
           Summary: racy condition in nfs/auth-cache feature
           Product: GlusterFS
           Version: 3.7.2
         Component: nfs
          Keywords: Triaged
          Severity: high
          Priority: high
          Assignee: ndevos at redhat.com
          Reporter: ndevos at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com
        Depends On: 1226717
            Blocks: 1233025 (glusterfs-3.7.3)



+++ This bug was initially created as a clone of Bug #1226717 +++

Description of problem:
The auth-cache feature contains a function called auth_cache_purge(). This
function replaces the auth_cache->cache_dict with a new dictionary that should
contain fresh caches. The placing is triggered by the
_mnt3_auth_param_refresh_thread().

There is no locking of the actual auth_cache_entry structures, and
auth_cache_purge() can cause the free'ing of these entries while other threads
are using them.

It is very rare to notice a problem, because the auth_cache_entry structures
are used only very briefly. A chance for corruption is really small. Our
regression tests seem to have hit this issue only once or twice in the last few
months.

Version-Release number of selected component (if applicable):
3.7 and mainline

How reproducible:
extremely difficult. 

Additional info:
http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/11052/focus=11109


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1226717
[Bug 1226717] racy condition in nfs/auth-cache feature
https://bugzilla.redhat.com/show_bug.cgi?id=1233025
[Bug 1233025] GlusterFS 3.7.3 tracker
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=60bw0tygv4&a=cc_unsubscribe


More information about the Bugs mailing list