From patchwork Tue Nov 5 04:16:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Henrie X-Patchwork-Id: 13862326 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 71318D1CA19 for ; Tue, 5 Nov 2024 04:15:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65CC16B009A; Mon, 4 Nov 2024 23:15:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 60C686B009B; Mon, 4 Nov 2024 23:15:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4FB396B009C; Mon, 4 Nov 2024 23:15:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 3263A6B009A for ; Mon, 4 Nov 2024 23:15:56 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C83F2140EEC for ; Tue, 5 Nov 2024 04:15:55 +0000 (UTC) X-FDA: 82750727346.12.6E927AD Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by imf21.hostedemail.com (Postfix) with ESMTP id 12B521C0010 for ; Tue, 5 Nov 2024 04:14:51 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HZZUxBUd; spf=pass (imf21.hostedemail.com: domain of alexhenrie24@gmail.com designates 209.85.210.181 as permitted sender) smtp.mailfrom=alexhenrie24@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730779970; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=3dXrie9pAgF/67LUqkShxHOo2fW/FOirjsfxHgd46Gg=; b=cgz1pD9Z+jYMZ2d5AG1ye+u++3KL+iW6FFwTJJ7teTMjVaHkch5VO5DMypd7+CA9JMUqjG etTZ89GC6ENKIM0H1fZ2babIDW3kufn0vCcGKK7d7+9MecaPvupZrec9cjSulvY2t1ajHR lwWo3KJO7ao0KDd4nwjs+N0X0IxhJ8U= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HZZUxBUd; spf=pass (imf21.hostedemail.com: domain of alexhenrie24@gmail.com designates 209.85.210.181 as permitted sender) smtp.mailfrom=alexhenrie24@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730779970; a=rsa-sha256; cv=none; b=TfigeSGV3HgzFC+s9avYVbPiXdYxjiY2Rd/t0tMELNNLGQ5U2teh7VvmMtT7ca2SdRSzLZ v8ZeFdSowSbDEENdz0lK+2S0sUAiwvX8QCe7FtKekqYmtBljFe1RxRDia2qvksj8sP0DVX B9G/k9fLMHXEJ0yecctIfLt6gl1GEBE= Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e953f4e7cso3966891b3a.3 for ; Mon, 04 Nov 2024 20:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730780153; x=1731384953; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3dXrie9pAgF/67LUqkShxHOo2fW/FOirjsfxHgd46Gg=; b=HZZUxBUduQPV53G7G/YFIyjzphO/mpuU4xFgy8X0EMoQrngjHSp07VJJ5bWScMSncE sPRUH819tyfp8lZeGu7Yx1aL04WuMxtZFCddHQT39As5bUr2EOJWEMCEh9jvBur1ETXf /XOWxM5d+vrxyHEwP9lURWSgKwAKfAMJNtMWauPgVomyNg9o8cpESXfcS9jaPzy1V8Vi NGirOu9zHNbTnXlTL4qwXdKQ7FhlX23d1pmhGtm6bIRpyVQcpNIpgTLzVRQwpGTvcryd zDrbEejVl1CT5Umt7hL8fnDdd7X2/EOv0Gm/p66bT9JoYMBd9RF4hsAbKZTwDjqwtT2N PGcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730780153; x=1731384953; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3dXrie9pAgF/67LUqkShxHOo2fW/FOirjsfxHgd46Gg=; b=ra40Xs4RRlEA8jSdlXDUqoWT1C0so1kW+95/Oah+wDLvkqPUDxg3JfYEnKBc8wbeax KrLxGZQkb7ovt7RLJVRwYKYolQpC9rTokH9ItWESX5Cd9N6ofRLxlpHNwKpWWJik9fKB sDlns0z3+xXS5JeEOWAmN93epfbDA8Dy+ZFHGVe1m2FuXtrg8rwiPzhuGYVwgxHfQG2L taLqRjFT4jNlBpTyQmPAqCOuVprXD4ip7S2U8ofe8HDH9y6XhOntU02hS4BkxbI4UXf2 XBFNUai2zcAU5OGN7gjf1V3tdbnMlu3D20ry5/lK7KcPPq0rFdw4z0GjXtUZHSHBtBYT pdCA== X-Forwarded-Encrypted: i=1; AJvYcCVKGTLya8O047uprdjtbSDitwOwE4Tfc9UjqTg0H3xNwyvBi3LTaqg7f6XdyY9OOpKOVk7U89HZTg==@kvack.org X-Gm-Message-State: AOJu0YwxzCcSsxRrMaXRQRgouYuxm0At6yGaQT9CwrkSJrtYagxbVpvK IYlRmQaofh6BD7TXjjkfLCVMdtJVhE+/O9fSnJ5Q9/Nw1UU5dJtz X-Google-Smtp-Source: AGHT+IFhuBvKdK4dA0KzOEluG9PnPPZZVODpNnMRmA1tPwSvJxX1W76xguvJQXhAL8Wok5aG4KLERQ== X-Received: by 2002:a05:6a00:3910:b0:71d:fbf3:f769 with SMTP id d2e1a72fcca58-720c99ca5bemr21545992b3a.28.1730780152612; Mon, 04 Nov 2024 20:15:52 -0800 (PST) Received: from panther.lan ([2607:fa18:92fe:92b::47f]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc1b90dasm8478381b3a.30.2024.11.04.20.15.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 20:15:52 -0800 (PST) From: Alex Henrie To: linux-man@vger.kernel.org, bgeffon@google.com, linux-mm@kvack.org Cc: Alex Henrie Subject: [PATCH] mremap.2: Update information about MREMAP_DONTUNMAP restrictions Date: Mon, 4 Nov 2024 21:16:41 -0700 Message-ID: <20241105041700.1386571-1-alexhenrie24@gmail.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 12B521C0010 X-Stat-Signature: mezj4ru9q8camxk69c1fargeasfhc7qg X-Rspam-User: X-HE-Tag: 1730780091-253181 X-HE-Meta: U2FsdGVkX1/eCclYg1zE7BK2X9C9bNUqbPn4/INF+xfOfYKZFChQ2mbgFE6+9lnsrXAH5SFc9ssbFRwM41TLFHKS679/PlbVu1pXDV8KTEtBoU2Ep7L7oe7YK7C2C9O719vDNo9TOfVZ+JN/GEMUUSSnS0U4qwrxvViJYi3gJjjNhfSQ5NDZX1kGal15yBAaeWKE0ZDZrveliMS7o8RW/am5wA2hY6aVmczId92tDqgGotyTPkTEJPYIxRfjBekWzPz4ruucsJKDvn/+HTSWQ6t3aI7Gwn+hFbQURXj5yOg+tdL9ry3smZ9Ushmf/sxpHq9hIRilBTKj+GoNOiWs5tvCvtyRskJzEoXWOlyX/oj6TXiDef8kytdxiz7+2li14mylJkWKbb3gb83z7Tz/ybOpYc4VGefdmNw0vGYKyiH7CBZDLKdXmcQ2uAVq69NoNqkmhOD2evRfnsConf1V0l3TOPKorJGHRsRgoPKIqa58tPRWAwM9qFjQvebG7qJR9AWzz5UP9RYmWKfHD6dUOb0fyEKfSGhF69HChI8HSNWkGrZrQ1LyI70+4BzFsroGtsJKWyQ/cHcRck/Ae4OiLZnMUmrV9r/vSQJRUcusEKvg245ngZ1CdVyEoIMQCfgAgCGrTnuVWldtvZzzCZtF7qLAWDL8OgYsOxyxaADHSY3RItth1xaoRFtwNWKiOWIOBIeyVdUYePm1MPN1AeTrPPxakUI1NjGft1qdt0IbhmjB+DY46vTmJxbIor/Yt/GBI6ALSHWPeYnaest3LT8VIdfqwOerscffNY+xJSL/Pz+I1zIVPVXR8RYDrFTS6GRRnEJ7gVwf5wftR6uWKRGPpHDSpkRc4xDvX7ojH7+x+cB+LloRm2qB7DppWWlENCQMs3Bs766jlPoGbkxdxXcXyNR9VpB5l8u7FIZKD6+MEZNCkplTLSxnh66M/UEMwWUuy93Wz15Y1sjCzlcogs6 LnfW0rAD sOJpps14QKp9AbGRqIfk5gzlVZ831skD6loVoIOTneiIb1TyzA8LmBTiOAbEXj/n7aQZPrjUUOEBKx4jKKH+ELLLsIsmRAsJsUxN8t+CXwX0tackLaWp7FfEcMY01WrCZNu6Emm6K74jTWDUjLD0Rz597dX5E46TJGhEpX8qGnlKOZFa1MDjfrwZbDuBOzUxDy270fKdE/r+1rDea0yEYoSKqNf5B9aajCnussuvHvvCzUk+vSH/80fDN66WvAeuRQgunbZpN7nKssixlUFez2bj8ycLUmnf1lWxxeeMHkG7wIVcUpzp7qu6QhC8M/Cgdkn+1v5igr4Vy5W4efjdf8ba2/If8mfjHNXFtvTnaMu5kwLB32srY+bpunqgPEDpMJe7DwSLIScgEyi2ENdHUWbH2jYpzPwFmTLQ58pKiSOB12vU0PWAnn5M10zKkU8Sj9qyzIf+rdAeZjDc= X-Bogosity: Ham, tests=bogofilter, spamicity=0.008345, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: See "mm: extend MREMAP_DONTUNMAP to non-anonymous mappings": https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4609387859f0281951f5e476d9f76d7fb9ab321 Signed-off-by: Alex Henrie --- man/man2/mremap.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man/man2/mremap.2 b/man/man2/mremap.2 index 53e0bcf2d..b99ab9492 100644 --- a/man/man2/mremap.2 +++ b/man/man2/mremap.2 @@ -106,7 +106,13 @@ remaps a mapping to a new address but does not unmap the mapping at .IP The .B MREMAP_DONTUNMAP -flag can be used only with private anonymous mappings +flag can only be used with mappings that are not +.BR VM_DONTEXPAND +or +.BR VM_MIXEDMAP . +Before Linux 5.13, the +.B MREMAP_DONTUNMAP +flag could be used only with private anonymous mappings (see the description of .B MAP_PRIVATE and