stack bloat after stackprotector changes

Tejun Heo tj at kernel.org
Tue Oct 6 00:53:56 CDT 2009


Eric Sandeen wrote:
> It seems that after:
> 
> commit 5d707e9c8ef2a3596ed5c975c6ff05cec890c2b4
> Author: Tejun Heo <tj at kernel.org>
> Date:   Mon Feb 9 22:17:39 2009 +0900
> 
>     stackprotector: update make rules
> 
> xfs stack usage jumped up a fair bit;
> 
> Not a lot in each case but could be significant as it accumulates.
> 
> I'm not familiar w/ the gcc stack protector feature; would this be an
> expected result?

Yeah, it adds a bit of stack usage per each function call and around
arrays which seem like they could overflow, so the behavior is
expected and I can see it can be a problem with function call depth
that deep.  Has it caused actual stack overflow?

Thanks.

-- 
tejun




More information about the xfs mailing list