Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1085057ybs; Mon, 25 May 2020 06:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz4mAyRuCAI6xJevWIoPWM06pgIR7vBYlNLB0ROZwBBt4f7TXBdsD7kOssJ5OY/IUQfwRz X-Received: by 2002:a17:906:e0c5:: with SMTP id gl5mr2907039ejb.524.1590414785244; Mon, 25 May 2020 06:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590414785; cv=none; d=google.com; s=arc-20160816; b=C1Sjo/KdjPW4Qa1s0QYhYj6TL6ZkWbKG7mJ7fk+uGpxOWZTC8P7iQ+BSVgy0tJM6bs TrNu1QiXTQedmiGFfZ662kA2rf5Ypbi5z1X52rofyTYGb3UWHuitZYXqftFcDxklsa7J vRqsQMN7RXUEs5QE79LZzVUCqKeO/HNBgpEuO3oc9VqCJ0niqHwaRLOl1xzZL5NmwGNF lFa/ImYO4wAanfEGK/PI2YxW8vmFN/cVl5c/9qORiQ8JrbDOI5+xAQGbY9NVzZiCS9mA Eo5s5pMZAp9u9aUuIsUfMC8hRaDBZKNVV2GmXA4Vrm8KQG2KuWk1d1apZ8L7mNfA+kOX Nisg== 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:from:references:to:subject:cc:dkim-signature; bh=dpDoqtle89oMVZav++4VvJVMWQAzIvDKYzkUUcdunEw=; b=qWjSElnxKnLCeRqr3YgIMg3DwRMMLTK7h5hWpot8FKbShm32H2Ti1W1VEwr9etW3Xn RXSBiyohqgxxE6Z7azJu8FY9TfxMADb9Dv3+jm0Oh1neN3MCTzswTeVv+lLbLhJ0k0WY mRJq49EDNzWFP0PkDdybWCVjQqri/zh5N9MxBXsVM3vI5ZDq3KIscrCDB7qBPpen7uCO YYBF5UxFnB+zNh73wQy/RwZexdelqKtjBDrs/NlRPIVbCcvxfB4YzMLtqOriklrGCZGx PM6VpItIGBkueUEdRm28FiClWfxH8FuqTBgWOihgwWTDx4KfQaZ8Rg7c3oRvXs7eHDX1 7jdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NW+zm73D; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si10019512edk.226.2020.05.25.06.52.41; Mon, 25 May 2020 06:53:05 -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=@gmail.com header.s=20161025 header.b=NW+zm73D; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403907AbgEYNun (ORCPT + 99 others); Mon, 25 May 2020 09:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403897AbgEYNum (ORCPT ); Mon, 25 May 2020 09:50:42 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA17AC061A0E; Mon, 25 May 2020 06:50:40 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id z5so20583340ejb.3; Mon, 25 May 2020 06:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dpDoqtle89oMVZav++4VvJVMWQAzIvDKYzkUUcdunEw=; b=NW+zm73DRelXLZ5sBomfzu4+PxDqvP8CsG4xbbPCqo24ArxrG3N8Cgq5HV4uyFqPF7 z3R5e8SH65DwmVNtyDIoy1gECoxDjjqVNpXG0KWOK58q5FinvOIrRxDrlmPeSp9k4P5D 1xqL38Cdmz4+D16QhTfC+30JM/UF2wi+c+4ziCJwOPFx6aFmzW1ngeRu5n0dWBF4+KhR mOnbdFiNeC+Km7huoQYt4jy4vjvnxnrEgiNB5Iquio4RsFI4Sy5Db4ev8WGNrlMwYDka MAjbDZlAHcQ/VyE2gr3VqGq5NeoJf/gUx38Cv/6xSwZdV1ZTF7rHe15gJdFQHF6/ybwL SACA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dpDoqtle89oMVZav++4VvJVMWQAzIvDKYzkUUcdunEw=; b=Naf5JpKAJwJeigaR9IJGPclVX/nEPNo5bar1CstjVdmHDk/GhPwg6YeGVgl48Fv3Rr j70+bKZKZwBcyj3OcWFwqn9EKBjczb9CmhAkSTRLmX4lc0jRszdIUsg8QgZawId86rji Wq81q3J2qmaWu+jwX9LnqTKVPeWoPRQ/VQrVjVVv0ZepdDKaCqW+UDlz1lQS4tycdmT6 ExmcbMAX0xKsdtbJKT0YI9dU2Df7P4bvQI54UdiajGNDYmEt0dyyk+TONn07FwnEcfiv ySMPcOkqch1v7i3jmKCFUA7OSL91olHrkYewBKE3BycdfVXTSdwpktBZfUvOxUR1Gz6U R7Kw== X-Gm-Message-State: AOAM5328cFA7/mAcmadLq5WTNUyWldvEfpBbTj4qf67JU/IyUUg4jFi2 SsGD09KNaSYHQJryfRR6M4M= X-Received: by 2002:a17:906:7d90:: with SMTP id v16mr18177637ejo.554.1590414639616; Mon, 25 May 2020 06:50:39 -0700 (PDT) Received: from ?IPv6:2001:a61:2482:101:a081:4793:30bf:f3d5? ([2001:a61:2482:101:a081:4793:30bf:f3d5]) by smtp.gmail.com with ESMTPSA id df21sm15997034edb.27.2020.05.25.06.50.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 May 2020 06:50:39 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, LKML , linux-mm@kvack.org, linux-api@vger.kernel.org, nilal@redhat.com, Florian Weimer , =?UTF-8?Q?Colm_MacC=c3=a1rtaigh?= , Mike Kravetz Subject: Re: [PATCH] proc.5: add "wf" to VmFlags in /proc/[pid]/smaps To: Ian Rogers , Rik van Riel References: <20200521222551.259804-1-irogers@google.com> From: "Michael Kerrisk (man-pages)" Message-ID: <1edcb7ac-bc5f-b9ec-a037-656005ae85e3@gmail.com> Date: Mon, 25 May 2020 15:50:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: 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 5/22/20 1:13 AM, Ian Rogers wrote: > On Thu, May 21, 2020 at 3:25 PM Ian Rogers wrote: >> >> This patch documents a flag added in the following kernel commit: >> >> commit d2cd9ede6e193dd7d88b6d27399e96229a551b19 >> Author: Rik van Riel >> Date: Wed Sep 6 16:25:15 2017 -0700 >> >> mm,fork: introduce MADV_WIPEONFORK >> >> This was already documented in man2/madvise.2 in the commit: >> >> commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927 >> Author: Rik van Riel >> Date: Tue Sep 19 20:32:00 2017 +0200 >> >> madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK >> >> Signed-off-by: Ian Rogers > > Doing a quick audit of fs/proc/task_mmu.c having noticed this flag was > missing I note: > - "mp" isn't documented, only possible with INTEL_MPX > - "nl" is documented but not present in show_smap_vma_flags > - "um" and "uw" aren't documented I took a shot at fixing these: mp - MPX-specific VMA (x86, since Linux 3.19) nl - non-linear mapping (removed in Linux 4.0) um - userfaultfd missing pages tracking (since Linux 4.3) uw - userfaultfd wprotect pages tracking (since Linux 4.3) sf - perform synchronous page faults (since Linux 4.15) Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/