Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6208112yba; Tue, 14 May 2019 03:44:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBI/I6A5i4A6N59nfgETGYewSVk+wnhY4tkK3IX7Br9hSmNKCC8igGTHx92lXvT4idoRXD X-Received: by 2002:a17:902:bb96:: with SMTP id m22mr36797124pls.5.1557830696809; Tue, 14 May 2019 03:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557830696; cv=none; d=google.com; s=arc-20160816; b=y/ryPREvLn4ZO6wJQPKwgzBs5VS2RQYjUJINwkl2dj7tZ0JN44dOtdQM6ygrPFx8sf 4GtHtT+etiTeQ96nxIIKkAio/c+mHu39nU8gxq4DDSyQPG6u0PMLCywUACeMI9g4C/AG tGcjAkhP/kTieL8vCrw5BxAqetH/uTQLTMe16jdnkl/jjyMksUY7Xu+3TK/fFfBGeyY9 e0iCf4UbE6gUysF/DD3Pzm/TaEfQstyUy4sH8ENa6RhWyqiBek0vQLuOg5l1UCfyznhK QrwbCELyu5UVQeMx23+Hl2d9GMrNqnt2FxlMWMJ68aEhNkT6wAN6mGrupzVDicomm83i TmnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JFudIhh5JAhHJG4LqXnyAY4Pt4hSgb7pfUmmrvWT64o=; b=GlybOKuf9WaGotFOF9o+gLPiK2eHeVbS0BKOtNAedS1y2cd9PWGNxhxROBV1I0Ihdb OzvYO5jv8vcBftB5m2yQapm/3l/QF9l3jOJ0f62amwdUalZBI1MnjxHW5l3ZEGjkP1Rs Sw1QjKtmuP6h6ouVEUf5nnmfm2q6tJ0r/oRc+VO6ULt0JnaH0ORvPGlzzFlH9MWHCzsP t77iCGUWXUtT7qMni5qIc96SC+aUafoR3+DuRFRk6QQg+HvFUh7zrj26A5RCmJZU/ssH q1nu1l9lWu2rNEkpp4AWe4Swr95AyTrmiCrCncodQi3qbq564bBMe9fC18TJ4wpf8nKZ Zv1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si12694237pgb.464.2019.05.14.03.44.42; Tue, 14 May 2019 03:44:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbfENKnQ (ORCPT + 99 others); Tue, 14 May 2019 06:43:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:39300 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725893AbfENKnQ (ORCPT ); Tue, 14 May 2019 06:43:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D4BF7AC3F; Tue, 14 May 2019 10:43:13 +0000 (UTC) Date: Tue, 14 May 2019 12:43:11 +0200 From: Cyril Hrubis 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 , James Hogan , Chris Metcalf , Arnd Bergmann , Andrew Pinski , Lin Yongting , Alexey Klimov , Mark Brown , "linux-arm-kernel@lists.infradead.org" , Maxim Kuvyrkov , Florian Weimer , "linux-api@vger.kernel.org" , Nathan_Lynch , "linux-kernel@vger.kernel.org" , Ramana Radhakrishnan , Martin Schwidefsky , "David S . Miller" , Christoph Muellner Subject: Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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