From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25314C433ED for ; Fri, 30 Apr 2021 11:34:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E55EF613F0 for ; Fri, 30 Apr 2021 11:34:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbhD3LfZ (ORCPT ); Fri, 30 Apr 2021 07:35:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:58670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhD3LfY (ORCPT ); Fri, 30 Apr 2021 07:35:24 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 07B1461423; Fri, 30 Apr 2021 11:34:33 +0000 (UTC) Date: Fri, 30 Apr 2021 07:34:31 -0400 From: Steven Rostedt To: Anup Patel Cc: Changbin Du , Palmer Dabbelt , "linux-riscv@lists.infradead.org" , Paul Walmsley , "aou@eecs.berkeley.edu" , "peterz@infradead.org" , "jpoimboe@redhat.com" , "jbaron@akamai.com" , "ardb@kernel.org" , Atish Patra , "akpm@linux-foundation.org" , "rppt@kernel.org" , "mhiramat@kernel.org" , "zong.li@sifive.com" , "guoren@linux.alibaba.com" , "wangkefeng.wang@huawei.com" , "0x7f454c46@gmail.com" <0x7f454c46@gmail.com>, "chenhuang5@huawei.com" , "linux-kernel@vger.kernel.org" , "kernel-team@android.com" , Palmer Dabbelt Subject: Re: [PATCH] RISC-V: insn: Use a raw spinlock to protect TEXT_POKE* Message-ID: <20210430073431.1bc4946d@oasis.local.home> In-Reply-To: References: <20210429061713.783628-1-palmer@dabbelt.com> <20210429123007.5144fc0d@gandalf.local.home> <20210429215451.yuey5gzmfh2dkzp5@mail.google.com> <20210429224742.391154ae@oasis.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Apr 2021 04:06:35 +0000 Anup Patel wrote: > This patch only takes care of ftrace path. > > The RISC-V instruction patching is used by RISC-V jump label implementation > as well and will called from various critical parts of core kernel. > > The RAW spinlock approach allows same instruction patching to be used > for kprobes, ftrace, and jump label. So what path hits this outside of stop machine? -- Steve