Re: How to find out kernel stack over flow?

From: Neil Horman (nhorman_at_tuxdriver.com)
Date: 09/07/05

  • Next message: Mauro Carvalho Chehab: "[PATCH 1/2] V4L: TVaudio cleanup and better degug messages"
    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/
    

  • Next message: Mauro Carvalho Chehab: "[PATCH 1/2] V4L: TVaudio cleanup and better degug messages"

    Relevant Pages

    • Re: unit-at-a-time...
      ... >compiler and I am not aware of any reports of stack overflow ... It happened when I added perfctr to a 2.6.5-based SuSE kernel, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: How to find out kernel stack over flow?
      ... > the kernel may be causing the stack overflow which is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Realtime Preemption, 2.6.12, Beginners Guide?
      ... and clearly a sideaffect of 4KSTACKS.. ... > actually being a stack overflow. ... > I realise 4KSTACKS is a considerable rework of the IRQ handler, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Realtime Preemption, 2.6.12, Beginners Guide?
      ... On Monday 11 Jul 2005 15:16, Ingo Molnar wrote: ... > i cannot see anything wrong in it, but your esp is 0xc04cded0, ... Actually, it's now pretty much confirmed that this ISN'T a stack overflow, not ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: kernel OOPS for XFS in xfs_iget_core (using NFS+SMP+MD)
      ... Couldn't this be a stack overflow? ... That's a very large kernel stack. ... Lee ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)