Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4199436pxj; Mon, 21 Jun 2021 16:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX2ySQ9/cOvd2qYoZIXNj/PtFD23+8qQpJaab7cz53RR7h4NWwonUt0lcIQOpZj4zZNQpo X-Received: by 2002:a17:906:25cb:: with SMTP id n11mr544783ejb.539.1624317440103; Mon, 21 Jun 2021 16:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624317440; cv=none; d=google.com; s=arc-20160816; b=OMhSrcT3HK5AxO5SP/3vszx1xSz7d2raKJCekCIR5OKfUhp5fmY//QUovPNRxO0NDJ FqtX9CKFddJ11qRh1GIwXWyiyRdPbX2ByT4zd2lrdXZSzf6Vd80vFgYaql4Hiwn00Nlq Dx+XfpeFlbSkgORw52+nJbBLfFmgPTr67xJdLktV//991F+RWy3aWN3Ax7a1gWIJ70wJ KFVBBzo6TB7CPvHAzjvP5I0FnB/y3i97L03EOOyFXF/+UMAPdryjCGhiVnDPi4oUYzwV 7qYKBfyYS7INcq+DKB7Y6E5fRVsHmF/g2U+JR1YZu8qP1NyFPmvkcsdiUJgGNFfN9ezP jhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=stNy8kLF5vctj8WXK363X+Ab+aWkvJsrhuAKRgNlaFY=; b=Mz4pgBIQsncPJfSxf1Zr7X8lLlwAeaUI9JjVW6Gcn9danoqVhebTdMZToqrhkrGe13 +GkxxAXwO+C0CLrBVp29upeATud6FWkzhfl6jOWSXZooofFbfBbb6+2boUOxVizP9vR7 RPHkoDAri/Xnlt3J+40FbDZbYI0YA+AHBRbV9Apqh3Ol+Dj7AgknmTQs7Pr4UHpkoGSl gTnlac5kDIf9ZgAGigwG2t2oo/wyNbVYQYd0ZPN5gmPL5zdYFTji0C3u3ynazx0zhPyT prVS30mCB+FAeDVKynD9J2LPJpw0VqyJgGnfk+/OyiVPX1wKt4B03WmwcZQNG9U8uiUZ 1SiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IL1c66Hd; 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 f19si12170715ejl.365.2021.06.21.16.16.56; Mon, 21 Jun 2021 16:17:20 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IL1c66Hd; 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 S231566AbhFUXSN (ORCPT + 99 others); Mon, 21 Jun 2021 19:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbhFUXSL (ORCPT ); Mon, 21 Jun 2021 19:18:11 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81B04C06175F for ; Mon, 21 Jun 2021 16:15:56 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id u11so16546917ljh.2 for ; Mon, 21 Jun 2021 16:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=stNy8kLF5vctj8WXK363X+Ab+aWkvJsrhuAKRgNlaFY=; b=IL1c66HdRAXSPTueb6HvT7WAQ+hVTgraIpPVGrRtYIIPrdMk6idOyB+d7hgkhCbE/J WSDn2K6/KFlAr4ZepO/VZSbAHdCjsBoc9mInrjOrnW0t0J2Sklo0eRJQKmRh1FXkY2rP httftVRSDPt4omCrZhGPE4bzB66yBCzHc25jk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=stNy8kLF5vctj8WXK363X+Ab+aWkvJsrhuAKRgNlaFY=; b=cArIQ+MQdzEoTIW/33mGSO+k7dZd+iih3om1/t6TyxH5dP9/YS6h2x/QeTvYbndEdR b/OE9iZ4WHXr5ZHn1MLH2pgQUrLdaCFzyBwXIcv9ytoifT7fl2V4m3MgXCXuUawP+5lX /eom2N8J8IA21DgiDEi4pewaTcB0NnattmAheWt2kzHq+hNTlyEAcawEog/74bawcXAY g6hqoLJ2ajZgYRnWlasX/Y4rg6ms9doHn9ysRJBtmk662A0aMoyd7fdutUP10c0Olg+M X8A7h9pRxqo2w/HzXnTPzzzsWsGiiLako6RtAl13yUFw3PKduhx4m9dru2zLfJBvMDEG nkgQ== X-Gm-Message-State: AOAM531pkQ0XRLjYe/Ioxrws1PNzISFvxQi+RKvXTpAn6i30WZ8Bgz8y 1WWrLljOjS7Rfsc79I4dSdjvMZjMc/mtH6Wpfnw= X-Received: by 2002:a2e:9d4c:: with SMTP id y12mr535052ljj.80.1624317354790; Mon, 21 Jun 2021 16:15:54 -0700 (PDT) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id q16sm2008025lfu.103.2021.06.21.16.15.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jun 2021 16:15:53 -0700 (PDT) Received: by mail-lf1-f47.google.com with SMTP id p7so32702906lfg.4 for ; Mon, 21 Jun 2021 16:15:53 -0700 (PDT) X-Received: by 2002:a05:6512:15a2:: with SMTP id bp34mr498972lfb.40.1624317352941; Mon, 21 Jun 2021 16:15:52 -0700 (PDT) MIME-Version: 1.0 References: <87sg1lwhvm.fsf@disp2133> <6e47eff8-d0a4-8390-1222-e975bfbf3a65@gmail.com> <924ec53c-2fd9-2e1c-bbb1-3fda49809be4@gmail.com> <87eed4v2dc.fsf@disp2133> <5929e116-fa61-b211-342a-c706dcb834ca@gmail.com> <87fsxjorgs.fsf@disp2133> <87a6njf0ia.fsf@disp2133> In-Reply-To: <87a6njf0ia.fsf@disp2133> From: Linus Torvalds Date: Mon, 21 Jun 2021 16:15:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kernel stack read with PTRACE_EVENT_EXIT and io_uring threads To: "Eric W. Biederman" Cc: Al Viro , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 1:04 PM Eric W. Biederman wrote: > > For other ptrace_event calls I am playing with seeing if I can split > them in two. Like sending a signal. So that we can have perform all > of the work in get_signal. That sounds like the right model, but I don't think it works. Particularly not for exit(). The second phase will never happen. Linus