Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1350363pxb; Fri, 20 Nov 2020 07:29:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/J1dBn6OLkl2R78k6yuYbS7EZnvM7YKtH2tJz4tVnrF2wlFf5Mi81vRhZgdayjcieEhWb X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr36127925ejr.390.1605886143341; Fri, 20 Nov 2020 07:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605886143; cv=none; d=google.com; s=arc-20160816; b=s9sLowKoW5lGACPfYSAbdCluJ2YNjNlD5KOR5nEciA2TNX2XIqlVDwCTB3Au34+9eR /tIDukMYzmI8QxXsB9oJsRDB4C9M93LGRqijbNvfOqHHyAsg4F/AKOudxwHwG+timYHw VdNVhQMmNvdaghPIHeJ/JuIoQ/4+V7NMaREVZgCyQpoeexXvh3X1Dn0YJM+n89iO/xC/ jDlFS88Wql/FRQCce297m0Yj6X8lASYhZO8YPsjxkcSdVph9Uu9RLNCtBpKwfUkkErYh m9Aq2za30yS/+SQY+iB8SNZNbMXQ3MDVQOPBLzEqGoLoy9QbP6RUwmGy/lgA2hD1mFq+ IJdg== 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=jUaqPamdyq03oB2jdnPKrIcFnN9DQ88uv9rRhBPBGuI=; b=Z7f+78RtiK2HjKq9ElSL20ShaqorT3ptE/TKohxIQqxpUExIYFE8PJGFEhaUqFD0Fs NyJUMk/VbnTIiUNqNjBfrtxFUz8s8ZODZht9oL32IC+J3sdMWDHFtyxtPJxgKwlfTen9 0QQSstiH6EpEFaLtgaUpdpTmkbMDdw6E1eP0Zl3lD+Sgu99n+LWLQLePPxYrU3oaG8Zd tL+NjpE0AaLus2t6Zj+Li+BBNFWufp83oJMWGsBRw2e3E6jN5SgvaImtevADykWBASvh hYlmyAnRjjPgBxgMHCQw6oFTcFMvyM+NjwVvkPaFXaJ525DN6PdOVJes26SwD0I0Zh59 j/Bg== 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 f13si1912442ejb.560.2020.11.20.07.28.39; Fri, 20 Nov 2020 07:29:03 -0800 (PST) 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 S1728723AbgKTP0S (ORCPT + 99 others); Fri, 20 Nov 2020 10:26:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:33240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728628AbgKTP0R (ORCPT ); Fri, 20 Nov 2020 10:26:17 -0500 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 80E0322252; Fri, 20 Nov 2020 15:26:15 +0000 (UTC) Date: Fri, 20 Nov 2020 10:26:13 -0500 From: Steven Rostedt To: Marco Elver Cc: "Paul E. McKenney" , Anders Roxell , Andrew Morton , Alexander Potapenko , Dmitry Vyukov , Jann Horn , Mark Rutland , Linux Kernel Mailing List , Linux-MM , kasan-dev , rcu@vger.kernel.org, Peter Zijlstra , Tejun Heo , Lai Jiangshan , linux-arm-kernel@lists.infradead.org Subject: Re: linux-next: stall warnings and deadlock on Arm64 (was: [PATCH] kfence: Avoid stalling...) Message-ID: <20201120102613.3d18b90e@gandalf.local.home> In-Reply-To: <20201120141928.GB3120165@elver.google.com> References: <20201117105236.GA1964407@elver.google.com> <20201117182915.GM1437@paulmck-ThinkPad-P72> <20201118225621.GA1770130@elver.google.com> <20201118233841.GS1437@paulmck-ThinkPad-P72> <20201119125357.GA2084963@elver.google.com> <20201119151409.GU1437@paulmck-ThinkPad-P72> <20201119170259.GA2134472@elver.google.com> <20201119184854.GY1437@paulmck-ThinkPad-P72> <20201119193819.GA2601289@elver.google.com> <20201119213512.GB1437@paulmck-ThinkPad-P72> <20201120141928.GB3120165@elver.google.com> 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 Fri, 20 Nov 2020 15:19:28 +0100 Marco Elver wrote: > None of those triggered either. > > I found that disabling ftrace for some of kernel/rcu (see below) solved > the stalls (and any mention of deadlocks as a side-effect I assume), > resulting in successful boot. > > Does that provide any additional clues? I tried to narrow it down to 1-2 > files, but that doesn't seem to work. > > Thanks, > -- Marco > > ------ >8 ------ > > diff --git a/kernel/rcu/Makefile b/kernel/rcu/Makefile > index 0cfb009a99b9..678b4b094f94 100644 > --- a/kernel/rcu/Makefile > +++ b/kernel/rcu/Makefile > @@ -3,6 +3,13 @@ > # and is generally not a function of system call inputs. > KCOV_INSTRUMENT := n > > +ifdef CONFIG_FUNCTION_TRACER > +CFLAGS_REMOVE_update.o = $(CC_FLAGS_FTRACE) > +CFLAGS_REMOVE_sync.o = $(CC_FLAGS_FTRACE) > +CFLAGS_REMOVE_srcutree.o = $(CC_FLAGS_FTRACE) > +CFLAGS_REMOVE_tree.o = $(CC_FLAGS_FTRACE) > +endif > + Can you narrow it down further? That is, do you really need all of the above to stop the stalls? Also, since you are using linux-next, you have ftrace recursion debugging. Please enable: CONFIG_FTRACE_RECORD_RECURSION=y CONFIG_RING_BUFFER_RECORD_RECURSION=y when enabling any of the above. If you can get to a successful boot, you can then: # cat /sys/kernel/tracing/recursed_functions Which would let me know if there's an recursion issue in RCU somewhere. -- Steve -- Steve