Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-12 Thread Kirill A. Shutemov
On Wed, Apr 12, 2017 at 08:41:29PM +1000, Michael Ellerman wrote: > Hi Kirill, > > I'm interested in this because we're doing pretty much the same thing on > powerpc at the moment, and I want to make sure x86 & powerpc end up with > compatible behaviour. > > "Kirill A. Shutemov" writes: > > On F

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-12 Thread Michael Ellerman
Hi Kirill, I'm interested in this because we're doing pretty much the same thing on powerpc at the moment, and I want to make sure x86 & powerpc end up with compatible behaviour. "Kirill A. Shutemov" writes: > On Fri, Apr 07, 2017 at 07:05:26PM +0530, Anshuman Khandual wrote: >> On 04/06/2017 07

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Kirill A. Shutemov
On Fri, Apr 07, 2017 at 09:09:27AM -0700, h...@zytor.com wrote: > >I think the reasonable way for an application to claim it's 63-bit > >clean > >is to make allocations with (void *)-1 as hint address. > > You realize that people have said that about just about every memory Any better solution?

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread hpa
On April 7, 2017 8:59:45 AM PDT, "Kirill A. Shutemov" wrote: >On Fri, Apr 07, 2017 at 07:05:26PM +0530, Anshuman Khandual wrote: >> On 04/06/2017 07:31 PM, Kirill A. Shutemov wrote: >> > On x86, 5-level paging enables 56-bit userspace virtual address >space. >> > Not all user space is ready to ha

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Kirill A. Shutemov
On Fri, Apr 07, 2017 at 07:05:26PM +0530, Anshuman Khandual wrote: > On 04/06/2017 07:31 PM, Kirill A. Shutemov wrote: > > On x86, 5-level paging enables 56-bit userspace virtual address space. > > Not all user space is ready to handle wide addresses. It's known that > > at least some JIT compilers

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Anshuman Khandual
On 04/06/2017 07:31 PM, Kirill A. Shutemov wrote: > On x86, 5-level paging enables 56-bit userspace virtual address space. > Not all user space is ready to handle wide addresses. It's known that > at least some JIT compilers use higher bits in pointers to encode their > information. It collides wit

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Dmitry Safonov
On 04/07/2017 02:21 AM, Kirill A. Shutemov wrote: On Thu, Apr 06, 2017 at 10:15:47PM +0300, Dmitry Safonov wrote: On 04/06/2017 09:43 PM, Dmitry Safonov wrote: Hi Kirill, On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: On x86, 5-level paging enables 56-bit userspace virtual address space. N

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Kirill A. Shutemov
On Thu, Apr 06, 2017 at 10:15:47PM +0300, Dmitry Safonov wrote: > On 04/06/2017 09:43 PM, Dmitry Safonov wrote: > > Hi Kirill, > > > > On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: > > > On x86, 5-level paging enables 56-bit userspace virtual address space. > > > Not all user space is ready to

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Dmitry Safonov
On 04/06/2017 09:43 PM, Dmitry Safonov wrote: Hi Kirill, On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Dmitry Safonov
Hi Kirill, On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in pointers to encode their information. It collid

[PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Kirill A. Shutemov
On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in pointers to encode their information. It collides with valid pointers with 5-level paging and leads to crashes.