Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp626633imb; Fri, 1 Mar 2019 09:33:20 -0800 (PST) X-Google-Smtp-Source: APXvYqziZhJfEdRAeOkHoQVlFfR6V8zYgPY7C9FGXgHSxgBZxqCuhHFTu6YBHXGQl1THZS662jTa X-Received: by 2002:a65:5184:: with SMTP id h4mr5917443pgq.32.1551461600792; Fri, 01 Mar 2019 09:33:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551461600; cv=none; d=google.com; s=arc-20160816; b=M2EODy+2UJyZDgoVrGc1shHkkB8KWUXSpkVpDFEyw9mPMTJW8/y2KtqqlQy7eahosF dKiO7AUHaurnIdXcj7syXYIY3i6TNkmBlPnmyGL1mxV6LC2oOwQC/g0vTxwYOhHE+8vH q3618kAWjM2/uEf5fHDQJejuFQ8ZjXqtB94b3EF+r2vx7fBSZYNWpDtH0NLCywaDW4cB QgFBnbYlUMx60wa9O8lpdJpH3cowOb+AEyO6vow7z/vqGNrVitz7E4qnPAfQ36Ct+fl7 9AfiGnUuxqw70X2xC9jnNg7yoM6+azTLA/yVDj3kPcatJtmM0teobFkrPt5BhCRIxKZ6 E48w== 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=3QlOoVntXqw6RwtzidFqQC3ZX8v7YtuxUjndKl+5LYg=; b=iY6PSZE650g1slViqztDa5ielu74fzjDGi3fpKzX/kS8sl07SSCWozzrKG8n4fJq5a unE5Lmvw3LEva4KzAETkY1mTeFlzcsm699JFkoVQDduRwFDRJjfKy+21m9+8BsfyuY4b 8U0Z6U/AuiSEvRwTvWbpT1/dKQUvgP/BHkVHLc62o1X0DsaEShldrv7gv3YG6TH8h+oj k+KStQALMGy9SbasFlWIaCv0H/5hQIl8u6KHu8ReoID0KzK71uiy2pXbnAnb60xu82Zl B4+IkuBnzmGWS5GPl7K8ncWOzrnb9tmQ42NjDnnunSA4BMZGbgWP3I4f9V47cGKhYMIR bq0A== 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 5si11911814plx.421.2019.03.01.09.33.05; Fri, 01 Mar 2019 09:33:20 -0800 (PST) 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 S2388750AbfCAP0T (ORCPT + 99 others); Fri, 1 Mar 2019 10:26:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:43378 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbfCAP0S (ORCPT ); Fri, 1 Mar 2019 10:26:18 -0500 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 22603AB4D; Fri, 1 Mar 2019 15:26:17 +0000 (UTC) Date: Fri, 1 Mar 2019 16:25:48 +0100 From: Cyril Hrubis To: Vlastimil Babka Cc: Oscar Salvador , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, hughd@google.com, kirill@shutemov.name, joel@joelfernandes.org, jglisse@redhat.com, yang.shi@linux.alibaba.com, mgorman@techsingularity.net Subject: Re: [PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure Message-ID: <20190301152547.GA25732@rei> References: <20190226091314.18446-1-osalvador@suse.de> <20190226140428.3e7c8188eda6a54f9da08c43@linux-foundation.org> <20190227213205.5wdjucqdgfqx33tr@d104.suse.de> <5edcfeb8-4f53-0fe6-1e5b-c1e485f91d0d@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5edcfeb8-4f53-0fe6-1e5b-c1e485f91d0d@suse.cz> 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! > Hopefully the only program that would start failing would be a LTP test > testing the current behavior near the limit (if such test exists). And > that can be adjusted. There does not seem to be a mremap() test that would do such a thing, so we should be safe :-). BTW there was a similar fix for mmap() with MAP_FIXED that caused a LTP test to fail and was fixed in: commit e8420a8ece80b3fe810415ecf061d54ca7fab266 Author: Cyril Hrubis Date: Mon Apr 29 15:08:33 2013 -0700 mm/mmap: check for RLIMIT_AS before unmapping And I haven't heard of any breakages so far so I guess that this very similar situation and that the possibility of breaking real world applications here is really low. -- Cyril Hrubis chrubis@suse.cz