Bug 1470489 - bulk removexattr shouldn't allow removal of trusted.gfid/trusted.glusterfs.volume-id
Summary: bulk removexattr shouldn't allow removal of trusted.gfid/trusted.glusterfs.vo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: posix
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 03:57 UTC by Pranith Kumar K
Modified: 2017-09-05 17:36 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.12.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-05 17:36:59 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Pranith Kumar K 2017-07-13 03:57:16 UTC
Description of problem:
    Problem:
    Bulk xattr removal doesn't check if the xattrs that are coming in xdata
    have gfid/volume-id xattrs, so there is potential for bulkremovexattr
    removing gfid/volume-id.
    I also observed that bulkremovexattr is not available for fremovexattr.
    
    Fix:
    Do proper checks in bulk removexattr to remove gfid/volume-id.
    Refactor [f]removexattr to reduce the differences.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2017-07-13 04:13:25 UTC
REVIEW: https://review.gluster.org/17765 (storage/posix: Don't allow gfid/volume-id xattr to be removed) posted (#1) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 2 Worker Ant 2017-07-13 04:16:14 UTC
REVIEW: https://review.gluster.org/17765 (storage/posix: Don't allow gfid/volume-id xattr to be removed) posted (#2) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 3 Worker Ant 2017-07-13 06:14:56 UTC
REVIEW: https://review.gluster.org/17765 (storage/posix: Don't allow gfid/volume-id xattr to be removed) posted (#3) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 4 Worker Ant 2017-07-14 09:30:37 UTC
REVIEW: https://review.gluster.org/17765 (storage/posix: Don't allow gfid/volume-id xattr to be removed) posted (#4) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 5 Worker Ant 2017-07-18 06:48:58 UTC
COMMIT: https://review.gluster.org/17765 committed in master by Pranith Kumar Karampuri (pkarampu) 
------
commit 11eb8ba870457337c6067284dde4277e09764c0a
Author: Pranith Kumar K <pkarampu>
Date:   Wed Jul 12 09:18:02 2017 +0530

    storage/posix: Don't allow gfid/volume-id xattr to be removed
    
    Problem:
    Bulk xattr removal doesn't check if the xattrs that are coming in xdata
    have gfid/volume-id xattrs, so there is potential for bulkremovexattr
    removing gfid/volume-id.
    I also observed that bulkremovexattr is not available for fremovexattr.
    
    Fix:
    Do proper checks in bulk removexattr to remove gfid/volume-id.
    Refactor [f]removexattr to reduce the differences.
    
    BUG: 1470489
    Change-Id: Ia845b31846a149500111c0996646e648f72cdce6
    Signed-off-by: Pranith Kumar K <pkarampu>
    Reviewed-on: https://review.gluster.org/17765
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Jeff Darcy <jeff.us>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Anuradha Talur <atalur>
    Reviewed-by: Niels de Vos <ndevos>
    Reviewed-by: Krutika Dhananjay <kdhananj>

Comment 6 Shyamsundar 2017-09-05 17:36:59 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.12.0, please open a new bug report.

glusterfs-3.12.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/announce/2017-September/000082.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.