From: Remi Colinet <remi.colinet@free.fr>
To: Stephen Torri <storri@torri.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Obtaining a list of memory address ranges allocated to processes
Date: Thu, 07 Dec 2006 01:36:25 +0100 [thread overview]
Message-ID: <1165451785.45776209dee2a@imp3-g19.free.fr> (raw)
In-Reply-To: <1165449386.13079.30.camel@base.torri.org>
Selon Stephen Torri <storri@torri.org>:
> I am trying to create a custom ELF and Windows PE loader for the purpose
> of security research. I am having a difficult time finding how to
> allocate memory for a binary at the desired address in memory
> (especially if its non-relocatable).
Use mmap system call.
Anyway, the address is only going to be a hint.
> I would like to see why I cannot
> get memory allocated at the exact address request in the binary headers.
address should be page aligned.
> Is there a program or system call that allows me to see a list of memory
> address ranges allocated to the running processes on a system?
>
pmap pid_of_your_program will give you the memory map.
> Stephen
>
Remi
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2006-12-07 0:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 23:56 Stephen Torri
2006-12-07 0:36 ` Remi Colinet [this message]
2006-12-07 7:10 ` Arjan van de Ven
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=1165451785.45776209dee2a@imp3-g19.free.fr \
--to=remi.colinet@free.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=storri@torri.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®