mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "vamsi krishna" <vamsi.krishnak@gmail.com>
To: "Cedric Le Goater" <clg@fr.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Idea to create a elf executable from running program [process2executable]
Date: Mon, 20 Mar 2006 14:11:52 +0530	[thread overview]
Message-ID: <3faf05680603200041w49c5c59am46cf24bbb25cc013@mail.gmail.com> (raw)
In-Reply-To: <441E68C6.7030107@fr.ibm.com>

> Why don't you let execve() finish its job before modifying the mapping ?
>
> Once execve returns, the segments are mapped and you are free to remap them
> however you want and fill them in with a state previously saved on disk.
>

I dont want to remap myself after execve() because considering the
potential problem of ASLR (Address Space Layout Randomization), since
the segments may contain sections merged into it especially the
segments with permissions 'rw-p' has .dynamic, .got sections merged
into it so if I do that after execve the .dynamic and .got are put
back with the old contents which crashes.

So I want to write the all the virtual adress mappings as PT_LOAD
segments and leave the mapping job to the elf loader itself.

Thank you,
Vamsi kundeti

  reply	other threads:[~2006-03-20  8:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18 22:22 vamsi krishna
2006-03-19  9:30 ` Arjan van de Ven
2006-03-19 19:41   ` John Reiser
2006-03-20  8:33 ` Cedric Le Goater
2006-03-20  8:41   ` vamsi krishna [this message]
2006-03-21  8:43 ` Roberto Nibali
2006-03-22  5:18 ` Andrew Shewmaker

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=3faf05680603200041w49c5c59am46cf24bbb25cc013@mail.gmail.com \
    --to=vamsi.krishnak@gmail.com \
    --cc=clg@fr.ibm.com \
    --cc=linux-kernel@vger.kernel.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®