Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4700129pxu; Wed, 21 Oct 2020 03:08:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTkukfwbvry0i+VrLZuEKHCLdqpciymeekXzl5GNUnG46PTEg38+30frbEgUFaH2ok/RHF X-Received: by 2002:a17:906:934d:: with SMTP id p13mr2881496ejw.532.1603274923929; Wed, 21 Oct 2020 03:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603274923; cv=none; d=google.com; s=arc-20160816; b=SSL2gabczq0A+5OaI7IdRLo4YYudptbZHl54cL1Y4+H9aeLMfODOhHIfG68kXD+L29 zT/DanIso9sARZfMZJfy4bn2tu67xDZoRIg3u6xyNCNmVUmaqVViJ8Arr8nGFdBll88m 48UczI4otKM+jdDrFZH+Uyf2NyQnoVoeY4AtdOjkhzLZ+WrXJwgVejGZCjLaoFiLneW4 784WrqNypreMsds/B+yd07inkgK4EWxK/1N0sEk0njZX04g9NG9hA17uB6LFr1cZiBeu II5zVmhhcI41Ow4ip044DYhTJoz+4ESSjbn9czN5Zoi4xGjhqVDju5C7+kxTuPOGyYzK +l6A== 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=i5oXsE2JwdFuuLst2DkhXpweA3O5fWriwk2ru6jLle4=; b=UsZ64A56OdFgCJhzKAqaYf8JN7V4TTHzaVVRRH2vlaKORkuSOXpBasiDq6q1ZrCbTA XwzCx7F/DvtfpdBSUjBceXyCqy44Fp4XYJ045hZikD+1vTdjcdQEVxoy4vQcKenssr77 FFiEWB1VJmHL/MRHt5MRAm/qVIzXJsyVETsdWSyT8+l0f4te0YQXS8wiOCNc2sxR/5dI 28C/1sqvW/bnTQLc1elXAviW75Vp0w3w5aNk68KxEMwA6ZCy+wn65gT4wX4m+aSey9hb VC10BPzv0KGis3gGSDQTAOdTfKX0dQAQmd6d4YBcPodGC///shPqRWu4shFiLJ+nS01n MDxg== 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 y20si984610ejw.696.2020.10.21.03.08.21; Wed, 21 Oct 2020 03:08:43 -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 S2409599AbgJTUl0 (ORCPT + 99 others); Tue, 20 Oct 2020 16:41:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731327AbgJTUlZ (ORCPT ); Tue, 20 Oct 2020 16:41:25 -0400 Received: from gandalf.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 88D872224A; Tue, 20 Oct 2020 20:41:23 +0000 (UTC) Date: Tue, 20 Oct 2020 16:41:21 -0400 From: Steven Rostedt To: Guo Ren Cc: Atish Patra , Zong Li , Palmer Dabbelt , Paul Walmsley , Masami Hiramatsu , Alan Kao , Patrick =?UTF-8?B?U3TDpGhsaW4=?= , Guo Ren , Anup Patel , "linux-kernel@vger.kernel.org List" , linux-csky@vger.kernel.org, Greentime Hu , linux-riscv Subject: Re: [PATCH v4 9/9] riscv: Fixup lockdep_assert_held(&text_mutex) in patch_insn_write Message-ID: <20201020164121.32626e45@gandalf.local.home> In-Reply-To: References: <1602918377-23573-1-git-send-email-guoren@kernel.org> <1602918377-23573-10-git-send-email-guoren@kernel.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; 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 Tue, 20 Oct 2020 19:18:01 +0800 Guo Ren wrote: > > What platform are you testing ? We are seeing a crash while enabling > > any of the tracers multiple times > > on Qemu/HiFive Unleashed. > I use qemu for testing. I've changed dynamic ftrace mechanism from > mcount to -fpatchable-entry. > > The problem is made by the lockdep checking of text_mutex. If you are switching to "patchable-entry" you shouldn't need to use stop_machine for the updates. No? -- Steve