From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1199711C89 for ; Wed, 17 May 2023 02:29:23 +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) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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