Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2930561rwb; Mon, 15 Aug 2022 14:16:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+lF0igM/G4prwPvr7UO7YNggBEFN7HZyfEF34AqjAXE5sVSf9t0nWX6nE9dLPkzwjfjiU X-Received: by 2002:a63:415:0:b0:422:6de7:d9b7 with SMTP id 21-20020a630415000000b004226de7d9b7mr13767724pge.432.1660598073986; Mon, 15 Aug 2022 14:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598073; cv=none; d=google.com; s=arc-20160816; b=I41KP+ijocxEL+IhaatmrRujQmDcCkeGi1s5zjX4pJKCfg7qqHJD6GMhr4IX2R1FF4 7TpnDBGPlDUHn3M0/F6KFMO8y82qP2XcYNWa1WczZTJODy+7sp7Jxu6fwdr+Wc8mJEJ3 YWhswz9x6HBJQ5Wn6S7PHPJ0zgchnNi4GmEGl9Rd60/+10opagL+8/D4NHBlPRHFjZqu /JX4MjH3EP1nDZTKngM4VgyWLupgCiLmsLMrmq4PQDGpFATZOSWz5O5zdosLYumje+cR 9JkfmMV7J4+nrf712AOIccqQkp1RZWcjma7uSOdq1pWRryM1PDzVYvD7da1lqydjRbTR zYwA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=etgUsklZgFHnIxzLP2cMqBXS7wAcIzCHFS1Jyn1QxWI=; b=1AkDTKMeeP6VQxSnj8kvu+qUNRK5wLVssLsSXQsZvgrpt29sMYrCabCtELZGchUvul XzHo33HmUuUBSV9z2nzuk7pOM10GiggHwYalSiTprD8UyAwj8+ebS/+2eoZaxbTtHcsd R4vwBoVHGAeZ08MIByzH6qC9h5iq/dzzIsdDbKpTMnIRmnWI6fsKJSJ+f8mh1WLI5rzm v16jtEPmWRSDmKTd/dVRwMQr23078v+EhdJjkpUscO23OMiIjKTVnNjkrjZ2DmBdwThI 8RoXmM39sxA1pKyOCeR9K1wNnO/nslO5aUXy9B2+dXpT852TW67NF0a61wrXZwNmdJzH 3UrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="AnJY/e4i"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170902c9d200b0016bb6c588c9si9983348pld.392.2022.08.15.14.14.21; Mon, 15 Aug 2022 14:14:33 -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=@linuxfoundation.org header.s=korg header.b="AnJY/e4i"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245529AbiHOVFj (ORCPT + 99 others); Mon, 15 Aug 2022 17:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242801AbiHOVDc (ORCPT ); Mon, 15 Aug 2022 17:03:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C12A9D2EA4; Mon, 15 Aug 2022 12:14:30 -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 E81A1B81109; Mon, 15 Aug 2022 19:14:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B33DC433C1; Mon, 15 Aug 2022 19:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590867; bh=Axapi9ZUMEYfwtt328vt8/8TF7uU1uOdwcal1zqH1e8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AnJY/e4inu3ooTbQPwuyLgZtqYEAOqNiyVxej2bEVY9pB/DGwNkCbojy3qSirpECg 8uMG33YhIP3dSnsmvqVeJ/aDwzQxgrQvr7oEm17+QS+7CEjut1X1Tkehmie4NX+24x XESva6ZmxktbYsZAaaCO4taLEbDs2L++gfna9bLM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Paul E. McKenney" , Sasha Levin Subject: [PATCH 5.18 0365/1095] rcutorture: Make kvm.sh allow more memory for --kasan runs Date: Mon, 15 Aug 2022 19:56:04 +0200 Message-Id: <20220815180444.817283309@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_FILL_THIS_FORM_SHORT,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: Paul E. McKenney [ Upstream commit 31015625768e6d8bc808a892b221b69afaaa8d07 ] KASAN allots significant memory to track allocation state, and the amount of memory has increased recently, which results in frequent OOMs on a few of the rcutorture scenarios. This commit therefore provides 2G of memory for --kasan runs, up from the 512M default. Signed-off-by: Paul E. McKenney Signed-off-by: Sasha Levin --- tools/testing/selftests/rcutorture/bin/kvm.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 55b2c1533282..b9f4d41da30e 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -44,6 +44,7 @@ TORTURE_KCONFIG_KASAN_ARG="" TORTURE_KCONFIG_KCSAN_ARG="" TORTURE_KMAKE_ARG="" TORTURE_QEMU_MEM=512 +torture_qemu_mem_default=1 TORTURE_REMOTE= TORTURE_SHUTDOWN_GRACE=180 TORTURE_SUITE=rcu @@ -180,6 +181,10 @@ do ;; --kasan) TORTURE_KCONFIG_KASAN_ARG="CONFIG_DEBUG_INFO=y CONFIG_KASAN=y"; export TORTURE_KCONFIG_KASAN_ARG + if test -n "$torture_qemu_mem_default" + then + TORTURE_QEMU_MEM=2G + fi ;; --kconfig|--kconfigs) checkarg --kconfig "(Kconfig options)" $# "$2" '^CONFIG_[A-Z0-9_]\+=\([ynm]\|[0-9]\+\)\( CONFIG_[A-Z0-9_]\+=\([ynm]\|[0-9]\+\)\)*$' '^error$' @@ -202,6 +207,7 @@ do --memory) checkarg --memory "(memory size)" $# "$2" '^[0-9]\+[MG]\?$' error TORTURE_QEMU_MEM=$2 + torture_qemu_mem_default= shift ;; --no-initrd) -- 2.35.1