From patchwork Fri Mar 28 18:38:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 876728 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp702682wrs; Fri, 28 Mar 2025 11:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWVCyXUbqiLnQjnwhSj//zPA0uHLcoiTtiSdlqGjOK7dRzQGnhShTmDzkjS33gXItHbmNxOLA==@linaro.org X-Google-Smtp-Source: AGHT+IE8+mCGKTq+tdHRXEpb939u4qwbGBiMcockT8SvmOgWOUOedCVvKzv0U6B80tSMxSw/RPVN X-Received: by 2002:a05:620a:1997:b0:7c5:9a37:c418 with SMTP id af79cd13be357-7c69088f397mr19297485a.51.1743187151832; Fri, 28 Mar 2025 11:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743187151; cv=none; d=google.com; s=arc-20240605; b=agrt2LtIMbmcwW2nTWTgcX+shWdivQ3CBbN8hJppl2ID2P9qYodI23FdW7DkjyPEr1 +HXPfwji/BVk/MGyvu/pZLZ269vyFHYmRKLf58aWlToBSKeQKnXdf0lXtTFvT4mz1Pa+ 7/BR37vNSlEb+aRwkzSaadF98lg1DzsR3PsQb7yJ+iyxLl4ClLEB3Dg2Sc28lARqVTRs 8x4Fo6xRPE6/aQCyq++R/tQNApt8/DaaYa3btG6eNt/nARndZHLBNLez9s8taXSllO/R 5/MtsTL54p1jtDi+sLpHKEkvZ2NuJBQFFtvlGzIJcamV0KLIJpuzdNv98uiabpbK5XNz ZWQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ssdVNB+g9zRxrEC+Fseszdr1LEiiY1jNxyK/Gm+atso=; fh=2VuWqY6kz6jInq5xtC24QIB8nErCyUfQV7THIqEX6KQ=; b=PVCTRln8/xg4bsDKU+aTKY2xWozPpSFlCIdpRh1+cUy5sA9sfzPhhkTNishgZ0NhOe aIM+zH6g4N5Zn6xihMDRRALsF+MPb2+wZwz2S26I4/ZDQHb82bBC3Wn9Z3yJ7F9QPf5u 5ERM7Lg3aCrT4QvRBaSJ1QSuse/eSYmAtlRZaqgltXlQCI2+NE0LFSRq29N7KkkNyXZx jk9+HDzHGqwf0hgu+Ha1IkYanObMl8SZjWjbRFw8rWsegwnr8rQbd7O+WBbcaVKA/Rb+ ck0i5QNZfg+M1EvPeiPGpO1060NrPPISJxkN5ApuTErVwKwwddNJ57vhTh08YLqRbeYR 0oCw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jN9nGEXL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c5f77b303bsi218375485a.467.2025.03.28.11.39.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Mar 2025 11:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jN9nGEXL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tyEbF-0002K1-9p; Fri, 28 Mar 2025 14:38:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tyEb7-0002JG-Gn for qemu-devel@nongnu.org; Fri, 28 Mar 2025 14:38:30 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tyEb5-0002wO-8l for qemu-devel@nongnu.org; Fri, 28 Mar 2025 14:38:29 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2240b4de12bso14479335ad.2 for ; Fri, 28 Mar 2025 11:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743187104; x=1743791904; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ssdVNB+g9zRxrEC+Fseszdr1LEiiY1jNxyK/Gm+atso=; b=jN9nGEXL3ZgcftCOYocGl/JTSKe+/59GZExHNH1MxZfdDjAF8SKwFM7XmfBzbaqjy3 QXlmaK4M3ZuxRnddeA8NMi3D4JdoTvaDC1eW4sSWbAb3O9tY5AUgfbC8S22Tu+fItK0/ YGlKSz5cdLCUluyFvdKxwLgJbQnNJxnl75hlWpRjrTDWZH7Sw5Z3ftV/fGgpTdm1tuOd ROhYUfsDGMTOGvXZILYUW4ty3FR1bU4hNzmANzoF6EwsME6And5X1N5G6QwfgthYEOAc qGZdfm4tys7sg6jZkG1SM5l1/HgPIUwcI2BH1AE5/e1aGyPHWU4aVaSy/QUa5l2euxW7 FX2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743187104; x=1743791904; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ssdVNB+g9zRxrEC+Fseszdr1LEiiY1jNxyK/Gm+atso=; b=H4hmfggdWAYT3sqsKTy5jh5AjTxi8aRQ0mhcWF765+P82H4Y0oRVlWk4gBfZwAuZta DbvcfOKlwkbAmHfqpiWzNSJe98AZdmeGJfkOrPN8hMgU10x6J7xN99kOnQLga9uBaXfb VjbeZEslF3/m2m3yaHdOogpff6MBOyq1iFGmsIP8BwtpJj7yej2i9jGY7+qBB+bHlduH DrSjJ5MFRAlC5zqAGlZpRKpqMYHLFtw+ltOPOsdJD4kwmqMUSN6j2vCtGPLStRDkrV2g nmdFkIbl2DTphOoHVEF9augjBjQkNb3+/Eb8xdbrUTaim0TEh/tE+6JvQ5KSUJfK0gvc wSrQ== X-Gm-Message-State: AOJu0Yyy95FozG4L4Z4qkdES2/6VI1vA8P4OZsEBjQEofnx1QAJibMjf T3iRZdO62djoHTqm+D6gbC9QpkfRQEnwk5X0M+uqmkO2A08HnszPIBgYWL5drf4qGIaibXmjNIw 1+Io= X-Gm-Gg: ASbGnctEFVIIh2k0vX3A/3v0snrtleiPYESwPfq/3gzVoo8+qS+J3S/HQQVWC1cboN/ MNUPFcc4N+9V5ioTGab2wThgQkfDQMh4bNgr6mE6AZJZwuAQGZv0qll1SW5NxfyBPyeR4taVZKP Ijrq9iSshn8zbJzA2EA4bz0C6WSQnVeSaAQCmBMc9K31K5S6f/oMJbuCcWPpEDGpwqS8rweGYKF IUYyNfT3Wa2GOQqyw1duYTHhq5TMj9lNzsStRp9+vds2LPWB5agBMruO08naB4MRrgnPsUM8Fw7 Rh9IzbPG0DzeG/lLKJEZudA3EwkkOSLYcYgPnmC+OjeACVVdMyBnmCA= X-Received: by 2002:a17:902:ce0b:b0:227:e74a:a063 with SMTP id d9443c01a7336-2292f9e53d5mr3138525ad.37.1743187104272; Fri, 28 Mar 2025 11:38:24 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2291eedfd85sm22010365ad.77.2025.03.28.11.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Mar 2025 11:38:23 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, berrange@redhat.com, peter.maydell@linaro.org, alex.bennee@linaro.org, qemu-arm@nongnu.org, thuth@redhat.com, Pierrick Bouvier Subject: [PATCH] tests/functional/test_aarch64_rme_virt: fix sporadic failure Date: Fri, 28 Mar 2025 11:38:16 -0700 Message-Id: <20250328183816.2687925-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This test was randomly failing on our CI, and on dev machines, especially with QEMU debug builds. >From the information collected, it's related to an implementation choice in edk2 QEMU virt support. The workaround is to disable KASLR, to avoid accessing protected memory. Note: this is *not* needed for the similar test_aarch64_rme_sbsaref. More information is available on the associated GitLab issue. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2823 Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée --- tests/functional/test_aarch64_rme_virt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/test_aarch64_rme_virt.py b/tests/functional/test_aarch64_rme_virt.py index f4ad4d33d58..a1abf584f0e 100755 --- a/tests/functional/test_aarch64_rme_virt.py +++ b/tests/functional/test_aarch64_rme_virt.py @@ -87,7 +87,9 @@ def test_aarch64_rme_virt(self): self.vm.add_args('-fsdev', f'local,security_model=none,path={rme_stack},id=shr0') self.vm.add_args('-device', 'virtio-net-pci,netdev=net0') self.vm.add_args('-netdev', 'user,id=net0') - self.vm.add_args('-append', 'root=/dev/vda') + # We need to add nokaslr to avoid triggering this sporadic bug: + # https://gitlab.com/qemu-project/qemu/-/issues/2823 + self.vm.add_args('-append', 'root=/dev/vda nokaslr') self.vm.launch() # Wait for host VM boot to complete.