From 9c6ea9facbba4d430807bd21fa82892d713b1ecd Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Sat, 26 May 2012 09:48:25 +0530 Subject: Fix stack size and address inconsistency due to executable stack When a stack is marked executable due to loading a DSO that requires an executable stack, the logic tends to leave out a portion of stack after the first frame, thus causing a difference in the value returned by pthread_getattr_np before and after the stack is marked executable. It ought to be possible to fix this by marking the rest of the stack as executable too, but in the interest of marking as less of the stack as executable as possible, the path this fix takes is to make pthread_getattr_np also look at the first frame as the underflow end of the stack and compute size and stack top accordingly. The above happens only for the main process stack. NPTL thread stacks are not affected by this change. --- NEWS | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 6f84697..9583748 100644 --- a/NEWS +++ b/NEWS @@ -16,19 +16,19 @@ Version 2.16 6884, 6890, 6894, 6895, 6907, 6911, 6959, 7064, 9739, 9902, 10110, 10135, 10140, 10153, 10210, 10254, 10346, 10375, 10545, 10716, 10846, 11174, 11322, 11365, 11451, 11494, 11521, 11677, 11837, 11959, 12047, 12097, - 12193, 12297, 12298, 12301, 12340, 12354, 12495, 13058, 13361, 13525, - 13526, 13527, 13528, 13529, 13530, 13531, 13532, 13533, 13547, 13551, - 13552, 13553, 13555, 13556, 13559, 13563, 13566, 13576, 13583, 13592, - 13594, 13613, 13618, 13637, 13656, 13658, 13673, 13691, 13695, 13704, - 13705, 13706, 13726, 13738, 13739, 13750, 13758, 13760, 13761, 13775, - 13786, 13787, 13792, 13806, 13824, 13840, 13841, 13844, 13846, 13851, - 13852, 13854, 13871, 13872, 13873, 13879, 13883, 13884, 13885, 13886, - 13892, 13895, 13908, 13910, 13911, 13912, 13913, 13914, 13915, 13916, - 13917, 13918, 13919, 13920, 13921, 13922, 13923, 13924, 13926, 13927, - 13928, 13938, 13941, 13942, 13954, 13955, 13956, 13963, 13967, 13968, - 13970, 13973, 13979, 13983, 13986, 14012, 14027, 14033, 14034, 14036, - 14040, 14043, 14044, 14049, 14053, 14055, 14059, 14064, 14080, 14083, - 14103, 14104, 14109, 14122, 14123, 14153 + 12193, 12297, 12298, 12301, 12340, 12354, 12416, 12495, 13058, 13361, + 13525, 13526, 13527, 13528, 13529, 13530, 13531, 13532, 13533, 13547, + 13551, 13552, 13553, 13555, 13556, 13559, 13563, 13566, 13576, 13583, + 13592, 13594, 13613, 13618, 13637, 13656, 13658, 13673, 13691, 13695, + 13704, 13705, 13706, 13726, 13738, 13739, 13750, 13758, 13760, 13761, + 13775, 13786, 13787, 13792, 13806, 13824, 13840, 13841, 13844, 13846, + 13851, 13852, 13854, 13871, 13872, 13873, 13879, 13883, 13884, 13885, + 13886, 13892, 13895, 13908, 13910, 13911, 13912, 13913, 13914, 13915, + 13916, 13917, 13918, 13919, 13920, 13921, 13922, 13923, 13924, 13926, + 13927, 13928, 13938, 13941, 13942, 13954, 13955, 13956, 13963, 13967, + 13968, 13970, 13973, 13979, 13983, 13986, 14012, 14027, 14033, 14034, + 14036, 14040, 14043, 14044, 14049, 14053, 14055, 14059, 14064, 14080, + 14083, 14103, 14104, 14109, 14122, 14123, 14153 * ISO C11 support: -- cgit v1.1