Re: [PATCH v1 1/2] x86/KASLR: Fix physical memory calculation on KASLR memory randomization

From: Thomas Garnier
Date: Tue Aug 09 2016 - 12:30:54 EST


On Tue, Aug 9, 2016 at 9:03 AM, Joerg Roedel <jroedel@xxxxxxx> wrote:
> On Tue, Aug 09, 2016 at 09:00:04AM -0700, Thomas Garnier wrote:
>> On Mon, Aug 8, 2016 at 11:40 AM, Thomas Garnier <thgarnie@xxxxxxxxxx> wrote:
>> > Initialize KASLR memory randomization after max_pfn is initialized. Also
>> > ensure the size is rounded up. Could have create problems on machines
>> > with more than 1Tb of memory on certain random addresses.
>> >
>> > Signed-off-by: Thomas Garnier <thgarnie@xxxxxxxxxx>
>>
>> I will send a new version of this PATCH soon. The test bot found
>> places where virtual addresses were computed before PAGE_OFFSET was
>> set. I will investigate that.
>
> When you do that, please also add 'Fixes:' tags to your patches.
>

Will do.

> Thanks,
>
> Joerg
>