From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Subject: Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64 Date: Tue, 14 May 2019 12:43:11 +0200 Message-ID: <20190514104311.GA24708@rei> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> <20190508225900.GA14091@yury-thinkpad> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Yuri Norov Cc: Andreas Schwab , Yury Norov , "ltp@lists.linux.it" , "linux-doc@vger.kernel.org" , Szabolcs Nagy , Catalin Marinas , Heiko Carstens , Philipp Tomsich , Joseph Myers , "linux-arch@vger.kernel.org" , Steve Ellcey , Prasun Kapoor , Alexander Graf , Bamvor Zhangjian , Geert Uytterhoeven , Dave Martin , Adam Borowski , Manuel Montezelo List-Id: linux-api@vger.kernel.org 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. -- Cyril Hrubis chrubis@suse.cz