Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2051620pxu; Tue, 24 Nov 2020 15:57:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDCYMAeTi9eAPVhSi8DROfYytL+5tA4cDO9d4LiIk6owWcH4sM/YkC4Fr3/ecyuyHD93+F X-Received: by 2002:a17:906:8398:: with SMTP id p24mr819608ejx.401.1606262233014; Tue, 24 Nov 2020 15:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606262233; cv=none; d=google.com; s=arc-20160816; b=f6+TQQ2cj2szjNpKhaLMT1Zn8kS6WSuMuAT5myLPz4/5Gcyf6O+Kc23C6d46vhnXhK NCIwKmxNFh0iqsH1x+QXCJq7Bjpo0BFne1FZZK8fWQ6xEW40ofwn5Jw9dHYoIFi/AX5W 9djMTvSvjA3EoULV9qFtdvINMHRoR3nW1KSHnNKpbAwDbcc7mfXN+q4c8GUlaublb5/T GT9k21EBvVNMDGWt3wDYNJBTWqveKetSnkG+IlByNHcokkB21IVsR3odTVko59b55Rxg V3jsQ2CJJ3CJAT7rji/sWaeKi0oUVutkypvrcC2Et1Gab+rdUUySs2+H8cLTHnQK2Mta Ii7g== 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=oy9GM5J8lLFyHkQD3tKi2715+OHGZVyuFeesB9p4QH0=; b=jNjXszs4pqfhjiTjdkVhvMe3XSGxJw304Ts9XMAMcLGxAE2F4CIA+OGSXHMF5Tbmge XNCTZw+QM6mNBTaOniUaVrlQ3Pdv1Ybkb9zmVh9KJoLuqakgCiPdRGSfpKdKaeV+PJD5 Mv5rOAMYXJlTXwvQbgjr0HzXBuDXuCo/jyNw+MAp31pvYsnZ2HPSzL/Hx5ZciBq3WRpA KwjpJZ3XH8sulDBjyQA/e6W/SyhBzziVxW60vN3Mv2eFLr1h4a/i5WdKepL6UVaPsrZB dXRUkzJW29ChKZx1xVQU4+zXNlwtw8uoK8yvqwHN20UcG1cAglb5XL78nYbhECJ5dCEK lDfw== 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 gc15si255528ejb.621.2020.11.24.15.56.50; Tue, 24 Nov 2020 15:57:12 -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 S1731169AbgKXUcy (ORCPT + 99 others); Tue, 24 Nov 2020 15:32:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:46698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731112AbgKXUcx (ORCPT ); Tue, 24 Nov 2020 15:32:53 -0500 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 C409620678; Tue, 24 Nov 2020 20:32:47 +0000 (UTC) Date: Tue, 24 Nov 2020 15:32:45 -0500 From: Steven Rostedt To: Mark Rutland Cc: "Paul E. McKenney" , Marco Elver , Will Deacon , Anders Roxell , Andrew Morton , Alexander Potapenko , Dmitry Vyukov , Jann Horn , Linux Kernel Mailing List , Linux-MM , kasan-dev , rcu@vger.kernel.org, Peter Zijlstra , Tejun Heo , Lai Jiangshan , linux-arm-kernel@lists.infradead.org, boqun.feng@gmail.com, tglx@linutronix.de Subject: Re: linux-next: stall warnings and deadlock on Arm64 (was: [PATCH] kfence: Avoid stalling...) Message-ID: <20201124153245.5bda420d@oasis.local.home> In-Reply-To: <20201124194308.GC8957@C02TD0UTHF1T.local> References: <20201119170259.GA2134472@elver.google.com> <20201119184854.GY1437@paulmck-ThinkPad-P72> <20201119193819.GA2601289@elver.google.com> <20201119213512.GB1437@paulmck-ThinkPad-P72> <20201119225352.GA5251@willie-the-truck> <20201120103031.GB2328@C02TD0UTHF1T.local> <20201120140332.GA3120165@elver.google.com> <20201123193241.GA45639@C02TD0UTHF1T.local> <20201124140310.GA811510@elver.google.com> <20201124150146.GH1437@paulmck-ThinkPad-P72> <20201124194308.GC8957@C02TD0UTHF1T.local> 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, 24 Nov 2020 19:43:08 +0000 Mark Rutland wrote: > AFAICT, the issue is that arch_cpu_idle() can be dynamically traced with > ftrace, and hence the tracing code can unexpectedly run without RCU > watching. Since that's dynamic tracing, we can avoid it by marking > arch_cpu_idle() and friends as noinstr. Technically, ftrace doesn't care if RCU is watching or not, but the callbacks might, and they need to do the rcu_is_watching() check if they do. Although, there's work to keep those areas from being traced, but to do so, they really need to be minimal, where you don't ever want to trace them. -- Steve