Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Naoya Horiguchi
On Fri, Jul 07, 2017 at 11:58:14AM +0100, Matt Fleming wrote: > On Fri, 07 Jul, at 06:11:24AM, Naoya Horiguchi wrote: > > On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > >

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Naoya Horiguchi
On Fri, Jul 07, 2017 at 11:58:14AM +0100, Matt Fleming wrote: > On Fri, 07 Jul, at 06:11:24AM, Naoya Horiguchi wrote: > > On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > >

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Baoquan He
On 07/09/17 at 06:44pm, Baoquan He wrote: > On 07/07/17 at 11:56am, Matt Fleming wrote: > > On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > > + for (i = 0; i < nr_desc; i++)

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Baoquan He
On 07/09/17 at 06:44pm, Baoquan He wrote: > On 07/07/17 at 11:56am, Matt Fleming wrote: > > On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > > + for (i = 0; i < nr_desc; i++)

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Baoquan He
On 07/07/17 at 11:56am, Matt Fleming wrote: > On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > + for (i = 0; i < nr_desc; i++) { > > > > + md = (efi_memory_desc_t

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-09 Thread Baoquan He
On 07/07/17 at 11:56am, Matt Fleming wrote: > On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > + for (i = 0; i < nr_desc; i++) { > > > > + md = (efi_memory_desc_t

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Matt Fleming
On Fri, 07 Jul, at 06:11:24AM, Naoya Horiguchi wrote: > On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > + for (i = 0; i < nr_desc; i++) { > > > > + md

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Matt Fleming
On Fri, 07 Jul, at 06:11:24AM, Naoya Horiguchi wrote: > On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > > + for (i = 0; i < nr_desc; i++) { > > > > + md

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Matt Fleming
On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > + for (i = 0; i < nr_desc; i++) { > > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > > + > > > + /*

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Matt Fleming
On Fri, 07 Jul, at 11:07:59AM, Baoquan He wrote: > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > + for (i = 0; i < nr_desc; i++) { > > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > > + > > > + /*

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Naoya Horiguchi
On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > + for (i = 0; i < nr_desc; i++) { > > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > > + > > > +

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-07 Thread Naoya Horiguchi
On Fri, Jul 07, 2017 at 11:07:59AM +0800, Baoquan He wrote: > On 07/06/17 at 03:57pm, Matt Fleming wrote: > > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > > + for (i = 0; i < nr_desc; i++) { > > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > > + > > > +

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
On 07/06/17 at 03:57pm, Matt Fleming wrote: > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > + for (i = 0; i < nr_desc; i++) { > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > + > > + /* > > +* EFI_BOOT_SERVICES_{CODE|DATA} are

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
On 07/06/17 at 03:57pm, Matt Fleming wrote: > On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > + for (i = 0; i < nr_desc; i++) { > > + md = (efi_memory_desc_t *)(pmap + (i * e->efi_memdesc_size)); > > + > > + /* > > +* EFI_BOOT_SERVICES_{CODE|DATA} are

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Matt Fleming
On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > KASLR chooses kernel location from E820_TYPE_RAM regions by walking over > e820 entries now. E820_TYPE_RAM includes EFI_BOOT_SERVICES_CODE and > EFI_BOOT_SERVICES_DATA, so those regions can be the target. According to > UEFI spec, all

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Matt Fleming
On Thu, 06 Jul, at 08:31:07AM, Naoya Horiguchi wrote: > > KASLR chooses kernel location from E820_TYPE_RAM regions by walking over > e820 entries now. E820_TYPE_RAM includes EFI_BOOT_SERVICES_CODE and > EFI_BOOT_SERVICES_DATA, so those regions can be the target. According to > UEFI spec, all

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 06:04:46PM +0800, Chao Fan wrote: >On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >>Hi Baoquan, everyone, >> >>I'm also interested in KASLR/EFI related issue (but not the same issue >>with yours, so I separated the thread.) >> >>This patch is based on

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 06:04:46PM +0800, Chao Fan wrote: >On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >>Hi Baoquan, everyone, >> >>I'm also interested in KASLR/EFI related issue (but not the same issue >>with yours, so I separated the thread.) >> >>This patch is based on

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 09:22:38AM +, Naoya Horiguchi wrote: >On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: >> On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >> >Hi Baoquan, everyone, >> > >> >I'm also interested in KASLR/EFI related issue (but not the same issue

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 09:22:38AM +, Naoya Horiguchi wrote: >On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: >> On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >> >Hi Baoquan, everyone, >> > >> >I'm also interested in KASLR/EFI related issue (but not the same issue

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:18:09PM +0800, Baoquan He wrote: > Hi Naoya Horiguchi, > > Thanks for making this! > > On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > > Hi Baoquan, everyone, > > > > I'm also interested in KASLR/EFI related issue (but not the same issue > > with yours, so I

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:18:09PM +0800, Baoquan He wrote: > Hi Naoya Horiguchi, > > Thanks for making this! > > On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > > Hi Baoquan, everyone, > > > > I'm also interested in KASLR/EFI related issue (but not the same issue > > with yours, so I

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: > On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: > >Hi Baoquan, everyone, > > > >I'm also interested in KASLR/EFI related issue (but not the same issue > >with yours, so I separated the thread.) > > > >This patch is based

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: > On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: > >Hi Baoquan, everyone, > > > >I'm also interested in KASLR/EFI related issue (but not the same issue > >with yours, so I separated the thread.) > > > >This patch is based

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
Hi Naoya Horiguchi, Thanks for making this! On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > Hi Baoquan, everyone, > > I'm also interested in KASLR/EFI related issue (but not the same issue > with yours, so I separated the thread.) > > This patch is based on Baoquan's recent patches[1], adding

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
Hi Naoya Horiguchi, Thanks for making this! On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > Hi Baoquan, everyone, > > I'm also interested in KASLR/EFI related issue (but not the same issue > with yours, so I separated the thread.) > > This patch is based on Baoquan's recent patches[1], adding

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function