From: Andreas Schwab Subject: Re: [PATCH v9 00/24] ILP32 for ARM64 Date: Mon, 13 May 2019 10:48:48 +0200 Message-ID: References: <20180516081910.10067-1-ynorov@caviumnetworks.com> <20190508225900.GA14091@yury-thinkpad> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20190508225900.GA14091@yury-thinkpad> (Yury Norov's message of "Wed, 8 May 2019 15:59:00 -0700") Sender: linux-kernel-owner@vger.kernel.org To: Yury Norov Cc: Yury Norov , Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Adam Borowski , Alexander Graf , Alexey Klimov , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James List-Id: linux-api@vger.kernel.org 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. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."