From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC0E5C04AB4 for ; Tue, 14 May 2019 23:42:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CA4D2084E for ; Tue, 14 May 2019 23:42:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OV6fSws0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X4mfkQzn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CA4D2084E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Uy2SEXdR7JlUjeDZL3Sijuyu599P0YRf1DmfJqmvYH8=; b=OV6fSws0OsyyTM ZC0YPaKa28/lbjiuVqDMoF4K6TD8811H78eUFnNC1fFkTfyVCPB4j3R2Z10kga4lylILpiGkJKo9v SP4WqSMztSgoP7Yt0EbRgKI3+aqgviJ5uBPlL3e3aeQPsy/OtnLi+5Ayso4E2OSPMT9dHlUZH6jRW SInMwrr/1ByF7EXVEQ4X2/FQ6mKGf98dfeO6rsutJQ90FqkO0rG33toySA6Zfnqiij74zc9T6dBEu tiSjhuEX+GKMQEu1QWJZbtxVzPYS+TIN0lagGiPzaR7HBG0xfb8O2R8vPP1S/NXLfYT9PI80arZtJ JIrs1p9G8wNBGUj7WwuA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQh3X-0004Nl-VL; Tue, 14 May 2019 23:41:59 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQh3T-0004Mn-Tc for linux-arm-kernel@lists.infradead.org; Tue, 14 May 2019 23:41:57 +0000 Received: by mail-pg1-x542.google.com with SMTP id h17so355653pgv.0 for ; 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=Xa3+meeUnvtufVRT+HB21HYhnMGNA1vw4CJxtEQPztYV0dLn+CBq55bdLTpcdosIGo YeQCB/J114YF8Kkm2BPznTYdn/Q/wyxd/+6vUn3/bNMtq5uUdMpTSlXNxcbiJUumiVAi eSsYdTS+5IRXKuRxikBPcvis+df/KbyF0D8AGs4T2a09yXIvr/vlZLamvQ2E+c3Da4tR 1shiclVWKLYXb5CsZyTDZIEufTD07qNhHSWeI+NFCkLDDblBZvHLgf5o0OaLauUggwyf Pq9J7o1OhBrGKpTa3zNU3+dvtnLmp6zTMcdVZkBbe1P03nrkUdsBgEE0gg3gUu/1R7H6 SSPA== X-Gm-Message-State: APjAAAVw0nGwtCyPcNUolx8LrRA4U4EWkZwvQEg8ef6s8nrDSGiC/czL khnpmQ37cMEwBbQnh5zHvl8= X-Google-Smtp-Source: APXvYqwNBpkrVnbSQYAwgohdGmjunNQdCGyoDBa+JV+/+DN57azD9XaTe7h6TpYw5x0TTy4MoQNjgQ== 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 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-Disposition: inline In-Reply-To: <20190514104311.GA24708@rei> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190514_164155_958878_E01CE0DE X-CRM114-Status: GOOD ( 16.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-doc@vger.kernel.org" , Szabolcs Nagy , Catalin Marinas , Heiko Carstens , Philipp Tomsich , Joseph Myers , "linux-arch@vger.kernel.org" , Steve Ellcey , Yuri Norov , Prasun Kapoor , Andreas Schwab , Alexander Graf , Bamvor Zhangjian , "linux-arm-kernel@lists.infradead.org" , Geert Uytterhoeven , Dave Martin , Adam Borowski , Manuel Montezelo , James Hogan , Chris Metcalf , Arnd Bergmann , Andrew Pinski , Lin Yongting , Alexey Klimov , Mark Brown , "ltp@lists.linux.it" , 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel