aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/binfmt_elf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 7cb28720f90e..6fec8bfa6bac 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -1178,6 +1178,10 @@ static int dump_seek(struct file *file, loff_t off)
1178 */ 1178 */
1179static int maydump(struct vm_area_struct *vma) 1179static int maydump(struct vm_area_struct *vma)
1180{ 1180{
1181 /* The vma can be set up to tell us the answer directly. */
1182 if (vma->vm_flags & VM_ALWAYSDUMP)
1183 return 1;
1184
1181 /* Do not dump I/O mapped devices or special mappings */ 1185 /* Do not dump I/O mapped devices or special mappings */
1182 if (vma->vm_flags & (VM_IO | VM_RESERVED)) 1186 if (vma->vm_flags & (VM_IO | VM_RESERVED))
1183 return 0; 1187 return 0;