[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190514234149.GA12077@yury-thinkpad>
Date: Tue, 14 May 2019 16:41:49 -0700
From: Yury Norov <yury.norov@...il.com>
To: Cyril Hrubis <chrubis@...e.cz>
Cc: Yuri Norov <ynorov@...vell.com>, Andreas Schwab <schwab@...e.de>,
"ltp@...ts.linux.it" <ltp@...ts.linux.it>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
Szabolcs Nagy <szabolcs.nagy@....com>,
Catalin Marinas <catalin.marinas@....com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Philipp Tomsich <philipp.tomsich@...obroma-systems.com>,
Joseph Myers <joseph@...esourcery.com>,
"linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>,
Steve Ellcey <sellcey@...iumnetworks.com>,
Prasun Kapoor <Prasun.Kapoor@...iumnetworks.com>,
Alexander Graf <agraf@...e.de>,
Bamvor Zhangjian <bamv2005@...il.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Dave Martin <Dave.Martin@....com>,
Adam Borowski <kilobyte@...band.pl>,
Manuel Montezelo <manuel.montezelo@...il.com>,
James Hogan <james.hogan@...tec.com>,
Chris Metcalf <cmetcalf@...lanox.com>,
Arnd Bergmann <arnd@...db.de>,
Andrew Pinski <pinskia@...il.com>,
Lin Yongting <linyongting@...wei.com>,
Alexey Klimov <klimov.linux@...il.com>,
Mark Brown <broonie@...nel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Maxim Kuvyrkov <maxim.kuvyrkov@...aro.org>,
Florian Weimer <fweimer@...hat.com>,
"linux-api@...r.kernel.org" <linux-api@...r.kernel.org>,
Nathan_Lynch <Nathan_Lynch@...tor.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Ramana Radhakrishnan <ramana.gcc@...glemail.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
"David S . Miller" <davem@...emloft.net>,
Christoph Muellner <christoph.muellner@...obroma-systems.com>
Subject: Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64
On Tue, May 14, 2019 at 12:43:11PM +0200, Cyril Hrubis wrote:
> Hi!
> > > There is a problem with the stack size accounting during execve when
> > > there is no stack limit:
> > >
> > > $ ulimit -s
> > > 8192
> > > $ ./hello.ilp32
> > > Hello World!
> > > $ ulimit -s unlimited
> > > $ ./hello.ilp32
> > > Segmentation fault
> > > $ strace ./hello.ilp32
> > > execve("./hello.ilp32", ["./hello.ilp32"], 0xfffff10548f0 /* 77 vars */) = -1 ENOMEM (Cannot allocate memory)
> > > +++ killed by SIGSEGV +++
> > > Segmentation fault (core dumped)
> > >
> > > Andreas.
> >
> > Thanks Andreas, I will take a look. Do we have such test in LTP?
>
> We do have a test that we can run a binary with very small stack size
> i.e. 512kB but there does not seem to be anything that would catch this
> specific problem.
>
> Can you please open an issue and describe how to reproduce the problem
> at our github tracker:
>
> https://github.com/linux-test-project/ltp/issues
>
> Then we can create testcase based on that reproducer later on.
This is it:
https://github.com/linux-test-project/ltp/issues/530
Yury
Powered by blists - more mailing lists