|
|
d1681e |
From 7a2bf65414368999295993cdbbee4060ca495951 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Kotresh HR <khiremat@redhat.com>
|
|
|
d1681e |
Date: Mon, 7 May 2018 06:35:25 -0400
|
|
|
d1681e |
Subject: [PATCH 266/271] glusterd/geo-rep: Fix glusterd crash
|
|
|
d1681e |
|
|
|
d1681e |
Using strdump instead of gf_strdup crashes
|
|
|
d1681e |
during free if mempool is being used.
|
|
|
d1681e |
gf_free checks the magic number in the
|
|
|
d1681e |
header which will not be taken care if
|
|
|
d1681e |
strdup is used.
|
|
|
d1681e |
|
|
|
d1681e |
Uptream reference:
|
|
|
d1681e |
> fixes: bz#1576392
|
|
|
d1681e |
> Change-Id: Iab36496554b838a036af9d863e3f5fd07fd9780e
|
|
|
d1681e |
> Patch: https://review.gluster.org/19993
|
|
|
d1681e |
|
|
|
d1681e |
BUG: 1570586
|
|
|
d1681e |
Change-Id: Iab36496554b838a036af9d863e3f5fd07fd9780e
|
|
|
d1681e |
Signed-off-by: Kotresh HR <khiremat@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/138670
|
|
|
d1681e |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d1681e |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
xlators/mgmt/glusterd/src/glusterd-geo-rep.c | 2 +-
|
|
|
d1681e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
|
|
|
d1681e |
index dff8065..a1251ae 100644
|
|
|
d1681e |
--- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
|
|
|
d1681e |
+++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
|
|
|
d1681e |
@@ -5637,7 +5637,7 @@ glusterd_op_gsync_set (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
|
|
|
d1681e |
GD_MSG_GSYNCD_OP_SET_FAILED, GEOREP" is not "
|
|
|
d1681e |
"set up for %s(master) and %s(slave)",
|
|
|
d1681e |
volname, slave);
|
|
|
d1681e |
- *op_errstr = strdup (GEOREP" is not set up");
|
|
|
d1681e |
+ *op_errstr = gf_strdup (GEOREP" is not set up");
|
|
|
d1681e |
goto out;
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|