[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4B7437EF.2050001@xenotime.net>
Date: Thu, 11 Feb 2010 09:01:35 -0800
From: Randy Dunlap <rdunlap@...otime.net>
To: Dan Carpenter <error27@...il.com>, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: bug list: putting too much data on the stack
On 02/11/10 00:51, Dan Carpenter wrote:
> This is a list of functions that put a lot of data (500 bytes) on the stack.
> I don't know if 500 is reasonable, but I've seen people complaining about
> smaller amounts.
>
> The list was generated by:
> make C=1 CHECK="/path/to/smatch -p=kernel" modules bzImage | tee warns.txt
> grep "bytes on stack" warns.txt
>
> regards,
> dan carpenter
>
> Previous bug lists:
> * Assigning negative values to unsigned variables
> http://lkml.indiana.edu/hypermail/linux/kernel/1001.3/01222.html
>
> * Doing dma on the stack
> http://lkml.indiana.edu/hypermail/linux/kernel/1001.3/01231.html
>
> * Dereferencing variables before verifying they are not null
> http://lkml.indiana.edu/hypermail/linux/kernel/1001.3/01980.html
>
...
> drivers/media/dvb/frontends/dib3000mc.c +816 dib3000mc_i2c_enumeration(2) warn: 'st' puts 1416 bytes on stack
> drivers/media/dvb/frontends/dib7000p.c +1326 dib7000p_i2c_enumeration(2) warn: 'st' puts 1468 bytes on stack
I posted patches for these a few days ago. Andrew put them into mmotm.
linux-media hasn't responded to them yet.
http://patchwork.kernel.org/patch/77892/
http://patchwork.kernel.org/patch/77891/
--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists