From 253c43596b9dcf57832a0369b6c4dc01598bd442 Mon Sep 17 00:00:00 2001 From: Sanoj Unnikrishnan Date: Sun, 18 Dec 2016 17:29:47 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/16192 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Raghavendra G CentOS-regression: Gluster Build System --- xlators/storage/posix/src/posix-messages.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xlators/storage/posix/src/posix-messages.h') diff --git a/xlators/storage/posix/src/posix-messages.h b/xlators/storage/posix/src/posix-messages.h index ba6bf2c43ac..ee06d6f7d85 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" -- cgit