Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp288297ybi; Tue, 18 Jun 2019 22:55:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1an/EJQAfN9im3wFR/iCu4o7m3XTbCSGFJLvTKiW8oeV5td7JrzmT6/7Hjb8c10w6kZFo X-Received: by 2002:a62:a509:: with SMTP id v9mr122754636pfm.82.1560923700210; Tue, 18 Jun 2019 22:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560923700; cv=none; d=google.com; s=arc-20160816; b=D8N86kapHQf3Q3tj0vDfya1SqTBMvTFyFpKxnamhB8YD/AShSCfyF7eIUF/11kdhuY WGi/ToqlxM97dRPTx1W7XhWqb0Qu09QwsauKDf7LnylvMUrujwOlVj+mcO42EMI01P7d JHdTAlNHk0CF7vK8UCNBucIwsig1/jtIuB0bk/Qx8R/ZVcA5+JaKWLIeLYmvXE7jeGmo PVm3uIkY1hqrR0LJ1vL6Ds/lP1HbPw1UlKceLTTb6LAu4hVs0hpGJRpoMupaAPmW3jYt szTGJ0d+64MBzQrQPIzokFneIZQk6FbmWCyeDQX+PXT2Cch989cj+3vXA8JgFuj25vsT oMVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:references:subject:cc:to :from; bh=3G3390t9ua8g8EG4NGiM6gw8EdNRT+c1H9JhEFzdToc=; b=RztqNiwdnMR8qUlkYxiA0co5BNh1fcDMnHa10DVaEaAEsaGhTAN93LN+EMuLAowOkH GTqyx1FusedZJ77d0LFKHfqP5nFWVPKw/il94z01s00+LjGuFeob2tbppkRMq6xAXMJW Vv+2Uf+GCvyW0ofW94P1wdML63zpyshE3JgDpNDHcGFjNi0huuMG7Tiuu3H+SBKYUgAi QRz/GaM1aCGK0H+8xrfDotc2wN3HbPhutrIpn1reA4go1wFyYlMeY0VhfaotCmb39eED /Q2NuARY3n4IUK9P4aPrN0itJ4PuNg7OlVBwfMaiiMZ5ry+ZuCrEGaXD+n1VF6YOYLlg GUtQ== 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 x1si2007479pgr.561.2019.06.18.22.54.44; Tue, 18 Jun 2019 22:55:00 -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 S1730782AbfFSFyh (ORCPT + 99 others); Wed, 19 Jun 2019 01:54:37 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39059 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfFSFyh (ORCPT ); Wed, 19 Jun 2019 01:54:37 -0400 X-Originating-IP: 79.86.19.127 Received: from [192.168.0.12] (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E2F4DE000E; Wed, 19 Jun 2019 05:54:21 +0000 (UTC) From: Alex Ghiti To: Alexandre Ghiti Cc: "James E . J . Bottomley" , Helge Deller , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-mm@kvack.org, Andrew Morton Subject: Re: [PATCH RESEND 1/8] s390: Start fallback of top-down mmap at mm->mmap_base References: <20190619054224.5983-1-alex@ghiti.fr> <20190619054224.5983-2-alex@ghiti.fr> Message-ID: <4fcd8c83-dc33-12ab-3ba2-85a8d851674d@ghiti.fr> Date: Wed, 19 Jun 2019 01:54:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190619054224.5983-2-alex@ghiti.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Really sorry about that, my connection is weird this morning, I'll retry tomorrow. Sorry again, Alex On 6/19/19 1:42 AM, Alexandre Ghiti wrote: > In case of mmap failure in top-down mode, there is no need to go through > the whole address space again for the bottom-up fallback: the goal of this > fallback is to find, as a last resort, space between the top-down mmap base > and the stack, which is the only place not covered by the top-down mmap. > > Signed-off-by: Alexandre Ghiti > --- > arch/s390/mm/mmap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c > index cbc718ba6d78..4a222969843b 100644 > --- a/arch/s390/mm/mmap.c > +++ b/arch/s390/mm/mmap.c > @@ -166,7 +166,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, > if (addr & ~PAGE_MASK) { > VM_BUG_ON(addr != -ENOMEM); > info.flags = 0; > - info.low_limit = TASK_UNMAPPED_BASE; > + info.low_limit = mm->mmap_base; > info.high_limit = TASK_SIZE; > addr = vm_unmapped_area(&info); > if (addr & ~PAGE_MASK)