Bug 1479656
| Summary: | Permission denied errors when appending files after readdir | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Poornima G <pgurusid> |
| Component: | libgfapi | Assignee: | bugs <bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | bugs <bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.11 | CC: | amukherj, anoopcs, bugs, ksandha, rhinduja, rhs-smb |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.11.3 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1479655 | Environment: | |
| Last Closed: | 2017-08-24 14:46:21 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: | 1457713, 1477488, 1479655 | ||
| Bug Blocks: | |||
|
Description
Poornima G
2017-08-09 04:48:15 UTC
REVIEW: https://review.gluster.org/18002 (gfapi: Duplicate the buffer sent in setxattr calls) posted (#1) for review on release-3.11 by Poornima G (pgurusid) COMMIT: https://review.gluster.org/18002 committed in release-3.11 by Shyamsundar Ranganathan (srangana) ------ commit 3fe535afa61fa06c066e511c3c6e269902924296 Author: Poornima G <pgurusid> Date: Thu Aug 3 17:43:22 2017 +0530 gfapi: Duplicate the buffer sent in setxattr calls Issue: The caller of glfs_setxattr sends a buffer to set as the value. We create a dict in which the pointer to the value is set. Underlying layers like md-cache take a ref on this dict to store the value for a longer time. But the moment setxattr is complete, the caller of glfs_setxattr can free the value memory. Solution: memcpy the setxattr value to the gluster buffer. > Reviewed-on: https://review.gluster.org/17967 > Reviewed-by: soumya k <skoduri> > Smoke: Gluster Build System <jenkins.org> > CentOS-regression: Gluster Build System <jenkins.org> > Reviewed-by: Jeff Darcy <jeff.us> > (cherry picked from commit e11296f8e52b7e3b13d21b41d4fa34baea878edf) Change-Id: I58753fe702e8b7d0f6c4f058714c65d0ad5d7a0a BUG: 1479656 Signed-off-by: Poornima G <pgurusid> Reviewed-on: https://review.gluster.org/18002 Smoke: Gluster Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Shyamsundar Ranganathan <srangana> 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.11.3, please open a new bug report. glusterfs-3.11.3 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-August/000081.html [2] https://www.gluster.org/pipermail/gluster-users/ |