[Bugs] [Bug 1521213] crash when gifs_set_logging is called concurrently

bugzilla at redhat.com bugzilla at redhat.com
Thu Dec 7 00:07:46 UTC 2017


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



--- Comment #4 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18941 committed in master by \"Zhang Huan\"
<zhanghuan at open-fs.com> with a commit message- gfapi: fix issue when
glfs_set_logging is called concurrently

glfs_set_logging changes THIS->ctx without lock, during initialization
THIS refers to global_xlator. Concurrently changing it could result in
global_xlator.ctx being some fs->ctx. After that fs->ctx is destroyed,
global_xlator.ctx refers to an invalid pointer and that causes crash in
sbusequent access.

Change-Id: I6682173811799bafd525d9ab371874f3803baa0e
BUG: 1521213
Signed-off-by: Zhang Huan <zhanghuan at open-fs.com>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list