Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp30226pxj; Wed, 16 Jun 2021 19:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyerkcjl++OX7IXZ50oKEz3XivVI8unbnl0YMfuFbXCpi/42zRqoVVBMcjrF114G89A3IoZ X-Received: by 2002:a17:906:dbc2:: with SMTP id yc2mr2631691ejb.390.1623896624323; Wed, 16 Jun 2021 19:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623896624; cv=none; d=google.com; s=arc-20160816; b=mFEf1D2p4YwJkXOK0rbLgkObAiUn/2lhOizuuvTYlAWwBGRb4MjKPQyv+wIYcG/v9h Q6G+7wD4Eajw1gSqTA2wRjIenX/AwRSH0NIqH4pLkK2OSZho8Q7x0+4ZGI2fyHyA/8F9 HDjwxefBklokLQaOWM4s24w+knukT15e+hoGzv81qdqcVBR+j+B8gu3aNV/NcxYGemh3 WkeNsYMxov1h+u+xf6SGaWq5VafEaVtjXLfHgnQ1tzXVo/uucd313173yo9DDglKqgtJ M9A99HtVo9TcnaHew1Mnroyfcuo/KPLixjN4wgtp/c11rqu6rkWjZXvof07RQlSqrrYu QV2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1MNn9xFHrplwJizrUSUqr/qFVCoWi8sXhJXgE4sREFw=; b=KYSgsRsI9FqsVoO6ypKhaSOZszBU309WPZkzi/x5nSBy2bwGIqXX3KTGTNMDgMXLM7 sEAXREwHGAAcPncou+pCyOWRN+Q+wMu02ToVj80XsGfOhI0lsBRW07YHcXpr6+EkZupK p5qN7/4kWiF5D8kuwSYIKEfw6McvH71MHsaNH/xr4Hv4RFONVHDOF1N465G/hPoh7S4r V+QrcrrZLJHQcs7KrRyr2kvtriCGSX70qN8dmD5ou0LLO7+d1za8hB15yAcbHukyue9S DB+pqcP5N0fj+y6T8tic+WaLZDn2raVqwOcdSXISp5QnyUlASmejhxRB2VHkYLAP0H02 dJvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf15si3667661edb.548.2021.06.16.19.23.21; Wed, 16 Jun 2021 19:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233849AbhFPVEj (ORCPT + 99 others); Wed, 16 Jun 2021 17:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233678AbhFPVEh (ORCPT ); Wed, 16 Jun 2021 17:04:37 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26F87C061574; Wed, 16 Jun 2021 14:02:31 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltcfx-0095Fd-Qh; Wed, 16 Jun 2021 21:02:17 +0000 Date: Wed, 16 Jun 2021 21:02:17 +0000 From: Al Viro To: "Eric W. Biederman" Cc: Linus Torvalds , Michael Schmitz , linux-arch , Jens Axboe , Oleg Nesterov , Linux Kernel Mailing List , Richard Henderson , Ivan Kokshaysky , Matt Turner , alpha , Geert Uytterhoeven , linux-m68k , Arnd Bergmann , Ley Foon Tan , Tejun Heo , Kees Cook Subject: Re: [PATCH 1/2] alpha/ptrace: Record and handle the absence of switch_stack Message-ID: References: <5929e116-fa61-b211-342a-c706dcb834ca@gmail.com> <87fsxjorgs.fsf@disp2133> <87zgvqor7d.fsf_-_@disp2133> <87mtrpg47k.fsf@disp2133> <87pmwlek8d.fsf_-_@disp2133> <87k0mtek4n.fsf_-_@disp2133> <878s398r4g.fsf@disp2133> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878s398r4g.fsf@disp2133> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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...