Re: [PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
On 01-04-18, Baoquan He wrote: > On 01/04/18 at 03:54pm, Alexander Kuleshov wrote: > > we align minimal possible address during randomization to > > CONFIG_PHYSICAL_ALIGN > > two times: during getting of random physical address and virtual > > address (only for x86_64). > > > > Let's move this to

Re: [PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Baoquan He
On 01/04/18 at 03:54pm, Alexander Kuleshov wrote: > we align minimal possible address during randomization to > CONFIG_PHYSICAL_ALIGN > two times: during getting of random physical address and virtual > address (only for x86_64). > > Let's move this to choose_random_location() to not duplicate co

[PATCH] x86/KASLR: move aligning of minimal address to choose_random_location()

2018-01-04 Thread Alexander Kuleshov
we align minimal possible address during randomization to CONFIG_PHYSICAL_ALIGN two times: during getting of random physical address and virtual address (only for x86_64). Let's move this to choose_random_location() to not duplicate code in find_random_virt_addr() and find_random_phys_addr(). Sig