Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4391944pxf; Tue, 23 Mar 2021 09:28:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkibKwL+fsWYSVCLtp3Rw/PKULT6L0ORwBQdvENmWbmu4tb+vz1ONzojnZvASoUnFlBVAT X-Received: by 2002:a17:907:2054:: with SMTP id pg20mr5732320ejb.213.1616516922797; Tue, 23 Mar 2021 09:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616516922; cv=none; d=google.com; s=arc-20160816; b=qkSNqa+onbuxftLEy1rCoBJ25ubo/sB5sVMdYPMawLPZhl73NIUwid2YIIQ26B/oXr QD99XIOTpnJcbsaZ20+95l1i2a1pzc4CGELUWIB6Wfw4DICYk4RxBIpyJe3lM7YZj3BD fWOFVRiEwhETCtz1rxTZGFgLT0lWTOHsqDHrvSqKheJlK1DdauxkU/MRD59mhzJ73UQO 4yizPSg8BIMxG/na05KXzoiGatq2H5c4QQ4JBxuuf0HAC4fvH/dO19muq5VH2Gwsysfq klCsZB50ar4iwxflXzEP+UZWjnZkkkeBuWupqqbWSMBQAfotArSRtwPjqVmEBmHWJ/Aa lPLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=GETzsYh/IxRuVSA1lft+DzBlJDKD+blYkewKeP0vnL8hqt5l7+5PXz1LP+mXMfClEx JPA94hMHF4o5+G3jmdKPyK2tMzeIiCakDbpMBBdv12lxthWChvrvStAUwKhHgtlwspzv mA23asejHihi4VzHASJH7YSRddKMkgqEUpYcunpV3omirHk5+zhk0c4BlBg6lDrjkdM5 eueWUvhS6/JktZCUlJuisyG7MVj8+89hv8HNP3CEgWCeHLab33n3lrOKxfYbU/XQlYm0 hEqRyNpVTNqZfs8EFYAvP0azjOKArxQl5tHnYurf+uutBm40dS3seZx6YhgJJN0S7jX4 Gz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="BN4R/SJl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si15154393ejd.15.2021.03.23.09.28.20; Tue, 23 Mar 2021 09:28:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="BN4R/SJl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233299AbhCWQ1B (ORCPT + 99 others); Tue, 23 Mar 2021 12:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233169AbhCWQ0Z (ORCPT ); Tue, 23 Mar 2021 12:26:25 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D98FC061574 for ; Tue, 23 Mar 2021 09:26:25 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id e129so3143441yba.3 for ; Tue, 23 Mar 2021 09:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=BN4R/SJlfmcF5MRIrxPoBwW20iiC/MHlTCW0VYed+6puAkNQS0W8hNYSc0z3VZrKU7 SdXClPSNc/C/NYsLV4vTi4vZNc0/AGi6qDvqmUlUHAWNi4uLCVSE5gkZW6mJVHRL99mI ltJGMNh4n8loh4cIEsHnQsKiC39Ni2bg1YeHvygmRR2iWfGS8EZTOCZ0I1Vx0j9d9YYP cZ8DxeGA/D6uP80gCQxVsnPLg8Gp/0X4PGa1LkJArMpKk0FZ8bqNE7gVDZcdP2rFckJK ufL1CAcGTTDMXnnUszwKKTePG8XQ5cGF2FOgn72T31iZNhUwepjLyvL4po2DtVT06tOU u08w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XqDxfe4GGK69zvJtB/kYAUp+QZJt4kx+lv6J7Sr9tRs=; b=qG5ST2SHCFw3oJJ0ke0UF1CdhmejH+qVNAsq9tbp4Piwy5QXzYKCeKcgYzeJKNDkqh waN4xiW7LU9utIRPy/+qy3veDH13pX8ZqhcicSHyZ+9mtS3g2n6GSTwswxUd1jUH6UuH Bya10LGTvid9Vef2rQPySFDBEpGbMYl+54btTfm0aCGCZJ3xYkoMnDihHTsMH0Q19MVe somFifeGgSWYfF53JrFD7W+s6eayPwTzGk5/meP5CM1/zlsEMHFaQeT9iTWIFZ8+6ttM viOmY41OsLpUh3g+hQAdVYeqvRhQs5DR6t29Gndn7V/W+kictrt2JahTJ4308OJsZGq4 rYbw== X-Gm-Message-State: AOAM532fJstPMcRZvku3LbUcpo8xcOaS2unOlm9PpAHVgbxa9ai7U1Tz ATb8DIQrV92NcJZzsz3/I9uVh3X3xdd5 X-Received: from bg.sfo.corp.google.com ([2620:15c:8:10:b5cc:cacb:2875:ae6e]) (user=bgeffon job=sendgmr) by 2002:a25:58c5:: with SMTP id m188mr6582856ybb.286.1616516784790; Tue, 23 Mar 2021 09:26:24 -0700 (PDT) Date: Tue, 23 Mar 2021 09:26:11 -0700 In-Reply-To: <20210323162611.2398613-1-bgeffon@google.com> Message-Id: <20210323162611.2398613-4-bgeffon@google.com> Mime-Version: 1.0 References: <20210303175235.3308220-1-bgeffon@google.com> <20210323162611.2398613-1-bgeffon@google.com> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog Subject: [PATCH] mremap.2: MREMAP_DONTUNMAP to reflect to supported mappings From: Brian Geffon To: Andrew Morton Cc: Axel Rasmussen , Lokesh Gidra , Mike Rapoport , Peter Xu , Hugh Dickins , "Michael S . Tsirkin" , Brian Geffon , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andy Lutomirski , Vlastimil Babka , Andrea Arcangeli , Sonny Rao , Minchan Kim , "Kirill A . Shutemov" , Dmitry Safonov , Michael Kerrisk , Alejandro Colomar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.31.0.rc2.261.g7f71774620-goog