User: Password:
|
|
Subscribe / Log in / New account

Kernel address randomization

Kernel address randomization

Posted May 27, 2011 22:49 UTC (Fri) by dlang (subscriber, #313)
In reply to: Kernel address randomization by PaXTeam
Parent article: Kernel address randomization

the issue is that that 1/2/3G of kernel space is in a total of 4G of address space, and given the size of the kernel and the alignment requirements, things are a bit limited

on amd64 you have much more address space to work with, so that 2G of kernel space can be moved to far more locations


(Log in to post comments)

Kernel address randomization

Posted May 28, 2011 22:13 UTC (Sat) by PaXTeam (guest, #24616) [Link]

> the issue is that that 1/2/3G of kernel space is in a total of 4G of
> address space, and given the size of the kernel and the alignment
> requirements, things are a bit limited

the exact same limits apply to amd64 kernels as well.

> on amd64 you have much more address space to work with, so that 2G of
> kernel space can be moved to far more locations

you're wrong, the kernel image cannot be at arbitrary addresses, it *must* be in the top 2GB of the 64 bit virtual address space. i suggest you study the amd64 ABI and in particular -mcmodel=kernel.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds