Bug 1369523 - worm: variable reten_mode is invalid to be free by mem_put in fini()
Summary: worm: variable reten_mode is invalid to be free by mem_put in fini()
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: All
OS: All
high
high
Target Milestone: ---
Assignee: Ryan Ding
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 16:07 UTC by Ryan Ding
Modified: 2017-03-06 17:23 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.10.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-06 17:23:44 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Ryan Ding 2016-08-23 16:07:15 UTC
Description of problem:

priv->reten_mode is initialised by option 'retention-mode'. and it reference the memory in this->options. so fini() use mem_put to free priv->reten_mode will cause a problem.

Comment 1 Worker Ant 2016-08-23 16:14:06 UTC
REVIEW: http://review.gluster.org/15296 (features/read-only: reten_mode is invalid to be free by mem_put()) posted (#1) for review on master by Anonymous Coward

Comment 2 Worker Ant 2016-10-18 14:13:12 UTC
COMMIT: http://review.gluster.org/15296 committed in master by Jeff Darcy (jdarcy) 
------
commit 975c5572a8300c81e127c27e677974f49e96bd5d
Author: Ryan Ding <ryan.ding>
Date:   Wed Aug 24 00:08:12 2016 +0800

    features/read-only: reten_mode is invalid to be free by mem_put()
    
    priv->reten_mode is initialised by option 'retention-mode'. and it
    reference the memory in this->options. so fini() use mem_put to free
    priv->reten_mode will cause a problem.
    there is no need to call mem_put(), so just remove it will be fine.
    
    Change-Id: Iee6f9d1d54df38cba8c9b9100e2824f4f2b18ab4
    BUG: 1369523
    Signed-off-by: Ryan Ding <ryan.ding>
    Reviewed-on: http://review.gluster.org/15296
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>
    CentOS-regression: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 3 Shyamsundar 2017-03-06 17:23:44 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.10.0, please open a new bug report.

glusterfs-3.10.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/


Note You need to log in before you can comment on or make changes to this bug.