Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6926654yba; Tue, 14 May 2019 16:45:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+LkgVHSg9gz1NLiRXQw1MZtoSzyiUStd8ssShffpdlx2HntjPAc6Dm6k3iLHAgmYKLXhl X-Received: by 2002:a62:81c1:: with SMTP id t184mr43508207pfd.221.1557877504789; Tue, 14 May 2019 16:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557877504; cv=none; d=google.com; s=arc-20160816; b=MMRMpMIdgknTwpNnAb3a15uYd/7ruRve6Za+4fSFrqYuPHP7+dLyl2iIbnK+viUEmF UmqjBDlnyqghbvsXfuON0rwpPLHVg67/P4EaKzxDDAuzWg4M51E0YaWxh1yLbI6fJZGi tcps1wr2139OkbBDrM4vFc5G61yuEE9dDIufbnA1ZR2amjZ29mzdPrAGvZaxUEXy6IQG KzOGW0vyWjq3O64wHk010fzfU+sHFs+lb8ksLgZMBwHhGL4bnSsmlaHZ6PzoFZatJza+ zaqIhHZL/8A6PVEgSZZBo4wYsdVXmJ64wdclglyLm3f/YkGEYcLt7DQ2f636P03l34QZ hj4Q== 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:dkim-signature; bh=DY6OWxXL6Mkjdnz9bKItmOBCwg7lWspCryDrZpJJELw=; b=T4eP9+ClO2bgU6ICWW60IHzg7kEWpxCuN2d38FTkFMjYxX8ex2ZdYYCLwxdqFksbv5 UlgMN+EP6QyjwjyzqCPTCmlT29a3BcrTwZftyj9qv5uUby3AeDplwnmtotzjc61qXz8J tW42XSqkeT+41yTXisJXeg2NHGhpZMzws+YGbI6Odln/5ZuPpK1Ka250X4xrvWqQ0WXj +K27jDnuVwhljmjo4wCdro13AhoP4oOex6XJDVXTh/2wIWZBluI8ZO/AgO+gRQ/2usLw wzwHn8/NXvsfInw6m23rj4YnVCci4pMOk1Xc7xlHRakWwPWIhUAPgdWkxXZ2Lp9kA2NU hRGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4mfkQzn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u28si368215pfl.138.2019.05.14.16.44.50; Tue, 14 May 2019 16:45:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4mfkQzn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbfENXlx (ORCPT + 99 others); Tue, 14 May 2019 19:41:53 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34680 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbfENXlw (ORCPT ); Tue, 14 May 2019 19:41:52 -0400 Received: by mail-pg1-f193.google.com with SMTP id c13so353950pgt.1; Tue, 14 May 2019 16:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DY6OWxXL6Mkjdnz9bKItmOBCwg7lWspCryDrZpJJELw=; b=X4mfkQznNYHZpXmFQYc7WK7z6OUmo6Sk25Nz/vjKV2dkhuYPBTUE6ya8Uuvkk/gBjh yA9ixJsoOl6ZMN9xYtfiFtg3vHtMFGQ1iOyOf+mqu3wjSEummwRW/BRDCd+QtgiQZPHj pa7E7QrakEnijd59IO6EK+x0NSpSwHa5cORHnMYA76qNEjYcLFOmQ1p30SGuBQR708zp CygDrnfb/RYOSwMJwPiynqo8DLa4PyaW8HtNT/zDcyu4TUn3xmi3AVBPGtHTxz+qem38 Nxe3M+AbbxfJsYvo5uXQMhJnOobYuVgUeifiaAKUUDLjXnmhcvT22u4FH00JEvinEmNk a4zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DY6OWxXL6Mkjdnz9bKItmOBCwg7lWspCryDrZpJJELw=; b=MhFrLICxYeyG1sLxG005khR4XzbPUPvwVaSGdLkhQB2LPSbri+aCSuL2DEAAWDIncm whd+FefsCD6Tv+74PyJ6vg9wwbPGuEzOL8a2/g/6Z8QkTHbC1dOBC/zthloX3/f3sT40 4wDaM+jeawho9E5SSUhwYm6lyAMoYNZVyha2Ix6VQlL/7TMLMcTEtumUkjPylo1MJCn+ 5Z2Eu/ug9TMLNToS0D5r/GZrqV637UihhUL/oTeIhlh1duTbbW4Q7e61f8H9TSzx969t II5nfyi2ZBq40sZ24GfrZs6HDw7XQfLstKB0qD2tU2KYH8YeqhAveUeuwL1UyDZ2UgWu 8CZQ== X-Gm-Message-State: APjAAAXVlRbOpSeBT53jmiW0GQMhHP/Yn8WWB/xupgMlWR40yEx8V6yI 3D1aQBHUu0gVHeZ1lmtt3Go= X-Received: by 2002:a63:4346:: with SMTP id q67mr40722725pga.241.1557877311862; Tue, 14 May 2019 16:41:51 -0700 (PDT) Received: from localhost ([2601:640:5:a19f:19d3:11c4:475e:3daa]) by smtp.gmail.com with ESMTPSA id u123sm290199pfu.67.2019.05.14.16.41.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 16:41:51 -0700 (PDT) Date: Tue, 14 May 2019 16:41:49 -0700 From: Yury Norov To: Cyril Hrubis Cc: Yuri Norov , Andreas Schwab , "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: <20190514234149.GA12077@yury-thinkpad> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> <20190508225900.GA14091@yury-thinkpad> <20190514104311.GA24708@rei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190514104311.GA24708@rei> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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