Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1541255rwd; Tue, 16 May 2023 19:57:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LAA9bkxLCouPYox1BRv68LykQXJvZkgTyiak7EBxrrgDMV6/nYRiBlKTu+HLKisFocYpd X-Received: by 2002:a17:902:d34b:b0:19f:188c:3e34 with SMTP id l11-20020a170902d34b00b0019f188c3e34mr40180878plk.53.1684292243474; Tue, 16 May 2023 19:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684292243; cv=none; d=google.com; s=arc-20160816; b=goXcxu2tulGTa/6YTH32SKhxQBnOmedENMyodB64FA49AzFR5e8ehRbf6MktiL5wqD xSmFhrTOFUg3pmk839RpdFue29OG+nnKoKiTNcW4QaL8NU0vwT8+eR67mwAMEbWkv9T+ OsMHcoiWczq+FF15N8TSZQDRP/EnVUedjKNjksamuqYupMmcSt5PVxznL3ATYOqafY1n 4Z7vzvFFHFlxyw6Rxl4gccKzea7t/5Lmu2c/9UEzpsjyI0fjbDAj3xO5uxzzPAQ0ClDl mcitI3wqyFRPntqmE6mF+4EeB9n58X00O6WYlpcZw7Uc+t4vxvgYVHGKpAfl9vVHcp1k dBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=IxoWzqojkFQ02JhIXFXOp8fKqIE7zu1fl2XDOOJFi98=; b=n580eC1Z+v0xwGZnldUNzXS3Rj8jaGF11m8hInXxgJvsNe8vsZbaYLUTVWZ08lUsts kxDK12B73Zuw1Ah3a148uMOxInve6E1BkBL7qk0YmOA24rX8V66tA3W7tUtN++Ytx9fR PI/zND/S3uNqCnnaqL7dOMFTwVt8+/AvHu2pzS6KWoQPrqqColYPpHkM1T+88kCF//9b mDJbsJ88t+OfX6nogBxkLoPZH24ljA3AiyeEHmc0WRmdzd3HNR5Y7XCHNlrtCZETylsV aIXMiVvIwAX4EmE22qC7+H47VjNP1k7odPDMl9zliaTnNs83USaMAkKhBDeYukzusYMt csdg== ARC-Authentication-Results: i=1; mx.google.com; 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 li12-20020a170903294c00b001ab007aff67si18843371plb.32.2023.05.16.19.57.12; Tue, 16 May 2023 19:57:23 -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; 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 S231797AbjEQC36 (ORCPT + 99 others); Tue, 16 May 2023 22:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbjEQC3y (ORCPT ); Tue, 16 May 2023 22:29:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45DC1BF6; Tue, 16 May 2023 19:29:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5B49C640EA; Wed, 17 May 2023 02:29:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 277C9C433EF; Wed, 17 May 2023 02:29:22 +0000 (UTC) Date: Tue, 16 May 2023 22:29:19 -0400 From: Steven Rostedt To: Linus Torvalds Cc: Alexei Starovoitov , Beau Belgrave , 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 Subject: Re: [PATCH] tracing/user_events: Run BPF program if attached Message-ID: <20230516222919.79bba667@rorschach.local.home> In-Reply-To: References: <20230508163751.841-1-beaub@linux.microsoft.com> <20230509130111.62d587f1@rorschach.local.home> <20230509163050.127d5123@rorschach.local.home> <20230515165707.hv65ekwp2djkjj5i@MacBook-Pro-8.local> <20230515192407.GA85@W11-BEAU-MD.localdomain> <20230517003628.aqqlvmzffj7fzzoj@MacBook-Pro-8.local> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, 16 May 2023 18:46:29 -0700 Linus Torvalds wrote: > So don't even ask for other GUP functionality, much less the "remote" > kind. Not going to happen. If you think you need access to remote > process memory, you had better do it in process context, or you had > better just think again. So this code path is very much in user context (called directly by a write system call). The issue that Alexei had was that it's also in an rcu_read_lock() section. I wonder if this all goes away if we switch to SRCU? That is, sleepable RCU. -- Steve