diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 3ede5ee43a15..d6f37ed840e5 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -718,18 +718,24 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma) [ilog2(VM_UFFD_MINOR)] = "ui", #endif /* CONFIG_HAVE_ARCH_USERFAULTFD_MINOR */ }; + unsigned long pad_pages = vma_pad_pages(vma); size_t i; seq_puts(m, "VmFlags: "); for (i = 0; i < BITS_PER_LONG; i++) { if (!mnemonics[i][0]) continue; + if ((1UL << i) & VM_PAD_MASK) + continue; if (vma->vm_flags & (1UL << i)) { seq_putc(m, mnemonics[i][0]); seq_putc(m, mnemonics[i][1]); seq_putc(m, ' '); } } + if (pad_pages) + seq_printf(m, "pad=%lukB", pad_pages << (PAGE_SHIFT - 10)); + seq_putc(m, '\n'); }