Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1637938pxp; Thu, 17 Mar 2022 13:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ1KUZ0m+jHWxfToYWzQKFCU3L6ewhWYNtYuxNIcgvJIALfSMLeIB+RHQyxMqEleukN5UU X-Received: by 2002:a63:4560:0:b0:370:1f21:36b8 with SMTP id u32-20020a634560000000b003701f2136b8mr5039202pgk.181.1647548287508; Thu, 17 Mar 2022 13:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548287; cv=none; d=google.com; s=arc-20160816; b=yDna1EwkMWM8L96cQDfTV/h16+qJJQ1BwuniRu4JKD/TeH9aVayHH317MXMffYhBdi LvEbjulbA6uHdU0c22/e+Yg7hVHnM19K1YqXgc+GpT4kjSsYJisB5TWioiPuyXFH+tCK iam23s3boHFjCl3o8Leg8jsp6rr02+bAqf6orfwuUj3g+cRz1g+X/9BI7hGW3ms7CR0+ 1rBnLE1mle+6Ujai6dtS0rMEGZHvRQ0Q3rSJtmPMFj026M/HSu3Csc9muJr5p9oLKAl/ TmSqEK+1P230AovINLePfPTYethK449N8IGS3ofRqlsTnFoHbl1MhaVKokfE/hOztTZx 9U/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e/wjHIeaFe1pznkThc+2khcNJLCpp9FwQXQQp01F9Rw=; b=cDnn6gJHnBVsG6YeWXqK9SJeyk7/+ylIEWAu8Tks8HKi4dIzTQ/dIsK8dS5V10r+dE r4RwrQiWnW9BYeVD/uFSaxOdR8u4qwwsM1otbzCqNPt72YrP8173dI47eDsnm7pc+owt ugq9o94dkQNIX6k2DP0LnuqTH9gGUwkBe8f9nR/kvDGYP/bm6tWU4MBJXcC6n+ZzGJkh zg0lWwtphXrtbmgl575WSFC/d8jtO5otMzUvOG8RG6T21LVw3SlYtPXObBXn7pzMEP/u wpPo35OAr8xSeszaSc0lc2K6XOb2366BWMaUXyD7j8vNclZpmsUOJgC5CeFKkgyGbJn/ dq3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bV7Rf3JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f6-20020a631006000000b003816043ef39si3046093pgl.302.2022.03.17.13.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bV7Rf3JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C1CE14D7A7; Thu, 17 Mar 2022 12:59:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237152AbiCQSC5 (ORCPT + 99 others); Thu, 17 Mar 2022 14:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234218AbiCQSCt (ORCPT ); Thu, 17 Mar 2022 14:02:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F9C021C06B for ; Thu, 17 Mar 2022 11:01:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 22CF2B81F38 for ; Thu, 17 Mar 2022 18:01:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8830C340E9; Thu, 17 Mar 2022 18:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647540089; bh=JEW54fZood4KCilmzL14XcFvhgaIqBFTiEYg2oezTIk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=bV7Rf3JKOSC/BVgFIelEyR6gtZpzeCixm2JjCXRRWDmithtoFk2pL4glWOvo1C8Wj dhXPC3bHt4vudZ6fGesVg/VW9dcvdXNLTIFfvy3poCpeEBD5zl8AE00u0zi3y+H8ks HtqqOw82M9R1boqA/5gq7xB9Mg61XSNb/arUPbiwj7E4v+CmfzqgaK26PAQrnUvrrj +kn5s2RTZVmpquedmlzDxADO8vrH55XdlwwQd9tEXXNcuRUAyC3r+Y3pCKnIKc0rHK eJtkjqDmPIx/KF/KYjvTrgTfnKixq8hzzVhY/Uht3i+DDrObsqnZAqRc1pxvKtr1mc 4pt3wArryZW8w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 7C0BF5C08A0; Thu, 17 Mar 2022 11:01:29 -0700 (PDT) Date: Thu, 17 Mar 2022 11:01:29 -0700 From: "Paul E. McKenney" To: Oliver Sang Cc: lkp@lists.01.org, lkp@intel.com, LKML Subject: Re: [fixup! EXP srcu] 7bf8d644f8: WARNING:at_kernel/rcu/srcutree.c:#process_srcu Message-ID: <20220317180129.GR4285@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220312155919.GD1189@xsang-OptiPlex-9020> <20220314203814.GZ4285@paulmck-ThinkPad-P17-Gen-1> <20220316165342.GA1931135@paulmck-ThinkPad-P17-Gen-1> <20220317071608.GB735@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220317071608.GB735@xsang-OptiPlex-9020> X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 17, 2022 at 03:16:08PM +0800, Oliver Sang wrote: > hi, Paul, > > On Wed, Mar 16, 2022 at 09:53:42AM -0700, Paul E. McKenney wrote: > > On Mon, Mar 14, 2022 at 01:38:14PM -0700, Paul E. McKenney wrote: > > > On Sat, Mar 12, 2022 at 11:59:19PM +0800, kernel test robot wrote: > > > > > > > > > > > > Greeting, > > > > > > > > FYI, we noticed the following commit (built with gcc-9): > > > > > > > > commit: 7bf8d644f869260f63eaaedebabdd2054f59ecc4 ("fixup! EXP srcu: Check for too many zero-delay srcu_reschedule() calls") > > > > https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev.2022.03.01a > > > > > > > > in testcase: boot > > > > > > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G > > > > > > > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > > > > > > > > > > > > > If you fix the issue, kindly add following tag > > > > Reported-by: kernel test robot > > > > > > > > > > > > [ 27.088275][ T42] WARNING: CPU: 1 PID: 42 at kernel/rcu/srcutree.c:1555 process_srcu (kernel/rcu/srcutree.c:1555 (discriminator 3)) > > > > [ 27.089252][ T42] Modules linked in: libata(+) serio_raw i2c_piix4 parport_pc(+) parport ip_tables > > > > [ 27.090253][ T42] CPU: 1 PID: 42 Comm: kworker/1:1 Not tainted 5.17.0-rc1-00191-g7bf8d644f869 #1 > > > > [ 27.091212][ T42] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 > > > > [ 27.092176][ T42] Workqueue: rcu_gp process_srcu > > > > [ 27.092718][ T42] RIP: 0010:process_srcu (kernel/rcu/srcutree.c:1555 (discriminator 3)) > > > > [ 27.093653][ T42] Code: 6b f8 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 91 02 00 00 48 8b 43 f8 31 f6 48 83 f8 32 0f 86 02 fe ff ff <0f> 0b e9 fb fd ff ff 4c 8d b3 58 ff ff ff 48 b8 00 00 00 00 00 fc > > > > > > I had a feeling that the simple fix wasn't going to cut it, so thank you > > > for finding a scenario that proves that to be the case. Fix in progress, > > > to be folded into the original with attribution. > > > > OK, the attribution isn't quite there yet, but the squished-together > > commit is here: > > > > ea0098f19115 ("srcu: Prevent expedited GPs and blocking readers from consuming CPU") > > > > Does this version behave better for you? > > we tested this commit, found the issue gone. > please be noted the issue on 7bf8d644f8 is random and ~25% rate. > so I queued to run 100 times for this new commit, which is finally clean > according to tests. > > ========================================================================================= > compiler/kconfig/rootfs/sleep/tbox_group/testcase: > gcc-9/x86_64-rhel-8.3-func/debian-10.4-x86_64-20200603.cgz/1/vm-snb/boot > > commit: > feebd043ec6b ("Revert "srcu: Avoid expedited GPs and blocking readers from consuming CPU"") > 7bf8d644f869 ("fixup! EXP srcu: Check for too many zero-delay srcu_reschedule() calls") > ea0098f19115 ("srcu: Prevent expedited GPs and blocking readers from consuming CPU") > > feebd043ec6b9eab 7bf8d644f869260f63eaaedebab ea0098f191152c7fe3db5181a2e > ---------------- --------------------------- --------------------------- > fail:runs %reproduction fail:runs %reproduction fail:runs > | | | | | > :16 25% 4:16 0% :100 dmesg.RIP:process_srcu > :16 25% 4:16 0% :100 dmesg.WARNING:at_kernel/rcu/srcutree.c:#process_srcu Thank you for testing this! Tested-by? Thanx, Paul