Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Jeremy Linton
On 07/14/2016 02:14 AM, Alexander Graf wrote: On 14.07.16 09:03, Zheng Xu wrote: LuaJIT also fix the 48VA issue by allocating heap memory below 47 bits. For mozjs issue, if there are pointers to .rodata, it can be a problem. Does it happen on master and do we have any case to reproduce the is

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Ard Biesheuvel
On 13 July 2016 at 18:14, Alexander Graf wrote: > On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: >> >> On 13 July 2016 at 17:42, Alexander Graf wrote: >>> >>> Some user space applications are known to break with 48 bits virtual >> >> known by whom? At least I wasn't aware of it, so could you pleas

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Alexander Graf
> Am 14.07.2016 um 09:49 schrieb Zheng Xu : > > Sorry, I might misunderstand the issue. I thought there are still issues with > master. > > I saw that you've mentioned there are pointers to .rodata. And I only fixed > the heap. So I am just worried if there can be issues with .rodata. If > po

RE: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Zheng Xu
m-ker...@lists.infradead.org; Stuart Monteith Subject: Re: [PATCH] arm64: Add config to limit user space to 47bits On 14.07.16 09:03, Zheng Xu wrote: > LuaJIT also fix the 48VA issue by allocating heap memory below 47 bits. > > For mozjs issue, if there are pointers to .rodata, it can be a problem. Doe

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Alexander Graf
On 14.07.16 09:03, Zheng Xu wrote: > LuaJIT also fix the 48VA issue by allocating heap memory below 47 bits. > > For mozjs issue, if there are pointers to .rodata, it can be a problem. Does > it happen on master and do we have any case to reproduce the issue so that I > can take a look? mozjs

RE: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-14 Thread Zheng Xu
: Alexander Graf [mailto:ag...@suse.de] Sent: 14 July 2016 14:39 To: Steve Capper Cc: Ard Biesheuvel; Mark Rutland; mbrug...@suse.com; Catalin Marinas; Will Deacon; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; Stuart Monteith; Zheng Xu Subject: Re: [PATCH] arm64: Add config to

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Alexander Graf
> On 14 Jul 2016, at 03:08, Steve Capper wrote: > > Hi Alex, > > Thanks for posting this. > > On Wed, Jul 13, 2016 at 06:14:11PM +0200, Alexander Graf wrote: >> On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: >>> On 13 July 2016 at 17:42, Alexander Graf wrote: Some user space applications

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Steve Capper
Hi Alex, Thanks for posting this. On Wed, Jul 13, 2016 at 06:14:11PM +0200, Alexander Graf wrote: > On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: > >On 13 July 2016 at 17:42, Alexander Graf wrote: > >>Some user space applications are known to break with 48 bits virtual > >known by whom? At least

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Mark Rutland
On Wed, Jul 13, 2016 at 05:42:47PM +0200, Alexander Graf wrote: > Some user space applications are known to break with 48 bits virtual > address space. As interim step until the world is healed and everyone > embraces correct code, this patch allows to only expose 47 bits of > virtual address space

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Alexander Graf
On 07/13/2016 05:59 PM, Ard Biesheuvel wrote: On 13 July 2016 at 17:42, Alexander Graf wrote: Some user space applications are known to break with 48 bits virtual known by whom? At least I wasn't aware of it, so could you please share some examples? Sure! Known to me so far are: * mozjs17

Re: [PATCH] arm64: Add config to limit user space to 47bits

2016-07-13 Thread Ard Biesheuvel
On 13 July 2016 at 17:42, Alexander Graf wrote: > Some user space applications are known to break with 48 bits virtual known by whom? At least I wasn't aware of it, so could you please share some examples? > address space. As interim step until the world is healed and everyone > embraces correct