Re: VMAs and "offset"s?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, I just read this:

http://www.linux-security.cn/ebooks/ulk3-html/0596005652/understandlk-CHP-9-SECT-3.html

And looking at the definition of vm_pgoff, it says:

"Offset in mapped file (see Chapter 16). For anonymous pages, it is
either zero or equal to vm_start/PAGE_SIZE (see Chapter 17)."

anonymous pages referred to vdso/heap and stack.   right?   but it is
neither zero nor vm_start/PAGE_SIZE.   a bug in the book?

another interesting phenomena to know is that Linux kernel seemed to
map all the processes' stack to the same linear address (for
convenience of programming?):

"cat /proc/*/maps | grep stack" and u can see ONE stack offset value.
 I thought there is an option to randomized the stack address?   not
sure.

but for heap and vdso it showed less uniformity, but not without as well.

interesting!!!


-- 
Regards,
Peter Teoh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux