Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2680502rwd; Wed, 17 May 2023 12:55:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eJ3AJaZRTlQEt4ef/49z2s3oHu0irHFtW3aUJRz50qYwa5PJlLDZcEeAAosodBvS7sJST X-Received: by 2002:a05:6a20:12c2:b0:105:8173:93a0 with SMTP id v2-20020a056a2012c200b00105817393a0mr18012250pzg.5.1684353350784; Wed, 17 May 2023 12:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684353350; cv=none; d=google.com; s=arc-20160816; b=p+vr6wbVCbgqcB8gJdj+AN4prSA3Xq0su/UJ4hJc8v5dSMeMk5EQe8zjPTfmUAT8nL unwc8Y4zefXk17c/eWggX28SjYtElS1jMvk/RX/YySrza84m1aQtdyR5ai4r8oFlGFQd iD5kC/HQge8LFEiIsGPzvehv3rGYthVBJUkqtLp29EuXFPQWaKQT1g9iRkRw9p4hegTH d9YIuS1IBunOnqMigJ6KtAxDxopJodJFal0n9PDZhECmlhml8DldeQVN7jJ1fRBj4fzx GHb6gXHrU8hSiLPN/Ast4Y/8L53P+0yK+C/F0JUuodycjYfYr1hnNYRpkttpzOwa/Gz3 QizQ== 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=EGKI6H/r7fSXnuBx9f0+4FVv9qKurvHdpDRXkzgKVVE=; b=AdmVcPuTqv22keHZ0YelYTFCoaV+Owhb6eUkNGJ+981V8HSLnIcswUpFMr+1j+Y8Qz Q4Tk5WPJKbya0Uec3vOo2hHg1A1r+PUs+OVUhPQbT/zDR2pprytRQNTKn7OqPNNCMS9w amgs4irrM6bafpj4yT7BrPfAQh4hHshMoAaKThV7pvDV/trCcmHSjJeQlFCgVs1rq8xT cAipZxDWWmX/Ig/jYuURicWBDg3/ezwY/jSHwlsvJnggPf6YLeYXeReNd45i+xBw8BnM 50R6e97rs62nW6CZvwDcEIFmxS1kz/OfsVIr05Z83Av9BAVJMH7fbQ5EqrMb79KpaUl2 9ZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dST0i2fL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw13-20020a17090b180d00b00232f57260c1si2829779pjb.1.2023.05.17.12.55.36; Wed, 17 May 2023 12:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dST0i2fL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbjEQTiC (ORCPT + 99 others); Wed, 17 May 2023 15:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjEQTiA (ORCPT ); Wed, 17 May 2023 15:38:00 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA8140D4 for ; Wed, 17 May 2023 12:37:33 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-96a9c44ec4bso77500466b.1 for ; Wed, 17 May 2023 12:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1684352250; x=1686944250; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EGKI6H/r7fSXnuBx9f0+4FVv9qKurvHdpDRXkzgKVVE=; b=dST0i2fL5crJmyksJX0862DQUmET9sHJlkPm04jxbIwsJnbNUW7+0b9DaPO9SxViNp 8CzG00bl4e2iNhYUUIqZpckBCyAUm20fVCmG2RA76lWUFaM4nC8fP1fK2o1BbU/ipu7m Bu3FNI0mAQY4PxO8q5NtnD+m9tmxVXzdQOtzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684352250; x=1686944250; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EGKI6H/r7fSXnuBx9f0+4FVv9qKurvHdpDRXkzgKVVE=; b=eBWZ45msNd0te36f9ttY+Gu4fVTYZtCPFExVXRV2O58xZ4cRhoTu9+7jVZAHuxfRgt Oxamh10POL6zZl5lG+i9iChFDejcEJ8QM4aUOvQYNxzZFcDga7g/LfC9YDmzMTG5Z+y8 Y9jYWaxajDq45UiUziwiMzKu+GS8hMf1sb33SsvDVggCupFNAwTP5+nFjtMm51g7IEzZ 9gyyvNvdrac2lt53gCndLS15pS20nnXvbnDpHD90RynAz1Qiane+hrMRcVD83R4RzXGP blfVEONWffGvsTBbjyYGLGMc5l9dWcQtSLkqrJDWJPDeLpU0Z9rbTHuqw/tIe4J7Kq2Z xjEQ== X-Gm-Message-State: AC+VfDxJiewVXED2v+OxQ9OSA73ddKnVkdciyHQCnpEKTX+fyAjYo8B+ 2cRyjytZeuSLQXwqXPlnpBp7y15K7alpBUsg0h8xulH7 X-Received: by 2002:a17:907:1c15:b0:966:4973:b35 with SMTP id nc21-20020a1709071c1500b0096649730b35mr3477809ejc.22.1684352250076; Wed, 17 May 2023 12:37:30 -0700 (PDT) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com. [209.85.218.52]) by smtp.gmail.com with ESMTPSA id fe18-20020a1709072a5200b00968242f8c37sm12674054ejc.50.2023.05.17.12.37.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 12:37:29 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-965b5f3b9ffso77973766b.0 for ; Wed, 17 May 2023 12:37:28 -0700 (PDT) X-Received: by 2002:a17:907:3f9e:b0:96a:2b4:eb69 with SMTP id hr30-20020a1709073f9e00b0096a02b4eb69mr3422885ejc.31.1684352248662; Wed, 17 May 2023 12:37:28 -0700 (PDT) MIME-Version: 1.0 References: <20230509163050.127d5123@rorschach.local.home> <20230515165707.hv65ekwp2djkjj5i@MacBook-Pro-8.local> <20230515192407.GA85@W11-BEAU-MD.localdomain> <20230517003628.aqqlvmzffj7fzzoj@MacBook-Pro-8.local> <20230516222919.79bba667@rorschach.local.home> <20230517172243.GA152@W11-BEAU-MD.localdomain> <20230517190750.GA366@W11-BEAU-MD.localdomain> In-Reply-To: From: Linus Torvalds Date: Wed, 17 May 2023 12:37:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tracing/user_events: Run BPF program if attached To: Beau Belgrave Cc: Steven Rostedt , Alexei Starovoitov , Masami Hiramatsu , LKML , linux-trace-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf , David Vernet , dthaler@microsoft.com, brauner@kernel.org, hch@infradead.org Content-Type: multipart/mixed; boundary="000000000000759fcb05fbe8d165" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000759fcb05fbe8d165 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 17, 2023 at 12:36=E2=80=AFPM Linus Torvalds wrote: > > .. this is the patch that I think should go on top of it to fix the > misleading "safe" and the incorrect RCU walk. Let's actually attach the patch too. Duh. Linus --000000000000759fcb05fbe8d165 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhs3trhk0 IGtlcm5lbC90cmFjZS90cmFjZV9ldmVudHNfdXNlci5jIHwgOCArKysrLS0tLQogMSBmaWxlIGNo YW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwgNCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9rZXJu ZWwvdHJhY2UvdHJhY2VfZXZlbnRzX3VzZXIuYyBiL2tlcm5lbC90cmFjZS90cmFjZV9ldmVudHNf dXNlci5jCmluZGV4IGIyYWVjYmZiYmQyNC4uMDU0ZTI4Y2M1YWQ0IDEwMDY0NAotLS0gYS9rZXJu ZWwvdHJhY2UvdHJhY2VfZXZlbnRzX3VzZXIuYworKysgYi9rZXJuZWwvdHJhY2UvdHJhY2VfZXZl bnRzX3VzZXIuYwpAQCAtNDM5LDcgKzQzOSw3IEBAIHN0YXRpYyBib29sIHVzZXJfZXZlbnRfZW5h Ymxlcl9leGlzdHMoc3RydWN0IHVzZXJfZXZlbnRfbW0gKm1tLAogCXN0cnVjdCB1c2VyX2V2ZW50 X2VuYWJsZXIgKmVuYWJsZXI7CiAJc3RydWN0IHVzZXJfZXZlbnRfZW5hYmxlciAqbmV4dDsKIAot CWxpc3RfZm9yX2VhY2hfZW50cnlfc2FmZShlbmFibGVyLCBuZXh0LCAmbW0tPmVuYWJsZXJzLCBs aW5rKSB7CisJbGlzdF9mb3JfZWFjaF9lbnRyeShlbmFibGVyLCBuZXh0LCA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