Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-23-2011, 11:17 PM   #1
Mike Edwards
LQ Newbie
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
Linux Kernel Stack Management

Hi I am newbie to linux kernel internals can any one help me in understanding how exactly linux kernel stack management is done
Old 12-24-2011, 05:40 PM   #2
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
Hi, and welcome to the forum.
If you google linux kernel stack management you will get quite a lot of info.
Old 12-24-2011, 09:40 PM   #3
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
this is an interesting question.
As far as i know the kernel makes no attempt to manage the stack and contains no stack management code.
each process is simply given a small static one or two page stack (depending on compile time options).
I think there is an option also to have the interrupt stack static but separate rather than integrated with the main one.
when the stack overflows it simply spills past the thread_info struct which is the last structure.
1 members found this post helpful.
Old 12-25-2011, 10:53 PM   #4
Mike Edwards
LQ Newbie
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi Gary,
Thanks for sharing the info. Here lies my question in your commnet itself. How kernel is identifying there is a stack overflow.I feel whenever a process is created kernel stack will be created but somewhere in kernel itslef it is monitored so that it can identify stack overflow. Can someone explain me how kernel does this monitoring?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture packets from Linux Kernel TCP/IP stack Iyyaaz Linux - Kernel 1 12-23-2010 10:09 AM
Call Stack Memory Management pseudosig Linux - Kernel 6 10-03-2008 12:03 PM
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 07:40 PM
Does the Linux Kernel Stack size fixed? meetsagittarian Programming 1 02-20-2006 12:20 AM
stack overflow in linux kernel module appas Programming 2 09-20-2004 05:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration