Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1880277ybk; Sun, 17 May 2020 03:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdzmgLGxzXNhtc7vbOpTP47Al9kQZPrR5PlLYD9WiHFq1FRANhFCxNpv1G9xMyQ6Td4zk9 X-Received: by 2002:a17:906:474f:: with SMTP id j15mr11053980ejs.58.1589711624740; Sun, 17 May 2020 03:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589711624; cv=none; d=google.com; s=arc-20160816; b=0znT1M6nkWR2yGciFOe8LsQCphgT8g3628trL+g5BgBkl+5L9faMbg0g84m0W0ovcV fYO5UEtNHANpJs2wDyFTDK1y4pU7QzDkVby1uo3MWn65/Qjf4cZvrJNUoe1gwfvH5Kko U1qSAy2NQ5Ot/2sRlKtSZWA8/fjlWilMA19SSZlOA8ab+orm6emS0ga9l0I6Bxs4kvsb RsmFy/uwh2GLjCiSFsLxpz5s7YpAYfp/2SeRdPxl/RjL3Y2ocqDqeE9YWnfPy8fVHiSP it9s2Y9tmy7l3CbzhyVLSP0TTUXxCnI4xs7rzpr40Y1n2Vnwfqw9Fm2jbgo5y5IqnCHT K53Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=+O06AgNHqkRBBd/KzJwX9Dfd2/RiF9FgkZMzpFefghU=; b=wpFQFPwJDlnrK0204z5hzQdlLwY6/ZyAMjdiqcpH9M/NEzcx3hQchw43SVFiftrxmR BN4Dh7ZtLCViAh7oFWoiBNxUgXvpGe7WBQrNEEWockWuejHF5NYFAGgIf9vnPQjI/76h KPVYWZPRxpUV7tODfK4gkiMzOK8n6jMdM+KLiqJuEe1kb2GI+k4S3KVh4N/FizX/wkCo 4WyW8sY+uxXU/sSJ7EtDxdhaTxL1eE/iS0/J9MME2GDLdDvkQWRnsQsn0hCMKT0Dpf4D LYmBiRzsGpZiZYBCXPQIWlvCADnTXqcCzlElUIjN5ProdN8yQHNdV++SC/W0FUZnWWUd gndQ== 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 ks4si4751866ejb.139.2020.05.17.03.33.22; Sun, 17 May 2020 03:33:44 -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 S1727850AbgEQK1a (ORCPT + 99 others); Sun, 17 May 2020 06:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727081AbgEQK1a (ORCPT ); Sun, 17 May 2020 06:27:30 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5FC9C061A0C; Sun, 17 May 2020 03:27:29 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jaGVI-0001pW-Da; Sun, 17 May 2020 12:26:44 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id CBD0A100F17; Sun, 17 May 2020 12:26:43 +0200 (CEST) From: Thomas Gleixner To: paulmck@kernel.org, "Joel Fernandes \(Google\)" Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Frederic Weisbecker , frextrite@gmail.com, Ingo Molnar , Josh Triplett , kernel-team@android.com, Lai Jiangshan , madhuparnabhowmik04@gmail.com, Mathieu Desnoyers , peterz@infradead.org, Petr Mladek , rcu@vger.kernel.org, rostedt@goodmis.org, vpillai@digitalocean.com Subject: Re: [PATCH v3 0/5] RCU dyntick nesting counter cleanups for rcu -dev In-Reply-To: <20200516171223.GC2639@paulmck-ThinkPad-P72> References: <20200504120505.89351-1-joel@joelfernandes.org> <20200504171532.GR2869@paulmck-ThinkPad-P72> <20200504174413.GA8883@paulmck-ThinkPad-P72> <20200516171223.GC2639@paulmck-ThinkPad-P72> Date: Sun, 17 May 2020 12:26:43 +0200 Message-ID: <87wo5adfh8.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paul, "Paul E. McKenney" writes: > And I have allegedly resolved the conflicts with Thomas's and Peter's > series, or at least the noinstr-rcu-nmi-2020-05-15 branch of that series. > At least one conflict was completely invisible to "git rebase" (but > fortunately blindingly obvious to the compiler). This naturally makes > me suspect that additional adjustments might be needed. Especially > given that misplaced instrumentation_begin() and instrumentation_end() > calls are invisible not only to the compiler, but also to rcutorture in > my setup. (For example, tracing before instrumentation_begin() or after > instrumentation_end() is a bug.) there is tooling to verify that. If you merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git entry-v7-full into your dev branch (trivial conflict) and after building it, run: objtool check -fal $BUILDIR/vmlinux.o Note: This only covers built-in code. So if you have code you want to check make sure it's not built as module. Just did that and it complains about: ../build/vmlinux.o: warning: objtool: rcu_eqs_enter.constprop.0()+0xa9: call to rcu_preempt_deferred_qs() leaves .noinstr.text section But that's even the case on my branch without your changes. The call to rcu_preempt_deferred_qs() is definitely before instrumentation_end() so this needs to be investigated on the objtool side. Peter? Thanks, tglx