Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp243791pxy; Fri, 30 Apr 2021 04:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydFAgvzlxn06VDelqUxjZDOCBatNkAMiNbY3ds4+IRx+gXu3UGJ4t2dilasT5B5mrOmM5K X-Received: by 2002:a65:4985:: with SMTP id r5mr4244475pgs.65.1619782617118; Fri, 30 Apr 2021 04:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619782617; cv=none; d=google.com; s=arc-20160816; b=MPDJCA/Kr1VGbI8ZbdI5EogBM8b6ZrkhGD3LnjIhjvKiBgRsO22Tqz8buDFhavuztT 7d6q8CnHHthkPYH/B2VwtjfxXMm+3EHtTmNC6tLxS5ppCVuvlybvuvYDnulW3rNPR9An PM5Lxe+cLDuNOG1bbxRBFjwJPOFjDGf/MphzVmdsh4nvbN21CwfeQEJ2VeNF0H9/94Qn Kd/u5XFhQ8dP64W+p1My9XvjVhNUbF7rEf2HSWZQ5Y5PW7m9eFforpweiMs0xDSPHkp6 MVj5v+90Vs+GvtE5GlEH536QxvjvcCP86EQ9W1kqFuMskyBu+qVKjVzUVRBEJpfVuuT+ gEAA== 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=pknrEZADBe5pecUuZoUnEdYNMNO0TlrodWPYW8IYZMs=; b=IcvZyEtA0YaxfjtUBI/keVtAcNn0KQU9kMcBzslMCYtuhc2BVsZinhwClftV3bm9eB xdqPtVGK2PEw9FF1MEtLbSjrHp/ylKrIRQ7PSyedUz4V/0FfuB9pPN5iNDwbZYgkhD+A kUsqZqkL7uyY65tdzZXt1a0QG93JCuRF5/94xVcAMbeB1VhecNVCvTxtAxJ8W3pIJ7xS 33VuLY8l15TGZ34deE+sEgYe5MMmPt/f4Z2mN69ZbvSkUtyd0XBYXFGLLGfftrHsOa4E Op8uv7J4LYauvkqPHvLACBapGhefShHoljJs7q3VXEkFXpv0KIQxU2YvePxqKM5bf4vq GRaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n31si1871739pfv.88.2021.04.30.04.36.37; Fri, 30 Apr 2021 04:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhD3LfZ (ORCPT + 99 others); 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