Linux-man Archive on lore.kernel.org
 help / color / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Ian Rogers <irogers@google.com>, Rik van Riel <riel@redhat.com>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>,
	linux-mm@kvack.org, linux-api@vger.kernel.org, nilal@redhat.com,
	"Florian Weimer" <fweimer@redhat.com>,
	"Colm MacCártaigh" <colm@allcosts.net>,
	"Mike Kravetz" <mike.kravetz@oracle.com>
Subject: Re: [PATCH] proc.5: add "wf" to VmFlags in /proc/[pid]/smaps
Date: Mon, 25 May 2020 15:50:38 +0200
Message-ID: <1edcb7ac-bc5f-b9ec-a037-656005ae85e3@gmail.com> (raw)
In-Reply-To: <CAP-5=fXjXgWEgp9gqReByrDBTvjDbPEsubeAFxrpxj_+FsFn6w@mail.gmail.com>

On 5/22/20 1:13 AM, Ian Rogers wrote:
> On Thu, May 21, 2020 at 3:25 PM Ian Rogers <irogers@google.com> wrote:
>>
>> This patch documents a flag added in the following kernel commit:
>>
>> commit d2cd9ede6e193dd7d88b6d27399e96229a551b19
>> Author: Rik van Riel <riel@redhat.com>
>> 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 <riel@redhat.com>
>> Date:   Tue Sep 19 20:32:00 2017 +0200
>>
>>     madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK
>>
>> Signed-off-by: Ian Rogers <irogers@google.com>
> 
> 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/

  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21 22:25 Ian Rogers
2020-05-21 23:13 ` Ian Rogers
2020-05-25 13:50   ` Michael Kerrisk (man-pages) [this message]
2020-05-25 14:59     ` Kirill A. Shutemov
2020-05-25 18:50       ` Michael Kerrisk (man-pages)
2020-05-25 13:48 ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1edcb7ac-bc5f-b9ec-a037-656005ae85e3@gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=colm@allcosts.net \
    --cc=fweimer@redhat.com \
    --cc=irogers@google.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mike.kravetz@oracle.com \
    --cc=nilal@redhat.com \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git