diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index dabc73ab900f..3892c1a23241 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1108,6 +1108,14 @@ static bool always_dump_vma(struct vm_area_struct *vma) | |||
1108 | /* Any vsyscall mappings? */ | 1108 | /* Any vsyscall mappings? */ |
1109 | if (vma == get_gate_vma(vma->vm_mm)) | 1109 | if (vma == get_gate_vma(vma->vm_mm)) |
1110 | return true; | 1110 | return true; |
1111 | |||
1112 | /* | ||
1113 | * Assume that all vmas with a .name op should always be dumped. | ||
1114 | * If this changes, a new vm_ops field can easily be added. | ||
1115 | */ | ||
1116 | if (vma->vm_ops && vma->vm_ops->name && vma->vm_ops->name(vma)) | ||
1117 | return true; | ||
1118 | |||
1111 | /* | 1119 | /* |
1112 | * arch_vma_name() returns non-NULL for special architecture mappings, | 1120 | * arch_vma_name() returns non-NULL for special architecture mappings, |
1113 | * such as vDSO sections. | 1121 | * such as vDSO sections. |