[Bugs] [Bug 1285758] Brick crashes because of race in bit-rot init

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 27 04:04:51 UTC 2015


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



--- Comment #1 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/12764 committed in release-3.7 by Venky
Shankar (vshankar at redhat.com) 
------
commit 391e78cbaa727bdd274cf84d1d9683613c8cab6c
Author: Pranith Kumar K <pkarampu at redhat.com>
Date:   Thu Nov 26 09:58:39 2015 +0530

    features/bit-rot: Fix NULL dereference

            Backport of http://review.gluster.org/12754

    Problem:
    By the time br_stub_worker is accessing this->private in it's
    thread, 'init' may not have set 'this->private = priv'. This
    leads to NULL dereference leading to brick crash.

    Fix:
    Set this->private before launching these threads.

    BUG: 1285758
    Change-Id: I8a9234c4f96b0e5ea78f5b336369ec41f5a120ef
    Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>
    Reviewed-on: http://review.gluster.org/12764
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Venky Shankar <vshankar at redhat.com>

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


More information about the Bugs mailing list