Re: [PATCH v2 2/5] powerpc/64s/hash: Fix fork() with 512TB process address space

2017-11-12 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > Hash unconditionally resets the addr_limit to default (128TB) when > the mm context is initialised. If a process has > 128TB mappings when > it forks, the child will not get the 512TB addr_limit, so accesses to > valid > 128TB mappings will fail in the child. > > Fix thi

[PATCH v2 2/5] powerpc/64s/hash: Fix fork() with 512TB process address space

2017-11-09 Thread Nicholas Piggin
Hash unconditionally resets the addr_limit to default (128TB) when the mm context is initialised. If a process has > 128TB mappings when it forks, the child will not get the 512TB addr_limit, so accesses to valid > 128TB mappings will fail in the child. Fix this by only resetting the addr_limit to