Hrm, _that_ was easy. Fix for binfmt_elf coredump with funny mmap's , doing state D.

Greg Alexander (galexand@sietch.bloomington.in.us)
Tue, 1 Apr 1997 19:15:08 -0500 (EST)


Here's my solution. I think it still dumps all that is needed in your
coredump, but if you have any probs don't use this. :)

--- linux/fs/binfmt_elf.c.orig Wed Sep 4 02:43:08 1996
+++ linux/fs/binfmt_elf.c Tue Apr 1 18:51:40 1997
@@ -880,7 +880,7 @@
*/
static inline int maydump(struct vm_area_struct *vma)
{
- if (!(vma->vm_flags & (VM_READ|VM_WRITE|VM_EXEC)))
+ if (!(vma->vm_flags & (VM_READ|VM_EXEC)))
return 0;
#if 1
if (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))