Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3701036ybv; Tue, 25 Feb 2020 05:55:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzFBVEIfxQPwX+yhtLhHggVfnwKwxj2+fhuVOWutUTDAysVylPEfrcjC1CSMv2AIrmTAPRw X-Received: by 2002:a05:6830:154a:: with SMTP id l10mr45350887otp.44.1582638955007; Tue, 25 Feb 2020 05:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582638955; cv=none; d=google.com; s=arc-20160816; b=T29lf9Qlza3Mi460LBJHlKzXot4hPrQ5RsCFdlaZLgTAuy0imQ3d1M4mlooy3160sC jRYFUhrA2Gi0xKFXCTT8kNSGzZdUgJXzjemxctFcNtLWVXHZpkw2cUZZZbDm1JuUzO55 pNcFYmZpXYBEvD8azlAGlXA4mopHDzS9s6Ag+KKB2mv4Iew5WmPwPJvUJ6EsN9dXlymq Eqi9OgoVodT+rWBHqawzMEdzWNZIXiMiFTuTqdomwIFYfcJuNgu8AaBKDB7xBwrQOQbs 7cVjbkO13ktFONvb6Vbh8H34pne+HCQiM/R5tuBfFKreuX7kcFLp+2lySx4e6fGX5EFq L6Ug== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=e67Mv1IpVK8JouScWa5p0H3/Gs24QxOG5KIpckEXqm0=; b=edxok21xnpklsOWIABSt3CWm7RnaY3Mh7CwvH5zYIgKyDB9d0RPy62Z4ORY9YtfjoT GISvi5GyL57fefqn1JZuHo6JIrcIZYz18EEN2xkncscjSkJxwFWtJC91dqfsyjKzeDcF /jDawUkdkga0bPFJRXwgZusGJ98vTZberGOCJX04yz7Xqxw8JsvCL8FXn/Ex1FAIm4g/ /6uUeFYGdH61z07ghb9ho2eyPhD9kGcfea+5sGbaGMxwnmtJXr8wiNhdfLpfmMdYWXn9 zEew/H7lj9kxzDexFEcMCT9J+vUNjo7ssozw0nNU/nlMaYFiZouRKfdFAlE4urLLIgoo qrGw== 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 r10si8683961otn.241.2020.02.25.05.55.43; Tue, 25 Feb 2020 05:55:54 -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 S1730182AbgBYNvh (ORCPT + 99 others); Tue, 25 Feb 2020 08:51:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:48258 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729436AbgBYNvh (ORCPT ); Tue, 25 Feb 2020 08:51:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 06E10AFC3; Tue, 25 Feb 2020 13:51:35 +0000 (UTC) Subject: Re: [PATCH v7] mremap.2: Add information for MREMAP_DONTUNMAP. To: Brian Geffon , Andrew Morton Cc: "Michael S . Tsirkin" , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, Andy Lutomirski , Will Deacon , Andrea Arcangeli , Sonny Rao , Minchan Kim , Joel Fernandes , Yu Zhao , Jesse Barnes , Florian Weimer , "Kirill A . Shutemov" , mtk.manpages@gmail.com, linux-man@vger.kernel.org References: <20200221174248.244748-1-bgeffon@google.com> <20200221174248.244748-3-bgeffon@google.com> From: Vlastimil Babka Autocrypt: addr=vbabka@suse.cz; prefer-encrypt=mutual; keydata= mQINBFZdmxYBEADsw/SiUSjB0dM+vSh95UkgcHjzEVBlby/Fg+g42O7LAEkCYXi/vvq31JTB KxRWDHX0R2tgpFDXHnzZcQywawu8eSq0LxzxFNYMvtB7sV1pxYwej2qx9B75qW2plBs+7+YB 87tMFA+u+L4Z5xAzIimfLD5EKC56kJ1CsXlM8S/LHcmdD9Ctkn3trYDNnat0eoAcfPIP2OZ+ 9oe9IF/R28zmh0ifLXyJQQz5ofdj4bPf8ecEW0rhcqHfTD8k4yK0xxt3xW+6Exqp9n9bydiy tcSAw/TahjW6yrA+6JhSBv1v2tIm+itQc073zjSX8OFL51qQVzRFr7H2UQG33lw2QrvHRXqD Ot7ViKam7v0Ho9wEWiQOOZlHItOOXFphWb2yq3nzrKe45oWoSgkxKb97MVsQ+q2SYjJRBBH4 8qKhphADYxkIP6yut/eaj9ImvRUZZRi0DTc8xfnvHGTjKbJzC2xpFcY0DQbZzuwsIZ8OPJCc LM4S7mT25NE5kUTG/TKQCk922vRdGVMoLA7dIQrgXnRXtyT61sg8PG4wcfOnuWf8577aXP1x 6mzw3/jh3F+oSBHb/GcLC7mvWreJifUL2gEdssGfXhGWBo6zLS3qhgtwjay0Jl+kza1lo+Cv BB2T79D4WGdDuVa4eOrQ02TxqGN7G0Biz5ZLRSFzQSQwLn8fbwARAQABtCBWbGFzdGltaWwg QmFia2EgPHZiYWJrYUBzdXNlLmN6PokCVAQTAQoAPgIbAwULCQgHAwUVCgkICwUWAgMBAAIe AQIXgBYhBKlA1DSZLC6OmRA9UCJPp+fMgqZkBQJcbbyGBQkH8VTqAAoJECJPp+fMgqZkpGoP /1jhVihakxw1d67kFhPgjWrbzaeAYOJu7Oi79D8BL8Vr5dmNPygbpGpJaCHACWp+10KXj9yz fWABs01KMHnZsAIUytVsQv35DMMDzgwVmnoEIRBhisMYOQlH2bBn/dqBjtnhs7zTL4xtqEcF 1hoUFEByMOey7gm79utTk09hQE/Zo2x0Ikk98sSIKBETDCl4mkRVRlxPFl4O/w8dSaE4eczH LrKezaFiZOv6S1MUKVKzHInonrCqCNbXAHIeZa3JcXCYj1wWAjOt9R3NqcWsBGjFbkgoKMGD usiGabetmQjXNlVzyOYdAdrbpVRNVnaL91sB2j8LRD74snKsV0Wzwt90YHxDQ5z3M75YoIdl byTKu3BUuqZxkQ/emEuxZ7aRJ1Zw7cKo/IVqjWaQ1SSBDbZ8FAUPpHJxLdGxPRN8Pfw8blKY 8mvLJKoF6i9T6+EmlyzxqzOFhcc4X5ig5uQoOjTIq6zhLO+nqVZvUDd2Kz9LMOCYb516cwS/ Enpi0TcZ5ZobtLqEaL4rupjcJG418HFQ1qxC95u5FfNki+YTmu6ZLXy+1/9BDsPuZBOKYpUm 3HWSnCS8J5Ny4SSwfYPH/JrtberWTcCP/8BHmoSpS/3oL3RxrZRRVnPHFzQC6L1oKvIuyXYF rkybPXYbmNHN+jTD3X8nRqo+4Qhmu6SHi3Vq Message-ID: Date: Tue, 25 Feb 2020 14:51:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200221174248.244748-3-bgeffon@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/20 6:42 PM, Brian Geffon wrote: > @@ -209,10 +227,20 @@ flag was not specified. > .RE > .TP > .B ENOMEM > +Not enough memory was available to complete the operation. > +Possible causes are: > +.RS > +.IP * 3 > The memory area cannot be expanded at the current virtual address, and the > .B MREMAP_MAYMOVE > flag is not set in \fIflags\fP. > Or, there is not enough (virtual) memory available. > +.IP * > +.B MREMAP_DONTUNMAP > +was used without > +.B MREMAP_FIXED > +causing a new mapping to be created that would exceed the virtual memory available or it would exceed the maximum number of allowed mappings. So this can also result with MREMAP_FIXED, no? > +.RE > .SH CONFORMING TO > This call is Linux-specific, and should not be used in programs > intended to be portable. >