Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp463567pxb; Thu, 21 Apr 2022 03:44:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUeTPI656xQxssTxKDu/GiZmj7NB/lEkXPXHR+Ir7UrXGLwL9/NblpUqbPgcBeRtkh7fry X-Received: by 2002:a17:902:eb8c:b0:158:4cc9:6998 with SMTP id q12-20020a170902eb8c00b001584cc96998mr25297803plg.35.1650537898786; Thu, 21 Apr 2022 03:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650537898; cv=none; d=google.com; s=arc-20160816; b=wESfbPKbtjzu2ktlYC1JrOywiaSmhcpQIJ7k6J7m+EQpsuD1txlHHpa59uAdeEIN5i cm4POe0ZfmIZtW8iLIlU3SLpWymYOndwEQzSNUh5VZJCSkJvsJquzxqUB2r/vfFr+5hA Qs0dXqNS9KV1crIixbM81F/vub7VL+Q5VoUmOiU0teMR2C4Me09tdTpFWVQMYVveDoHW KXBTpX2Z0bWSLrRa+17ANpqhVapXVwM96xV8NnUfodfWXfS+mAXIEG1hQBOaIBB6YG/A 4MDk1upfvcXt/QZT8Ye+oOm+yQXd971y6p9eBcrwzdoSXtoZOD4d8eSRSZFPR/UCY1jr EXlQ== 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=CTrVwkbFqFnynv+3YPM6YtPmYVPI/SBUX7YnZX9Jhn8=; b=lxoAP6e/O9YOev/9bFcDqRTFATbQ48IlJYC7DeqqnHKQRrbEO23TqVzWi+Cm2ZCnAZ zASMNpbWEPjFAJysfPNJ7G3bWtha5v6sJMnMINAsRgDysPRi8S38sHXJt3+HCUwVA3FZ VtBf81z+J1JBIkYnzZRH7+VeuJEcGKDIZHm4AazvKl3IYfybsW3hDBhpA1NoapiXQVcU aGad4iJ0PtZYH+j/VfSpEL4me/8+mgVkgqjcUcpQz2vmAiTQOWUi9D3VGGgRT1Mq7ETw SAzCOYOqUe51wWRoeyxI5i/HHzoJvyHpBynGwnix6IjfAzIygoZKju1p3hlf1/78dUsb rdeQ== 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 j13-20020a170903024d00b00153b2d16538si5409938plh.320.2022.04.21.03.44.45; Thu, 21 Apr 2022 03:44:58 -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 S235881AbiDTPr7 (ORCPT + 99 others); Wed, 20 Apr 2022 11:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380366AbiDTPrq (ORCPT ); Wed, 20 Apr 2022 11:47:46 -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 478662ACF; Wed, 20 Apr 2022 08:44:58 -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 CC3316194F; Wed, 20 Apr 2022 15:44:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1888CC385A1; Wed, 20 Apr 2022 15:44:55 +0000 (UTC) Date: Wed, 20 Apr 2022 11:44:54 -0400 From: Steven Rostedt To: patrick wang Cc: paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu: ftrace: avoid tracing a few functions executed in multi_cpu_stop() Message-ID: <20220420114454.69ab108c@gandalf.local.home> In-Reply-To: References: <20220418043735.11441-1-patrick.wang.shcn@gmail.com> <20220418143404.55c8fcab@gandalf.local.home> 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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Wed, 20 Apr 2022 18:34:34 +0800 patrick wang wrote: [ I had a power outage yesterday, just catching up now ] > Sorry for the format. Need get used to gmail. > > These functions are running within stop machine and ftrace modify > code by using stop machine to ensure the safety on some > architectures(e.g. RISC-V). These functions' instructions will be > modified during ftrace modifying code. When instructions are being > modified, they shouldn't be executed typically. Or the executor > may behave unpredictably. Interesting. On x86 when we used stop machine[*] it was not an issue to modify the code that is being executed in stop machine. I'm curious to exactly what the issue is if something does get traced in the stop machine processing. Why does it crash? -- Steve [*] You really should come up with a better way than stop machine, because the stop machine method is really disruptive, can you not use the break point method for updates?