Text relocations in kernel modules

Richard Yao ryao at cs.stonybrook.edu
Mon Apr 2 19:25:20 UTC 2012


On 04/02/12 14:46, Peter Wemm wrote:
> Remember.. ASLR is a userland thing.  .ko files, which is what this
> thread is about, already use random address layout.  When you do a
> "kldload virtio.ko", you have no way to predict what address it will
> be loaded at.  And you don't even have access to the addresses.
> 
> Of course if you want to talk about ASLR and userland .so files then
> that's an entirely different thing.  But this thread is about your
> tools finding DT_TEXTREL in a .ko kernel file, not userland .so files.
> 

The PaX project's patches to the Linux kernel include kernel stack
randomization. The Gentoo Hardened project makes use of this in their
fork of the Linux kernel.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120402/a9eeb542/signature.pgp


More information about the freebsd-stable mailing list