linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* elf_core_dump and kernel virtual mapping (kmap) in 2.4
@ 2003-11-11 18:37 Bhavesh P. Davda
  0 siblings, 0 replies; only message in thread
From: Bhavesh P. Davda @ 2003-11-11 18:37 UTC (permalink / raw)
  To: linux-kernel

Folks,

I have been trying to figure out an answer for this, but couldn't find
anything in the lkml archives or in bitkeeper changeset logs on why this is
done:

Why does the kernel have to re-map process virtual memory into it's address
space using get_user_pages() and kmap() when dumping core (elf_core_dump)?
Isn't  the kernel running in the context of the task for which it is dumping
core (current)? And thereby, aren't the kernel's VM mappings the same as the
task it is dumping core for? So the page directory and page table entries
should all still be valid in kernel space. And page faults, if any, should
be handled "correctly", right?

What am I missing here? What's the need for the get_user_pages() and kmap()
in elf_core_dump()?

Thanks
- Bhavesh

--
Bhavesh P. Davda     E-mail    : bhavesh@avaya.com
Avaya Inc.           Phone/Fax : (303) 538-4438
Room B3-B03, 1300 West 120th Avenue
Westminster, CO 80234


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-11 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 18:37 elf_core_dump and kernel virtual mapping (kmap) in 2.4 Bhavesh P. Davda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).