Bug 1169517
| Summary: | link(2) corrupts meta-data of encrypted files | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Edward Shishkin <edward> |
| Component: | encryption-xlator | Assignee: | bugs <bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6.1 | CC: | bugs, rabhat, rwheeler |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Other | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-v3.6.2 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1157839 | Environment: | |
| Last Closed: | 2016-02-04 15:08:20 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: | 1157839 | ||
| Bug Blocks: | |||
|
Description
Edward Shishkin
2014-12-01 21:53:55 UTC
REVIEW: http://review.gluster.org/9225 (Prevent metadata corruption in the race conditions between FOP->open() and FOP->link().) posted (#2) for review on release-3.6 by Edward Shishkin (edward) COMMIT: http://review.gluster.org/9225 committed in release-3.6 by Raghavendra Bhat (raghavendra) ------ commit b7d71e6541bc9c4a33cc5b46e93524ca1990c0bf Author: Edward Shishkin <edward> Date: Mon Dec 1 22:15:02 2014 +0100 Prevent metadata corruption in the race conditions between FOP->open() and FOP->link(). Backport of http://review.gluster.org/8982 Problem: crypt_open() modifies @local->format, which is used by crypt_link() to store the updated metadata string on disk. This results in metadata corruption. Fixup: Don't modify @local->format by FOP->open(). Instead modify a local copy, allocated in the low-level meta-data handler open_format_v1(). Change-Id: Ife5bcb87de6db6d7ba5b65743adce86b2e3da890 BUG: 1169517 Signed-off-by: Edward Shishkin <edward> Reviewed-on: http://review.gluster.org/9225 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Emmanuel Dreyfus <manu> Reviewed-by: Raghavendra Bhat <raghavendra> Tested-by: Raghavendra Bhat <raghavendra> 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-v3.6.2, please open a new bug report. glusterfs-v3.6.2 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://blog.gluster.org/2015/01/glusterfs-3-6-2-ga-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |