Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 1:05 PM, Kees Cook wrote: > On Wed, Apr 30, 2014 at 11:30 AM, Andy Lutomirski wrote: >> On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook wrote: >>> On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski >>> wrote: On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook wrote: > On

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 30, 2014 at 11:30 AM, Andy Lutomirski wrote: > On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook wrote: >> On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski >> wrote: >>> On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook wrote: On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch wrote:

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook wrote: > On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski wrote: >> On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook wrote: >>> On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch >>> wrote: On 04/23/2014 11:30 AM, H. Peter Anvin wrote: > On

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski wrote: > On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook wrote: >> On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch >> wrote: >>> On 04/23/2014 11:30 AM, H. Peter Anvin wrote: On 04/21/2014 09:52 AM, Nathan Lynch wrote: > Hi x86/vdso people,

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook wrote: > On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch > wrote: >> On 04/23/2014 11:30 AM, H. Peter Anvin wrote: >>> On 04/21/2014 09:52 AM, Nathan Lynch wrote: Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch wrote: > On 04/23/2014 11:30 AM, H. Peter Anvin wrote: >> On 04/21/2014 09:52 AM, Nathan Lynch wrote: >>> Hi x86/vdso people, >>> >>> I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I >>> look at x86_64's algorithm for placing

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch nathan_ly...@mentor.com wrote: On 04/23/2014 11:30 AM, H. Peter Anvin wrote: On 04/21/2014 09:52 AM, Nathan Lynch wrote: Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I look at x86_64's algorithm for

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch nathan_ly...@mentor.com wrote: On 04/23/2014 11:30 AM, H. Peter Anvin wrote: On 04/21/2014 09:52 AM, Nathan Lynch wrote: Hi x86/vdso people, I've been working on adding a

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch nathan_ly...@mentor.com wrote: On 04/23/2014 11:30 AM, H. Peter Anvin wrote: On 04/21/2014 09:52

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 23, 2014 at 10:06 AM, Nathan Lynch nathan_ly...@mentor.com

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Kees Cook
On Wed, Apr 30, 2014 at 11:30 AM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Apr 30, 2014 at 10:47 AM, Kees Cook keesc...@google.com

Re: randomized placement of x86_64 vdso

2014-04-30 Thread Andy Lutomirski
On Wed, Apr 30, 2014 at 1:05 PM, Kees Cook keesc...@google.com wrote: On Wed, Apr 30, 2014 at 11:30 AM, Andy Lutomirski l...@amacapital.net wrote: On Wed, Apr 30, 2014 at 11:13 AM, Kees Cook keesc...@google.com wrote: On Wed, Apr 30, 2014 at 10:52 AM, Andy Lutomirski l...@amacapital.net

Re: randomized placement of x86_64 vdso

2014-04-23 Thread Nathan Lynch
On 04/23/2014 11:30 AM, H. Peter Anvin wrote: > On 04/21/2014 09:52 AM, Nathan Lynch wrote: >> Hi x86/vdso people, >> >> I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I >> look at x86_64's algorithm for placing the vDSO at a randomized offset >> above the stack VMA. I found

Re: randomized placement of x86_64 vdso

2014-04-23 Thread H. Peter Anvin
On 04/21/2014 09:52 AM, Nathan Lynch wrote: > Hi x86/vdso people, > > I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I > look at x86_64's algorithm for placing the vDSO at a randomized offset > above the stack VMA. I found that when the stack top occupies the > last slot in

Re: randomized placement of x86_64 vdso

2014-04-23 Thread Nathan Lynch
On 04/23/2014 11:30 AM, H. Peter Anvin wrote: On 04/21/2014 09:52 AM, Nathan Lynch wrote: Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I look at x86_64's algorithm for placing the vDSO at a randomized offset above the stack VMA. I found that when

Re: randomized placement of x86_64 vdso

2014-04-23 Thread H. Peter Anvin
On 04/21/2014 09:52 AM, Nathan Lynch wrote: Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I look at x86_64's algorithm for placing the vDSO at a randomized offset above the stack VMA. I found that when the stack top occupies the last slot in the

randomized placement of x86_64 vdso

2014-04-21 Thread Nathan Lynch
Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I look at x86_64's algorithm for placing the vDSO at a randomized offset above the stack VMA. I found that when the stack top occupies the last slot in the PTE (is that the right term?), the vdso_addr

randomized placement of x86_64 vdso

2014-04-21 Thread Nathan Lynch
Hi x86/vdso people, I've been working on adding a vDSO to 32-bit ARM, and Kees suggested I look at x86_64's algorithm for placing the vDSO at a randomized offset above the stack VMA. I found that when the stack top occupies the last slot in the PTE (is that the right term?), the vdso_addr