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

bugzilla at redhat.com bugzilla at redhat.com
Mon Dec 1 05:41:42 UTC 2014


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



--- Comment #12 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/8982 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 45af6c5fc385f2c948bdb387585b3e0a41ccbcde
Author: Edward Shishkin <edward at redhat.com>
Date:   Mon Oct 27 21:35:16 2014 +0100

    Prevent metadata corruption in the race conditions between
    FOP->open() and FOP->link().

    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: I046bb39ddefc33afe59c8d3b1a2fa798298f8499
    BUG: 1157839
    Signed-off-by: Edward Shishkin <edward at redhat.com>
    Reviewed-on: http://review.gluster.org/8982
    Reviewed-by: Emmanuel Dreyfus <manu at netbsd.org>
    Tested-by: Emmanuel Dreyfus <manu at netbsd.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=zH6gX0riPj&a=cc_unsubscribe


More information about the Bugs mailing list