Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack
From: Al Viro
Date: Wed Jun 16 2021 - 17:02:33 EST
On Wed, Jun 16, 2021 at 03:57:19PM -0500, Eric W. Biederman wrote:
> Do you know if struct switch_stack or pt_regs is ever exposeed to
> usespace? They are both defined in arch/alpha/include/uapi/asm/ptrace.h
> which makes me think userspace must see those definitions somewhere.
They are exposed, but why mess with those in the first
place? thread_info->status is strictly thread-synchronous, so just
use it and be done with that...