Re: [PATCH v2] powerpc: Implement arch_within_stack_frames

2023-01-31 Thread Michael Ellerman
Nicholas Miehlbradt writes: > Walks the stack when copy_{to,from}_user address is in the stack to > ensure that the object being copied is entirely within a single stack > frame. ... and that it exists above the parameter save area, so is not pointing at any stack metadata right? > Substatially

[PATCH v2] powerpc: Implement arch_within_stack_frames

2023-01-18 Thread Nicholas Miehlbradt
Walks the stack when copy_{to,from}_user address is in the stack to ensure that the object being copied is entirely within a single stack frame. Substatially similar to the x86 implementation except using the back chain to traverse the stack and identify stack frame boundaries. Signed-off-by: Nic