From mboxrd@z Thu Jan 1 00:00:00 1970 From: anupam.kapoor@gmail.com (anupam kapoor) Date: Mon, 28 Jul 2014 09:02:47 +0530 Subject: userspace stack start and end In-Reply-To: (Xin Tong's message of "Sun, 27 Jul 2014 11:52:27 -0500") References: Message-ID: <87bnsanoo0.fsf@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org >>>>> [Sun, 27 Jul 2014 11:52:27 -0500]: "Xin Tong" (xin-tong): ,----[ xin-tong ] | I am trying to find the start and end address of the userspace stack. | I see in the task_struct there is start_stack. But I could not find | end_start anywhere in the kernel code ? | | Can someone please tell me how to find the end of the stack ? `---- but that should be computable right e.g. user:stack-end = user:stack-start + user:stack-segment-size * number-of-pages kind regards anupam