Re: Stack size protection broken on ppc64

2010-02-07 Thread Anton Blanchard
Hi, > Cool, thanks. The following is based on this and fixes the problem for > me on PPC64 ie. the !CONFIG_STACK_GROWSUP case. Thanks! Seeing the original setting of EXTRA_STACK_VM_PAGES is more or less random, I wonder if we should round EXTRA_STACK_VM_SIZE up to 128kB (or even down to 64kB)

Re: Stack size protection broken on ppc64

2010-02-06 Thread Michael Neuling
> > On recent ppc64 kernels, limiting the stack (using 'ulimit -s blah') is > > now more restrictive than it was before. On 2.6.31 with 4k pages I > > could run 'ulimit -s 16; /usr/bin/test' without a problem. Now with > > mainline, even 'ulimit -s 64; /usr/bin/test' gets killed. > > > > Using 6

Re: Stack size protection broken on ppc64

2010-02-05 Thread Anton Blanchard
Hi, > On recent ppc64 kernels, limiting the stack (using 'ulimit -s blah') is > now more restrictive than it was before. On 2.6.31 with 4k pages I > could run 'ulimit -s 16; /usr/bin/test' without a problem. Now with > mainline, even 'ulimit -s 64; /usr/bin/test' gets killed. > > Using 64k pag

Stack size protection broken on ppc64

2010-02-05 Thread Michael Neuling
On recent ppc64 kernels, limiting the stack (using 'ulimit -s blah') is now more restrictive than it was before. On 2.6.31 with 4k pages I could run 'ulimit -s 16; /usr/bin/test' without a problem. Now with mainline, even 'ulimit -s 64; /usr/bin/test' gets killed. Using 64k pages is even worse.