Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2020-07-20 Thread Daniel Axtens
Michael Ellerman writes: > Michal Suchánek writes: >> Hello, >> >> On Wed, Dec 11, 2019 at 08:37:21PM +1100, Daniel Axtens wrote: >>> > Fixes: 14cf11af6cf6 ("powerpc: Merge enough to start building in >>> > arch/powerpc.") >>> >>> Wow, that's pretty ancient! I'm also not sure it's right - in th

Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2020-07-20 Thread Michael Ellerman
Michal Suchánek writes: > Hello, > > On Wed, Dec 11, 2019 at 08:37:21PM +1100, Daniel Axtens wrote: >> > Fixes: 14cf11af6cf6 ("powerpc: Merge enough to start building in >> > arch/powerpc.") >> >> Wow, that's pretty ancient! I'm also not sure it's right - in that same >> patch, arch/ppc64/mm/faul

Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2020-07-20 Thread Michal Suchánek
Hello, On Wed, Dec 11, 2019 at 08:37:21PM +1100, Daniel Axtens wrote: > > Fixes: 14cf11af6cf6 ("powerpc: Merge enough to start building in > > arch/powerpc.") > > Wow, that's pretty ancient! I'm also not sure it's right - in that same > patch, arch/ppc64/mm/fault.c contains: > > ^1da177e4c3f4 (L

Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2019-12-11 Thread Daniel Black
On Wed, 11 Dec 2019 12:43:37 +1100 Daniel Axtens wrote: > If a process page-faults trying to write beyond the end of its > stack, we attempt to grow the stack. > > However, if the kernel attempts to write beyond the end of a > process's stack, it takes a bad fault. This can occur when the > kern

Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2019-12-11 Thread Daniel Axtens
> Fixes: 14cf11af6cf6 ("powerpc: Merge enough to start building in > arch/powerpc.") Wow, that's pretty ancient! I'm also not sure it's right - in that same patch, arch/ppc64/mm/fault.c contains: ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 213) if (address + 2048 <

Re: [PATCH] powerpc/fault: kernel can extend a user process's stack

2019-12-10 Thread Michal Suchánek
On Wed, Dec 11, 2019 at 12:43:37PM +1100, Daniel Axtens wrote: > If a process page-faults trying to write beyond the end of its > stack, we attempt to grow the stack. > > However, if the kernel attempts to write beyond the end of a > process's stack, it takes a bad fault. This can occur when the >