Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6997714rwr; Tue, 2 May 2023 08:11:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iw/dYyk4kq2JI8fTFqUelgk8Itb38uKafiL4KyLreb6NJLBs3IrSoi9uLNJdunOPVndVG X-Received: by 2002:a54:4506:0:b0:38c:ab8e:da5b with SMTP id l6-20020a544506000000b0038cab8eda5bmr7870463oil.12.1683040275058; Tue, 02 May 2023 08:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683040275; cv=none; d=google.com; s=arc-20160816; b=d91n29fpziS95IhVfsodzgZqzZ0kh9+qEe66ILK5hIKLcRwz7OCL6yqCmVLbqNg9Cb WBNTBtbNk5m938qrfWj1yUDkc2J753K+fXkDzd4dbUvpsdFg9/OSP9E3JV8QDaVVO4IJ wfhNUQ30l0YjscHeXOyr21q2pSkUzRyASryJRW9O0SeVqYlGz32Jt0YIDZ9gYi+lvXMU oTTLbfutBl9ZusTY97/ghetF7JQ86moPlE0wMWm55eGUM6e9MNy2CCGELulZ6yyYS/cQ O3vNoWM7N2DDGJMXzGru3/LGpvT1yWYpLolPm7lKm8KrB0hlPTkNzjg9DH3GkAVPz3eb BgEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=cfBsAGpRXFX3Iqed0oeLIM1q8SnmBVNgKImTrWph7ys=; b=NMqnCa3qbBbEmxuyEZIKgJNl1c/KTj0uEwEYFY4MGdMPKfhWrCWse4K1qN5wwSPzb1 H5ucG3b0x4y2ki5jQBxImZdCqNr5qPa772VSVjtCmxUjRM/66Yc9wHgYOgdTn1rSQKRA gxElkWLmYj2zIgPDiNn+7ac6UOw0/ID2vGYNDC7j2Jk7idvonzVISDEmyhgWK3pv6x0T ky95wtOZwmg2gz/odDjntvLyTx5eZbDw7TbD4ehOCXb5o+uTRznDF4M4Jwo6o8pWP81z FlF+6n/LKBgk0FucTojf14l07C0RiINLEcP2WTuWJKF4Cu5oZeMQj0+ChJDxeul39gtM QJRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L+LxLoS7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020aca1a19000000b00386efac2cb6si21294894oia.242.2023.05.02.08.10.51; Tue, 02 May 2023 08:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L+LxLoS7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjEBPGc (ORCPT + 99 others); Tue, 2 May 2023 11:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233986AbjEBPGb (ORCPT ); Tue, 2 May 2023 11:06:31 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DED5430F1; Tue, 2 May 2023 08:06:17 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-63b5c4c76aaso2858288b3a.2; Tue, 02 May 2023 08:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683039977; x=1685631977; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cfBsAGpRXFX3Iqed0oeLIM1q8SnmBVNgKImTrWph7ys=; b=L+LxLoS7h/tl6nAWBs0gTbJ1H4N0ce4HbF3BC1NXmG8821bTevRIf2S5vMWct1CrAH D7wJnuy9OeFP80iArWd4fQsmQwxC6kJX53RzRgWUNRFn+R/kElQ3Nwxf3B+Y8Uz6F+r9 3Tu0LRZlY7vaXyA6+BGFgOiaaZxgz6fsc2s1up3U8xSUIQSmr1YBQhLHGzvLAtTPOLnb HK/hI3oKA1TaZ7MfPfjmDS7KgZzTjAr04RL7c+sfOk7DeJau13z91lWyFNfAEUNHNRvN ntZnRgqFPchzp81KoLSlde9XkPd94bkF/JWHbc2KTPyUBFIxsmn5SSVxg3XVLOnFclxD 9ldQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683039977; x=1685631977; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cfBsAGpRXFX3Iqed0oeLIM1q8SnmBVNgKImTrWph7ys=; b=l3GuZ758ueVg0oMMdXw9cfc6xqLxP1vuJUet53Z7N0S7sYNH+wPv/+ZF1GXIA5OTHF BkSqCJayoqy/WTq+Ezk9WeA2ddvdpaGCP9atxtzqyXvCTWxhaqplqmR/kmjr8f/i5o22 KnIet80pJPEaCQx2Ap6gDgLtn5TPOU6j1Ljpy2f5UKtVjk4Iutx2CP3B5GqsWX5oq4fY TpgAbCNaTS6z20kzAEEzQ8opcfOprJk5iIIAZnc+Y53ohHxhjJrKnTTgsTi96WPOjqEM 0hAuof45gtoCNzRgWjw4gJYaltoDYVOaU848xP4IhFQRs30g5f4C82FC4u2gxAXSovgm pOxg== X-Gm-Message-State: AC+VfDwNZZ42c1x8VHw1S9ZOj3qRCPM7KHT46W90L+Xf0HVhUaafQpeZ gMOGklEsCPd11OtBtKKHT2Q= X-Received: by 2002:a05:6a21:3a91:b0:f0:6517:2fd with SMTP id zv17-20020a056a213a9100b000f0651702fdmr18369559pzb.2.1683039976916; Tue, 02 May 2023 08:06:16 -0700 (PDT) Received: from localhost.localdomain ([154.220.3.115]) by smtp.gmail.com with ESMTPSA id f20-20020a056a00229400b0063799398eb9sm21983103pfe.58.2023.05.02.08.06.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2023 08:06:16 -0700 (PDT) From: zhouzhouyi@gmail.com To: paulmck@kernel.org, rcu@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, lance@osuosl.org Cc: Zhouyi Zhou Subject: [PATCH RFC] rcu: torture: shorten the time between forward-progress tests Date: Tue, 2 May 2023 23:06:02 +0800 Message-Id: <1683039962-15751-1-git-send-email-zhouzhouyi@gmail.com> X-Mailer: git-send-email 1.7.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Zhouyi Zhou Currently, default time between rcu torture forward-progress tests is 60HZ, Under this configuration, false positive caused by __stack_chk_fail [1] is difficult to reproduce (needs average 5*420 seconds for SRCU-P), which means one has to invoke [2] 5 times in average to make [1] appear. With time between rcu torture forward-progress tests be 1 HZ, above phenomenon will be reproduced within 3 minutes, which means we can reproduce [1] everytime we invoke [2]. Although [1] is a false positive, this change will make possible future true bugs easier to be discovered. [1] Link: https://lore.kernel.org/lkml/CAABZP2yS5=ZUwEZQ7iHkV0wDm_HgO8K-TeAhyJrZhavzKDa44Q@mail.gmail.com/T/ [2] tools/testing/selftests/rcutorture/bin/torture.sh Tested in PPC VM of Opensource Lab of Oregon State Univerisity. Signed-off-by: Zhouyi Zhou --- tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/TRACE02.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/TREE02.boot | 1 + tools/testing/selftests/rcutorture/configs/rcu/TREE10.boot | 1 + 5 files changed, 5 insertions(+) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot index ce0694fd9b92..982582bff041 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-N.boot @@ -1,2 +1,3 @@ rcutorture.torture_type=srcu rcutorture.fwd_progress=3 +rcutorture.fwd_progress_holdoff=1 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot index 2db39f298d18..18f5d7361d8a 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/SRCU-P.boot @@ -1,4 +1,5 @@ rcutorture.torture_type=srcud rcupdate.rcu_self_test=1 rcutorture.fwd_progress=3 +rcutorture.fwd_progress_holdoff=1 srcutree.big_cpu_lim=5 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TRACE02.boot b/tools/testing/selftests/rcutorture/configs/rcu/TRACE02.boot index c70b5db6c2ae..b86bc7df7603 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TRACE02.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/TRACE02.boot @@ -1,2 +1,3 @@ rcutorture.torture_type=tasks-tracing rcutorture.fwd_progress=2 +rcutorture.fwd_progress_holdoff=1 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE02.boot b/tools/testing/selftests/rcutorture/configs/rcu/TREE02.boot index dd914fa8f690..933302f885df 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE02.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE02.boot @@ -1 +1,2 @@ rcutorture.fwd_progress=2 +rcutorture.fwd_progress_holdoff=1 diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE10.boot b/tools/testing/selftests/rcutorture/configs/rcu/TREE10.boot index dd914fa8f690..933302f885df 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE10.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE10.boot @@ -1 +1,2 @@ rcutorture.fwd_progress=2 +rcutorture.fwd_progress_holdoff=1 -- 2.34.1