Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3933777ybb; Mon, 23 Mar 2020 10:20:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuoMyMfTlAZw9ZfqwcsLuS0vt/iaaqvSXpLe7CuatR/eYxzR3jdaR4AkC5bM3R9eS//zuYU X-Received: by 2002:a9d:1988:: with SMTP id k8mr7589020otk.4.1584984005528; Mon, 23 Mar 2020 10:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584984005; cv=none; d=google.com; s=arc-20160816; b=RwIpTVDR+1R8rYj/+yxoxj+qv8wr0FP9Ykg25fhnTdqhaDYDBvKdcHEZjXntQA3njR EnrTIKN1sAvOp05xwV9yVmaLx9dHjIvNLDNYQFQLfjj4SsSK00CrMso1qY0z7km4Vw3Z uhZHmfDU9L/ic9fHkQBrJjS2+6O1YUj1wNTWlshrUHDclxDA9fCm2FnRwgmPjNm2hGEE +AoDbCb40EuiiXraktzcoqgevl4MWg9KClELiZQ7NNnR6hFvuQXVTsAx0PyN0OA4UG+k zD1kY1Zd39sc8EbhjcvH5VfUgT5xrOrhza/17De5DCaRnZaDSbqS1asmC60dZPPGSA4/ v6Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=cQkQQ4Y1Enrr8dj9jnEY4VK92Vu2vhRC8RsZkm7buPE=; b=OUQ9iZ0/YGnHIiRorsHH4868JNqUZo/DBONvhdck++JCPK3sqUbHiidV8uY30F1kW9 /1p6q+vQVmdmX3jMSq7OAWyIIdMMAxTHkh5aQd1doaLTcdyuJqjJu2/WjdkS1PsfbxMc FvpFLXB7afYSq4ZHfrR7vH4TVho3UIrvqL8m70VkGMdc7eb+FD+ATH0lwjNwN6jG79ib Q1t0Kp6pQ37hbybjHOjcF6SB44VbX/3WZR7P8AUFRySZ/FA2PHwugwf4pRcFANBhhKlf zAOW9JFzlchjTHUiHUFaIyYcXEO0mxp/M9lqEBhUgO5FBBM/Vy1iiScoJsxMZeiWShZT wXGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y6gPuI8X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u28si1070897otg.14.2020.03.23.10.19.52; Mon, 23 Mar 2020 10:20:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y6gPuI8X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727663AbgCWRRx (ORCPT + 99 others); Mon, 23 Mar 2020 13:17:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:50610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbgCWRRw (ORCPT ); Mon, 23 Mar 2020 13:17:52 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 1F54720722; Mon, 23 Mar 2020 17:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584983872; bh=KcCLdSNLDw74He1EmOUNqPpOZ07dejFOpJQUk5cPJ5w=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Y6gPuI8XMrMkQCp4S2oaerKqqo4f2OfebD1lgtLUF7jmFxiCSto8DX+b+c8pL88vL 92AYoT/zYKUTmoeprgE4JfAWCxnarhdoJd/Q+nP1iUYwHI2fyvc2kqZttnB7I7se9T furFmlhBINS8j9cYImZ/dR1A8hHUacT/j0akvGNI= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id D840F35226E4; Mon, 23 Mar 2020 10:17:51 -0700 (PDT) Date: Mon, 23 Mar 2020 10:17:51 -0700 From: "Paul E. McKenney" To: Qais Yousef Cc: Davidlohr Bueso , Josh Triplett , linux-kernel@vger.kernel.org Subject: Re: Hit WARN_ON() in rcutorture.c:1055 Message-ID: <20200323171751.GL3199@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200323154309.nah44so2556ee56g@e107158-lin.cambridge.arm.com> <20200323155731.GK3199@paulmck-ThinkPad-P72> <20200323170609.w64xrfahd2snfz6h@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200323170609.w64xrfahd2snfz6h@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 05:06:10PM +0000, Qais Yousef wrote: > On 03/23/20 08:57, Paul E. McKenney wrote: > > On Mon, Mar 23, 2020 at 03:43:09PM +0000, Qais Yousef wrote: > > > Hi > > > > > > I hit the following warning while running rcutorture tests. It only happens > > > when I try to hibernate the system (arm64 Juno-r2). > > > > Hibernating the system during rcutorture tests. Now that is gutsy! ;-) > > Hehe was just a side effect of testing the cpu hotplug stuff :-) > > > > > > Let me know if you need additional info. > > > > 1. Do you need this to work? If so, please tell me your use case. > > Nope. It just happened while trying to stress the cpu hotplug series I just > posted. > > > 2. What is line 1055 of your rcutorture.c? Here is my guess: > > It's 5.6-rc6, sorry should have mentioned in the report. > > /* Cycle through nesting levels of rcu_expedite_gp() calls. */ > if (can_expedite && > !(torture_random(&rand) & 0xff & (!!expediting - 1))) { > WARN_ON_ONCE(expediting == 0 && rcu_gp_is_expedited()); > if (expediting >= 0) > rcu_expedite_gp(); > else > rcu_unexpedite_gp(); > if (++expediting > 3) > expediting = -expediting; > } else if (!can_expedite) { /* Disabled during boot, recheck. */ > > If it's something you don't care about, then I don't care about too. I just > thought I'd report it in case it uncovered something worthwhile. Well, my guess was wrong. ;-) This is instead rcutorture being surprised by the fact that RCU grace periods are expedited during the hibernate process. I could fix this particular situation, but I bet that there are a number of others, including my guess above. One approach would be to halt rcutorture testing just before hibernating and restart it just after resuming. Thoughts? Thanx, Paul