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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 222F2C433F5 for ; Tue, 10 May 2022 20:51:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 90BDA8D0001; Tue, 10 May 2022 16:51:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 892CE6B0075; Tue, 10 May 2022 16:51:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E5D78D0001; Tue, 10 May 2022 16:51:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5A17A6B0071 for ; Tue, 10 May 2022 16:51:09 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 31CBB32393 for ; Tue, 10 May 2022 20:51:09 +0000 (UTC) X-FDA: 79451028258.31.FF5D0CB Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by imf18.hostedemail.com (Postfix) with ESMTP id 410321C0093 for ; Tue, 10 May 2022 20:50:58 +0000 (UTC) Received: by mail-ej1-f42.google.com with SMTP id dk23so189162ejb.8 for ; Tue, 10 May 2022 13:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=07qwqsAAhiC9sDvaZsU6xwGVxsO0fmMFnxDhX9hrYBA=; b=bqXRLwxylUn4QAcf4WHpGkbZGtJHF87z6qz1NC+vTFWJmCNkkb/VYX0RWoq8sNRCRs UhgsBkHviAYQ8jy97pu6wSjLK4fAIXU0Pa+u/ICOV+ZwOADrHfqFBTsAUszKFYQqSSUa IkDBuoDAeJuBBk/SUk4xe0ILEpih87FQ4lgDY3YSVBKnVzNRlIaaU3BhtYVVGjkguiOG tQsnZurrmX+urpmpiO6v3O1KIIMqAekjkwO0UvvakeUItH8Y3hbLVW2wXdXmYrVYu8Ir g1xoOLPgsAYc0iDaUx4jXtV/k3BA/pbzaTTkyn/w5yvgNH/Xwbb4NXEKF7I1xri7z1tA fJLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=07qwqsAAhiC9sDvaZsU6xwGVxsO0fmMFnxDhX9hrYBA=; b=GEsXr3H47ljBNO+dosZNUStMv53ZEKuJ7TAGu7bFcYoGlLjwZkLCDJFGB4zTXzM6T/ /Zg23hOoj/DKstQJLpnw923Km4hHmiPanr2G3u4J0QsJmcwTVh1wPps/GBTQLZWoBU8j GwIrD64DyjOVQOPyrZRuPyQP6RL3TGE5Ut5HC4XUgiO90eVUDb6jokx8J647oCfnJgsz prKW5ff5IGmkbugnKLcB2IOjNjqg5RnCzlkKRsYFDn8fY0EsM1i2nXW569IeyS6gzI2j ZThym8IdbFVs3kr7/tzV/nHWH1Ox53hHoC2ItW8r9UD0d4i4YxOMvf44jDo+6OS+cq+9 G0EA== X-Gm-Message-State: AOAM530JseAkq0siyU42aT1733ZECNIIS62mqhKh520zA69419/QJhhp iVJnX1zS+6Is67TTA54Nqr0XPoB3+y36TQjQhV/7/g== X-Google-Smtp-Source: ABdhPJwhL/4CkSXVPA2XHHYCdllLQ6hwa5YKD0kcAt631RefW8hZez9vAB0UXDYjWTwqdd+KwKRFwK9YSASiuofY6Rg= X-Received: by 2002:a17:906:44b:b0:6f8:d325:bb84 with SMTP id e11-20020a170906044b00b006f8d325bb84mr15188978eja.174.1652215866988; Tue, 10 May 2022 13:51:06 -0700 (PDT) MIME-Version: 1.0 References: <20210303175235.3308220-1-bgeffon@google.com> <20210323182520.2712101-1-bgeffon@google.com> <20210323182520.2712101-4-bgeffon@google.com> <9c0b4b2a-3678-186a-072a-280628e5da02@gmail.com> In-Reply-To: From: Brian Geffon Date: Tue, 10 May 2022 16:50:31 -0400 Message-ID: Subject: Re: [PATCH] mremap.2: MREMAP_DONTUNMAP to reflect to supported mappings To: "Alejandro Colomar (man-pages)" Cc: Axel Rasmussen , Lokesh Gidra , Mike Rapoport , Peter Xu , Hugh Dickins , "Michael S . Tsirkin" , LKML , linux-mm , Andy Lutomirski , Vlastimil Babka , Andrea Arcangeli , Sonny Rao , Minchan Kim , "Kirill A . Shutemov" , Dmitry Safonov , Michael Kerrisk , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: 1dxgny9gm8esijqrirr3duuw8djtx1nf X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 410321C0093 X-Rspam-User: Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=bqXRLwxy; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf18.hostedemail.com: domain of bgeffon@google.com designates 209.85.218.42 as permitted sender) smtp.mailfrom=bgeffon@google.com X-HE-Tag: 1652215858-574659 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Mar 26, 2021 at 2:08 PM Brian Geffon wrote: > > Hi Alex, > It has not landed yet, it's currently in Andrew's mm tree. I can reach > out again when it makes it into Linus' tree. > > Brian > > > On Thu, Mar 25, 2021 at 2:34 PM Alejandro Colomar (man-pages) > wrote: > > > > Hello Brian, > > > > Is this already merged in Linux? I guess not, as I've seen a patch of > > yous for the kernel, right? Hi Alex, This change has been in since 5.13 as commit a4609387859f0281951f5e476d9f76d7fb9ab321, I apologize I forgot to update you about the man page change after it landed. Brian > > > > Thanks, > > > > Alex > > > > On 3/23/21 7:25 PM, Brian Geffon wrote: > > > mremap(2) now supports MREMAP_DONTUNMAP with mapping types other > > > than private anonymous. > > > > > > Signed-off-by: Brian Geffon > > > --- > > > man2/mremap.2 | 13 ++----------- > > > 1 file changed, 2 insertions(+), 11 deletions(-) > > > > > > diff --git a/man2/mremap.2 b/man2/mremap.2 > > > index 3ed0c0c0a..72acbc111 100644 > > > --- a/man2/mremap.2 > > > +++ b/man2/mremap.2 > > > @@ -118,16 +118,6 @@ This flag, which must be used in conjunction with > > > remaps a mapping to a new address but does not unmap the mapping at > > > .IR old_address . > > > .IP > > > -The > > > -.B MREMAP_DONTUNMAP > > > -flag can be used only with private anonymous mappings > > > -(see the description of > > > -.BR MAP_PRIVATE > > > -and > > > -.BR MAP_ANONYMOUS > > > -in > > > -.BR mmap (2)). > > > -.IP > > > After completion, > > > any access to the range specified by > > > .IR old_address > > > @@ -227,7 +217,8 @@ was specified, but one or more pages in the range specified by > > > .IR old_address > > > and > > > .IR old_size > > > -were not private anonymous; > > > +were part of a special mapping or the mapping is one that > > > +does not support merging or expanding; > > > .IP * > > > .B MREMAP_DONTUNMAP > > > was specified and > > > > > > > -- > > Alejandro Colomar > > Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ > > http://www.alejandro-colomar.es/