Skip to content

Commit 8614d6c

Browse files
zx2c4akpm00
authored andcommitted
mm: do not show fs mm pc for VM_LOCKONFAULT pages
When VM_LOCKONFAULT was added, /proc/PID/smaps wasn't hooked up to it, so looking at /proc/PID/smaps, it shows '??' instead of something intelligable. This can be reached by userspace by simply calling `mlock2(..., MLOCK_ONFAULT);`. Fix this by adding "lf" to denote VM_LOCKONFAULT. Link: https://lkml.kernel.org/r/[email protected] Fixes: de60f5f ("mm: introduce VM_LOCKONFAULT") Signed-off-by: Jason A. Donenfeld <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Eric B Munson <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 9d789c3 commit 8614d6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/proc/task_mmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma)
674674
[ilog2(VM_RAND_READ)] = "rr",
675675
[ilog2(VM_DONTCOPY)] = "dc",
676676
[ilog2(VM_DONTEXPAND)] = "de",
677+
[ilog2(VM_LOCKONFAULT)] = "lf",
677678
[ilog2(VM_ACCOUNT)] = "ac",
678679
[ilog2(VM_NORESERVE)] = "nr",
679680
[ilog2(VM_HUGETLB)] = "ht",

0 commit comments

Comments
 (0)