Skip to contentSkip to conversation

proc.5: add "wf" to VmFlags in /proc/[pid]/smaps

PATCH In review Ian Rogers 3 participants 6 messages May 21, 2020 – May 25, 2020

Subsystems (3)
lore
Share & tools
lore

Ian Rogers

author
#0 lore raw

PATCH 1/1 proc.5: add "wf" to VmFlags in /proc/[pid]/smaps

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
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 <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

---
 man5/proc.5 | 1 +
 1 file changed, 1 insertion(+)
man5/proc.5 +1 -0
index 46d603f28..3e5b91af0 100644
@@ -2020,6 +2020,7 @@ encoded using the following two-letter codes:
     ht  - area uses huge tlb pages
     nl  - non-linear mapping
     ar  - architecture specific flag
+    wf  - wipe on fork
     dd  - do not include area into core dump
     sd  - soft-dirty flag
     mm  - mixed map area
Signature · 1 line
2.27.0.rc0.183.gde8f92d652-goog
author
#1 lore raw
Quoted 11 lines · Ian Rogers

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
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:

Quoted 7 lines

commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927

Author: Rik van Riel <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

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

Thanks,
Ian

Quoted 19 lines
---
 man5/proc.5 | 1 +
 1 file changed, 1 insertion(+)
man5/proc.5 +1 -1
index 46d603f28..3e5b91af0 100644
@@ -2020,6 +2020,7 @@ encoded using the following two-letter codes:
     ht  - area uses huge tlb pages
     nl  - non-linear mapping
     ar  - architecture specific flag
+    wf  - wipe on fork
     dd  - do not include area into core dump
     sd  - soft-dirty flag
     mm  - mixed map area
--

2.27.0.rc0.183.gde8f92d652-goog

#2 lore raw
Quoted 18 lines · Ian Rogers
Quoted 17 lines · Ian Rogers

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
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 <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

Quoted 7 lines
Quoted 1 line

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

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#3 lore raw
Quoted 27 lines · Michael Kerrisk (man-pages)
Quoted 18 lines · Ian Rogers
Quoted 17 lines · Ian Rogers

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
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 <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

Quoted 7 lines
Quoted 1 line

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

Quoted 4 lines

I took a shot at fixing these:

mp - MPX-specific VMA (x86, since Linux 3.19)

This one is gone. The patch to remove leftovers of MPX is linux-next.

Signature · 1 line
 Kirill A. Shutemov
#4 lore raw
Quoted 29 lines · Kirill A. Shutemov
Quoted 27 lines · Michael Kerrisk (man-pages)
Quoted 25 lines · Ian Rogers
Quoted 11 lines · Ian Rogers

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
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:

Quoted 7 lines

commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927

Author: Rik van Riel <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

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

Quoted 6 lines
Quoted 4 lines

I took a shot at fixing these:

mp - MPX-specific VMA (x86, since Linux 3.19)

This one is gone. The patch to remove leftovers of MPX is linux-next.

Thanks, Kirill. I'll simply remove that entry.

Cheers,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#5 lore raw
In reply to Ian Rogers

Hello Ian,

Quoted 8 lines · Ian Rogers

This patch documents a flag added in the following kernel commit:

commit d2cd9ede6e193dd7d88b6d27399e96229a551b19

Author: Rik van Riel <[email protected]>
Date:   Wed Sep 6 16:25:15 2017 -0700

mm,fork: introduce MADV_WIPEONFORK

Quoted 7 lines

This was already documented in man2/madvise.2 in the commit:

commit c0c4f6c29c494c466f3a2a6273c5b55b76a72927

Author: Rik van Riel <[email protected]>
Date:   Tue Sep 19 20:32:00 2017 +0200

madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK

Thanks. Patch applied.

Cheers,

Michael

Quoted 18 lines
---
 man5/proc.5 | 1 +
 1 file changed, 1 insertion(+)
man5/proc.5 +1 -0
index 46d603f28..3e5b91af0 100644
@@ -2020,6 +2020,7 @@ encoded using the following two-letter codes:
     ht  - area uses huge tlb pages
     nl  - non-linear mapping
     ar  - architecture specific flag
+    wf  - wipe on fork
     dd  - do not include area into core dump
     sd  - soft-dirty flag
     mm  - mixed map area
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/