[Bugs] [Bug 1169517] link(2) corrupts meta-data of encrypted files

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 10 06:25:51 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1169517



--- Comment #2 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9225 committed in release-3.6 by Raghavendra
Bhat (raghavendra at redhat.com) 
------
commit b7d71e6541bc9c4a33cc5b46e93524ca1990c0bf
Author: Edward Shishkin <edward at redhat.com>
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 at redhat.com>
    Reviewed-on: http://review.gluster.org/9225
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Emmanuel Dreyfus <manu at netbsd.org>
    Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>
    Tested-by: Raghavendra Bhat <raghavendra at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list