Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-26 Thread Baoquan He
On 04/26/19 at 12:04pm, Borislav Petkov wrote: > On Fri, Apr 26, 2019 at 05:23:48PM +0800, Baoquan He wrote: > > I sent private mail to Kirill and Kees. Kirill haven't replied yet, he > > could be busy with something else as he doesn't show up recently on > > lkml. > > I don't understand what the

Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-26 Thread Borislav Petkov
On Fri, Apr 26, 2019 at 05:23:48PM +0800, Baoquan He wrote: > I sent private mail to Kirill and Kees. Kirill haven't replied yet, he > could be busy with something else as he doesn't show up recently on > lkml. I don't understand what the hurry is? The merge window is imminent and we only pick

Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-26 Thread Baoquan He
Hi Boris, On 04/15/19 at 09:47pm, Borislav Petkov wrote: > On Sun, Apr 14, 2019 at 03:28:04PM +0800, Baoquan He wrote: > > kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, > > to support the maximum amount of system RAM in 4-level paging mode, 64 TB. > > > > However, 1 TB

Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-17 Thread Baoquan He
On 04/15/19 at 09:47pm, Borislav Petkov wrote: > On Sun, Apr 14, 2019 at 03:28:04PM +0800, Baoquan He wrote: > > kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, > > to support the maximum amount of system RAM in 4-level paging mode, 64 TB. > > > > However, 1 TB is not

Re: [PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-15 Thread Borislav Petkov
On Sun, Apr 14, 2019 at 03:28:04PM +0800, Baoquan He wrote: > kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, > to support the maximum amount of system RAM in 4-level paging mode, 64 TB. > > However, 1 TB is not enough for vmemmap in 5-level paging mode. Assuming > the

[PATCH v2 RESEND 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-14 Thread Baoquan He
kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, to support the maximum amount of system RAM in 4-level paging mode, 64 TB. However, 1 TB is not enough for vmemmap in 5-level paging mode. Assuming the size of struct page is 64 Bytes, to support 4 PB system RAM in 5-level,