summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-messages.h
diff options
context:
space:
mode:
authorSanoj Unnikrishnan <sunnikri@redhat.com>2016-12-18 17:29:47 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-12-21 22:42:30 -0800
commit253c43596b9dcf57832a0369b6c4dc01598bd442 (patch)
tree254322cbe19e4f7e25f36fbb3d4c30fc3fb6a22e /xlators/storage/posix/src/posix-messages.h
parent97bfea234b1c097e7217181e7e6285fbd553d003 (diff)
Fixes GlusterFS process crashes on deep directory hierarchy
alloca() calls to recusive function posix_make_ancestryfromgfid consumes the entire stack leading to segfault. Changed the function to iterative and reused the same linkname buffer across iterations. Change-Id: If065c8b9f7f85219bdd2d23259a115fe66f5f60d BUG: 1405775 Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com> Reviewed-on: http://review.gluster.org/16192 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/storage/posix/src/posix-messages.h')
-rw-r--r--xlators/storage/posix/src/posix-messages.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-messages.h b/xlators/storage/posix/src/posix-messages.h
index ba6bf2c..ee06d6f 100644
--- a/xlators/storage/posix/src/posix-messages.h
+++ b/xlators/storage/posix/src/posix-messages.h
@@ -945,6 +945,16 @@
*
*/
+#define P_MSG_ANCESTORY_FAILED (POSIX_COMP_BASE + 111)
+
+/*!
+ * @messageid
+ * @diagnosis
+ * @recommendedaction
+ *
+ */
+
+
/*------------*/
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"