Bug 1366746

Summary: EINVAL errors while aggregating the directory size by quotad
Product: [Community] GlusterFS Reporter: Manikandan <mselvaga>
Component: quotaAssignee: Manikandan <mselvaga>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.8CC: amukherj, bugs, olim, rabhat, rgowdapp, smohan, storage-qa-internal, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.8.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1332073 Environment:
Last Closed: 2016-09-16 18:27:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1317653, 1332073    
Bug Blocks:    

Comment 1 Worker Ant 2016-08-26 08:11:23 UTC
REVIEW: http://review.gluster.org/15325 (quotad: fix potential buffer overflows) posted (#1) for review on release-3.8 by Manikandan Selvaganesh (mselvaga)

Comment 2 Worker Ant 2016-08-27 11:10:50 UTC
COMMIT: http://review.gluster.org/15325 committed in release-3.8 by Raghavendra G (rgowdapp) 
------
commit 6b406ac42f55233df474fa304dbb9e6fc447bd8f
Author: Raghavendra G <rgowdapp>
Date:   Fri May 6 12:26:29 2016 +0530

    quotad: fix potential buffer overflows
    
    This converts sprintf to gf_asprintf in following components:                                                                                                          * quotad.c
    * dht
    * afr
    * protocol/client
    * rpc/rpc-lib
    * rpc/rpc-transport
    
            This is a backport of http://review.gluster.org/#/c/14102/
    
    > Change-Id: If8a267bab3d91003bdef3a92664077a0136745ee
    > BUG: 1332073
    > Signed-off-by: Raghavendra G <rgowdapp>
    > Reviewed-on: http://review.gluster.org/14102
    > Tested-by: Manikandan Selvaganesh <mselvaga>
    > Smoke: Gluster Build System <jenkins.org>
    > NetBSD-regression: NetBSD Build System <jenkins.org>
    > CentOS-regression: Gluster Build System <jenkins.org>
    > Reviewed-by: Manikandan Selvaganesh <mselvaga>
    
    Change-Id: If8a267bab3d91003bdef3a92664077a0136745ee
    BUG: 1366746
    Signed-off-by: Raghavendra G <rgowdapp>
    Reviewed-on: http://review.gluster.org/15325
    Smoke: Gluster Build System <jenkins.org>
    Tested-by: Manikandan Selvaganesh <mselvaga>
    CentOS-regression: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 3 Niels de Vos 2016-09-12 05:37:38 UTC
All 3.8.x bugs are now reported against version 3.8 (without .x). For more information, see http://www.gluster.org/pipermail/gluster-devel/2016-September/050859.html

Comment 4 Niels de Vos 2016-09-16 18:27: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.8.4, please open a new bug report.

glusterfs-3.8.4 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] https://www.gluster.org/pipermail/announce/2016-September/000060.html
[2] https://www.gluster.org/pipermail/gluster-users/