Re: [PATCH] powerpc: Hide empty pt_regs at base of the stack

2023-10-27 Thread Michael Ellerman
On Thu, 24 Aug 2023 16:42:10 +1000, Michael Ellerman wrote: > A thread started via eg. user_mode_thread() runs in the kernel to begin > with and then may later return to userspace. While it's running in the > kernel it has a pt_regs at the base of its kernel stack, but that > pt_regs is all zeroes.

Re: [PATCH] powerpc: Hide empty pt_regs at base of the stack

2023-08-30 Thread Joel Stanley
On Thu, 24 Aug 2023 at 06:42, Michael Ellerman wrote: > > A thread started via eg. user_mode_thread() runs in the kernel to begin > with and then may later return to userspace. While it's running in the > kernel it has a pt_regs at the base of its kernel stack, but that > pt_regs is all zeroes. >

[PATCH] powerpc: Hide empty pt_regs at base of the stack

2023-08-23 Thread Michael Ellerman
A thread started via eg. user_mode_thread() runs in the kernel to begin with and then may later return to userspace. While it's running in the kernel it has a pt_regs at the base of its kernel stack, but that pt_regs is all zeroes. If the thread oopses in that state, it leads to an ugly stack trac