LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2005, 02:39 PM   #1
jeff_fellin
LQ Newbie
 
Registered: Jan 2005
Location: Somerville,nj
Distribution: 2.4.18
Posts: 1

Rep: Reputation: 0
Power PC 405 kernel stack overflow


I am using a Linux 2.4.18 kernel on an IBM power PC 405GP, and have seen two kernel stack overflow's. The message:

Kenels stack overflow in process c08c8000, r1=c08c8870

displays a value of r1 which appears to be obviously outside of the code and stack. Upon reading the code in arch/ppc/kernel/head/traps.c, I notice the debugger (xmon) is not started nor are the registers displayed.

Upon reading the code in arch/ppc/kernel/head_4xx.S, it appears on a stack overflow, at the label stack_ovf, the stack is reinitialized to the top of the stack. The code does basically the same computation done at the label, start_here, that initializes the stack before calling the rest of the system.

Is reinitializing the stack the correct action that should be taken on a stack overflow? Could an alternate stack be used on kernel stack overflow, so diagnostic information can be obtained?

Thank you for your time and consideration with answering these questions?

Jeff Fellin
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 08:40 PM
"Stack Overflow" in Cedega kornerr Linux - General 5 09-09-2005 10:35 PM
kernel stack overflow prital Programming 2 06-29-2005 10:12 AM
Where to find a Kernel/Kernel Patch with support for stack sizes >8K Valhalla Linux - Software 2 05-24-2005 06:39 PM
stack overflow in linux kernel module appas Programming 2 09-20-2004 06:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:00 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
Open Source Consulting | Domain Registration