diff options
| author | Sanoj Unnikrishnan <sunnikri@redhat.com> | 2016-12-18 17:29:47 +0530 |
|---|---|---|
| committer | Atin Mukherjee <amukherj@redhat.com> | 2016-12-21 22:42:30 -0800 |
| commit | 253c43596b9dcf57832a0369b6c4dc01598bd442 (patch) | |
| tree | 254322cbe19e4f7e25f36fbb3d4c30fc3fb6a22e /xlators/storage/posix/src/posix-messages.h | |
| parent | 97bfea234b1c097e7217181e7e6285fbd553d003 (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.h | 10 |
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 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" |
