Re: How to find out kernel stack over flow?
From: Neil Horman (nhorman_at_tuxdriver.com)
Date: 09/07/05
- Previous message: Bernd Petrovitsch: "Re: kbuild & C++"
- In reply to: Michal Schmidt: "Re: How to find out kernel stack over flow?"
- Next in thread: nazim khan: "Re: How to find out kernel stack over flow?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 7 Sep 2005 07:40:43 -0400 To: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
On Wed, Sep 07, 2005 at 10:18:13AM +0200, Michal Schmidt wrote:
> nazim khan wrote:
> >I suspect that one of my module that I am inserting in
> >the kernel may be causing the stack overflow which is
> >leading to kernel crash (may because it is corrupting
> >some one lese memory).
> >
> >How can I find this out?
>
> You could enable CONFIG_DEBUG_STACKOVERFLOW.
> If you showed us your module's source code, someone might see the bug.
>
> Michal
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Additionally, if you have netconsole/netdump set up, you can examine the
resultant core file with the crash utility to find telltale signs of an
overflow. Nominally a stack overflow results in the corruption of data at the
end of a neighboring task_struct.
Regards
Neil
-- /*************************************************** *Neil Horman *Software Engineer *gpg keyid: 1024D / 0x92A74FA1 - http://pgp.mit.edu ***************************************************/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Bernd Petrovitsch: "Re: kbuild & C++"
- In reply to: Michal Schmidt: "Re: How to find out kernel stack over flow?"
- Next in thread: nazim khan: "Re: How to find out kernel stack over flow?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|