Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5817715rwl; Tue, 11 Apr 2023 10:18:57 -0700 (PDT) X-Google-Smtp-Source: AKy350af7RVuNTFeCkgjZuS+7bHm7C+fCr4BvkuhagUJgG+uRpgog0J6645x2mGJi/2QwgkHK9kF X-Received: by 2002:a17:907:742:b0:930:60ba:d4b with SMTP id xc2-20020a170907074200b0093060ba0d4bmr15191655ejb.37.1681233537237; Tue, 11 Apr 2023 10:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681233537; cv=none; d=google.com; s=arc-20160816; b=v3BOxtqKUJck44KvoXqpkHyoq47NJ60ymRK34hb1I89VHo5Um7ADy4yXUJKmjfx9uJ mDbZn6/1GKcMWAdjx1eWYGQ8EEK8YpUuPszPF5AIfdh8vtyEtYvgn8XkLZQL1Ccvjzu5 WZLQ1kA59ifdeZRJvTS9pTAXiW7OMbz0db4q4upU1MMc9DaRNTC45jbrkjTIuU7tYSyt GAa3nq8nQRotY6EYSJAPI9Gkononx1VY4agDNwuv99M57olnfuHQQgLh/0blp/ZFDN9T Y9HgLgsmahesN34krSjfsxvcIJ0qbjTHOHj3daxqSBrpLcwIK0AuO2IwOKHpB9vyXfJT Dq6A== 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=qlYx4wAjqWjULy3tjzRZrkAc1ujoVgyAyjQT8Pb/JT4=; b=JqRyDZ0Qv4aYtXroDINLsXrEqnCxgj//DlBqtC+DJ3B/XH4UZuK+Cu27phNoj3V8yu IaifM4vXGyOJSCyKm0BPP0wdAyqqH9heTuPbc5/OqLESYL4mosNSHqMSf8alW6cDcmWe 0Nw6bJ/KsAic99omkPrskDJzyQwn4d8ZX7xsqpC3ftgOnEAt6VhYY5R+8hyAcodEuxqD cz9FUvqmiRAJZYHhTaOA8+3FtRMMAJxqGoAP1cfE3gYCnQQEP8NSxZrjNDAzPaHrZcyU TwD7/+RbwGbANZSZ3NNi3WP2W3ttAoohsKO8/IVbCXmO7itlCeOY4uEgre0YJQKJRb8Y PXuQ== 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 m3-20020a170906580300b0093defbd6280si6644594ejq.1031.2023.04.11.10.18.32; Tue, 11 Apr 2023 10:18:57 -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 S229896AbjDKROo (ORCPT + 99 others); Tue, 11 Apr 2023 13:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjDKROm (ORCPT ); Tue, 11 Apr 2023 13:14:42 -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 43E944228 for ; Tue, 11 Apr 2023 10:14:41 -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 C4735621E4 for ; Tue, 11 Apr 2023 17:14:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AB5BC433EF; Tue, 11 Apr 2023 17:14:39 +0000 (UTC) Date: Tue, 11 Apr 2023 13:14:37 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Mark Rutland , Mathieu Desnoyers , linux-kernel@vger.kernel.org, "Jose E . Marchesi" , Nick Desaulniers , Sami Tolvanen , Peter Zijlstra Subject: Re: [PATCH v3] tracepoint: Fix CFI failures with tp_sub_func Message-ID: <20230411131423.37b001f7@gandalf.local.home> In-Reply-To: <20230408230344.06f9c6c95d4659b2f5363ba0@kernel.org> References: <20230324123142.7463-1-mathieu.desnoyers@efficios.com> <75dbeff6-fd0c-aec1-5821-919088eda6c4@efficios.com> <20230404162232.1b2f4c2f@gandalf.local.home> <20230408230344.06f9c6c95d4659b2f5363ba0@kernel.org> 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=-2.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Sat, 8 Apr 2023 23:03:44 +0900 Masami Hiramatsu (Google) wrote: > I think we need another stub function similar to the original patch, because > the __tracestub_* functions are usually not called back. Even if I enabled > the static key to enable the stub callback, if user sets another callback > handler to the tracepoint (e.g. enable trace event on it), the __tracestub_* > function is not called anymore. > > Thus I think we just pick this version and add another patch to introduce > __probestub_* functions in macro, and fprobe on it. This new stub function is > something like the original one so that it doesn't break CFI. And it will be > registered to tracepoint when the new fprobe based dynamic event is enabled. > If we are going to add *another* stub, then no, I don't want to use it. But I don't see why we can't use one stub for both? What's the issue you are having? -- Steve