Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2475191rwb; Thu, 29 Sep 2022 10:37:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Gyk/y7xnS8rkDlBvDV2olIpBW1nBUPqgHxDGtV7SpXfi0TeLnEy7dpTxoyW5AnfKpXkUy X-Received: by 2002:a17:90b:1c88:b0:203:8400:13a9 with SMTP id oo8-20020a17090b1c8800b00203840013a9mr5049755pjb.46.1664473050749; Thu, 29 Sep 2022 10:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664473050; cv=none; d=google.com; s=arc-20160816; b=bUCQPegr6ziQkiIm+bTzSUzJP0rrX5QrKLac64hkmew9EsOO+0Ad6Tih7ul7htO3sk ee0m7xof0Hohil+TUcs/zq2QDiuP7gGxFe/NzGuEQPwYeHslrNhNg1SknTIzwblm0072 Y0RHb/01QWgDl+wlwba0QmPqslL3u+d8xRI0OV/fQiglKaxEwpuVDkjAbojZ4P7TD62M y2BJcNWj+zqjRp88CyfStsui2gHPxWDeaw+AWqZGDqcJvnDzq91inkaMub2KhUDRK++L l3GKMldgn4ewx8I0lebO+GoVJKoVPDvunJ4unrFAZ084BOrQkD/c3LXl9Et5ODDOEJWE IF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jHOs2wAv3TG5HWLRSVMUR2aCAtQJnRXtNmsQjkstKAk=; b=mopTn0oMKrjNJZsyIobG7QUhiHmO8A/eDXWjIvCfDOySuWJk02I070k8g2ZyHf0cmu aVpjl1Pzef16RRWBjx23scygHj756BmSPdTHWgwAPpbiXPpsb1Sk9t2BgTykJVbKE0q8 PB9C79Fjk3fEmLVNjIzZLYlXP0Ljq0KFU98wlNDxXy4+gSb7Bk1PDH4U0OZ319fZfBOp 77l6roeDIfWWWg/gNpdpDhzREwnsM8N9RQj4I+QslX20bPRR3tYoqlFYyWmc7smW+EOl DC57rqyuDIlPRrUOPmu1z8bt6pTU1T4HU5lqoNvhuf8VUp0xeWQ+frE2gguSC3bD/hYQ kN3Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a1709028f8900b0017b3392ca72si266264plo.323.2022.09.29.10.37.20; Thu, 29 Sep 2022 10:37:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236033AbiI2Qux (ORCPT + 99 others); Thu, 29 Sep 2022 12:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235910AbiI2Quv (ORCPT ); Thu, 29 Sep 2022 12:50:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15EC24F182; Thu, 29 Sep 2022 09:50:49 -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 6C4DD61FE4; Thu, 29 Sep 2022 16:50:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3110AC433C1; Thu, 29 Sep 2022 16:50:46 +0000 (UTC) Date: Thu, 29 Sep 2022 17:50:42 +0100 From: Catalin Marinas To: Liao Chang Cc: will@kernel.org, guoren@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, mhiramat@kernel.org, rostedt@goodmis.org, maz@kernel.org, alexandru.elisei@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 3/3] arm64/kprobe: Optimize the performance of patching single-step slot Message-ID: References: <20220927022435.129965-1-liaochang1@huawei.com> <20220927022435.129965-4-liaochang1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927022435.129965-4-liaochang1@huawei.com> 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 Tue, Sep 27, 2022 at 10:24:35AM +0800, Liao Chang wrote: > Single-step slot would not be used until kprobe is enabled, that means > no race condition occurs on it under SMP, hence it is safe to pacth ss > slot without stopping machine. > > Since I and D caches are coherent within single-step slot from > aarch64_insn_patch_text_nosync(), hence no need to do it again via > flush_icache_range(). > > Acked-by: Will Deacon > Acked-by: Masami Hiramatsu (Google) > Signed-off-by: Liao Chang > --- > arch/arm64/kernel/probes/kprobes.c | 27 +++++++++++++++++++++------ > 1 file changed, 21 insertions(+), 6 deletions(-) What's your expectation with this series, should the arch maintainers just pick the individual patches? -- Catalin