Re: [RFC PATCH 14/19] powerpc: split validate_sp into two functions

2022-11-07 Thread Nicholas Piggin
On Mon Nov 7, 2022 at 10:58 AM AEST, Russell Currey wrote: > On Mon, 2022-10-31 at 15:54 +1000, Nicholas Piggin wrote: > > Most callers just want to validate an arbitrary kernel stack pointer, > > some need a particular size. Make the size case the exceptional one > > with an extra function. > >

Re: [RFC PATCH 14/19] powerpc: split validate_sp into two functions

2022-11-06 Thread Russell Currey
On Mon, 2022-10-31 at 15:54 +1000, Nicholas Piggin wrote: > Most callers just want to validate an arbitrary kernel stack pointer, > some need a particular size. Make the size case the exceptional one > with an extra function. > > Signed-off-by: Nicholas Piggin > --- >  

[RFC PATCH 14/19] powerpc: split validate_sp into two functions

2022-10-31 Thread Nicholas Piggin
Most callers just want to validate an arbitrary kernel stack pointer, some need a particular size. Make the size case the exceptional one with an extra function. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/processor.h | 15 --- arch/powerpc/kernel/process.c|