netdev
[Top] [All Lists]

Re: Kernel stack overflow on 2.6.9-rc2

To: Andreas Dilger <adilger@xxxxxxxxxxxxx>
Subject: Re: Kernel stack overflow on 2.6.9-rc2
From: Denis Vlasenko <vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 00:42:57 +0300
Cc: linux-kernel@xxxxxxxxxxxxxxx, Trond Myklebust <trond.myklebust@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20040914163347.GE3197@xxxxxxxxxxxxxxxxxxxx>
References: <200409141723.35009.vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20040914163347.GE3197@xxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.5.4
On Tuesday 14 September 2004 19:33, Andreas Dilger wrote:
> On Sep 14, 2004  17:23 +0300, Denis Vlasenko wrote:
> > I am putting to use an ancient box. Pentium 66.
> > It gives me stack overflow errors on 2.6.9-rc2:
> >
> > To save you filtering out functions with less than 100
> > bytes of stack:
> >
> > udp_sendmsg+0x35e/0x61a [220]
> > sock_sendmsg+0x88/0xa3 [208]
> > __nfs_revalidate_inode+0xc7/0x308 [152]
> > nfs_lookup_revalidate+0x257/0x4ed [312]
> > load_elf_binary+0xc4f/0xcc8 [268]
> > load_script+0x1ea/0x220 [136]
> > do_execve+0x153/0x1b9 [336]
>
> do_execve() can be trivially fixed to allocate bprm (328 bytes) instead
> putting it on the stack.  Given the frequency of exec and the odd size
> it should probably be in its own slab (and fix the goofy prototype
> indenting while you're there too ;-).
>
> load_elf_binary() on the other hand is a big mess, 132 bytes of int/long
> variables.

268 bytes according to checkstack.
--
vda


<Prev in Thread] Current Thread [Next in Thread>