LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-24-2011, 12:17 AM   #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, 06:40 PM   #2
impert
Member
 
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, 10:40 PM   #3
gary185
Member
 
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, 11: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?
 
  


Reply


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 11:09 AM
Call Stack Memory Management pseudosig Linux - Kernel 6 10-03-2008 01:03 PM
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 08:40 PM
Does the Linux Kernel Stack size fixed? meetsagittarian Programming 1 02-20-2006 01:20 AM
stack overflow in linux kernel module appas Programming 2 09-20-2004 06:12 AM


All times are GMT -5. The time now is 10:55 PM.

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