# Re: \[PATCH v2 00/27\] x86: PIE support and option to extend KASLR randomization

- From: Pavel Machek \<hidden\>
- Date: 2018-03-15 08:48:36 
- List: linux-crypto
- Page: https://ratatoskr.run/linux-crypto/2018/03/5224974
- Thread: https://ratatoskr.run/linux-crypto/2018/03/5224968/t.md

```text
Hi!

> These patches make the changes necessary to build the kernel as Position
> Independent Executable (PIE) on x86_64. A PIE kernel can be relocated below
> the top 2G of the virtual address space. It allows to optionally extend the
> KASLR randomization range from 1G to 3G.

Would you explain why PIE code is good idea?

You are adding less than 2 bits of randomness. Cost is new config
option, some size and performance impact, and more than 1000 lines of
code...

Is there some grand plan of adding 30 more bits of randomness with
future patch or something?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
```
