Re: Mem under Linux



Thomas Jensen wrote:
Hi

Can someone help me with a link to a tutorial or a book, where I can learn about memory in Linux, so I can make dynamic allocations with syscalls, without malloc.

Some information about this in Jonathan Bartlett's "Programming from the Ground Up":

<http://www.cafepress.com/bartlettpublish.8640017>

Also available in the "'free' as in 'freeloader'" version:

<http://savannah.nongnu.org/projects/pgubook/>

This uses AT&T syntax. The examples have been translated to Nasm syntax by Wilhelm Zadrapa, and are available here:

<http:mysite.verizon.net/fbkotler/nasm-pgu-examples.tar.bz2>

.... if you'd find 'em helpful (no memory examples here... there's a "alloc.s" in the book... apparently didn't get translated... holler if you need it! Chuck's example looks about the same...)

(note that you can also use sys_mmap of an anonymous object to get memory - dunno which is best...)

Best,
Frank
.



Relevant Pages

  • Linux ELF loader vulnerabilities
    ... Numerous bugs have been found in the Linux ELF binary loader while ... Internally the Linux kernel uses a binary format loader layer to ... and the position of the memory map header in the binary image and ... An user may try to execute such a malicious binary with an unterminated ...
    (Bugtraq)
  • [Full-Disclosure] Linux ELF loader vulnerabilities
    ... Numerous bugs have been found in the Linux ELF binary loader while ... Internally the Linux kernel uses a binary format loader layer to ... and the position of the memory map header in the binary image and ... An user may try to execute such a malicious binary with an unterminated ...
    (Full-Disclosure)
  • Linux ELF loader vulnerabilities
    ... Numerous bugs have been found in the Linux ELF binary loader while ... Internally the Linux kernel uses a binary format loader layer to ... and the position of the memory map header in the binary image and ... An user may try to execute such a malicious binary with an unterminated ...
    (Full-Disclosure)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.misc)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.setup)