From: Roland McGrath <roland@redhat.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] include all vmas with unbacked pages in ELF core dumps
Date: Wed, 20 Oct 2004 11:07:45 -0700 [thread overview]
Message-ID: <200410201807.i9KI7j6G007197@magilla.sf.frob.com> (raw)
In-Reply-To: Linus Torvalds's message of Wednesday, 20 October 2004 10:19:41 -0700 <Pine.LNX.4.58.0410201003192.2317@ppc970.osdl.org>
> Augh. Not all filesystems support holes,
We could represent the holes in ELF format instead. When a hole is at the
tail end of a vma, just reducing p_memsz does the trick. For holes in the
middle, we can make more ELF phdrs rather than one per vma.
> and I think VM_SHARED should trump VM_WRITE.
If VM_SHARED is never set when COW could have happened, then fine.
> But any non-dumped section _will_ show up in the ELF headers, so things
> like guard pages have nothing to do with "maydump()", imho.
Guard pages are indeed not truly an interesting case, since they are always
zero anyway. But in the general case, PROT_NONE is no guarantee that there
isn't worthwhile data there. e.g., some GC schemes use page protections
temporarily on parts of their heap--if it crashes in the middle of that,
you want that heap page's contents dumped even though at that instant the
page was not readable.
> In general, I'd much prefer just adding a VM_DIRTY flag, and making the
> COW logic set it. That should guarantee that we write out the minimal
> required sections.
I got the impression that vma->anon_vma being set when vma->vm_file is also
set means that COW happened. Would VM_DIRTY not be set in the same set of
cases?
Thanks,
Roland
next prev parent reply other threads:[~2004-10-20 18:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 8:22 Roland McGrath
2004-10-20 17:19 ` Linus Torvalds
2004-10-20 18:07 ` Roland McGrath [this message]
2004-10-21 19:05 ` Hugh Dickins
2004-10-21 20:01 ` Linus Torvalds
2004-10-21 22:00 ` Roland McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410201807.i9KI7j6G007197@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®