Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8879DC43334 for ; Mon, 18 Jul 2022 15:12:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC6A783FF1; Mon, 18 Jul 2022 17:12:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="QRRv0afm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9AD8A83FF4; Mon, 18 Jul 2022 17:12:35 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 563DC83F69 for ; Mon, 18 Jul 2022 17:12:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658157149; bh=oLOhbWcCd5L8dgIBiRHs6LNrOCy5iLt1WhTHvzhPePk=; h=X-UI-Sender-Class:Date:Subject:To:References:Cc:From:In-Reply-To; b=QRRv0afm7W1vYXtx+kYv4IIAU8Ui7aKOdm18mcTaC7f0yAM+6OnV0JTdbUJDt+w5L yQjG8mLXcSSexiVhemNzlZhxKrp5MA4bo/fd4Ca/j8jiKge+NzkkACOZK0cKJQ5AY8 EJkKU9Pw9JVYfTTKBbv993aXrwhF/aSo+1UjsNYs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.67] ([62.143.94.109]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Ygt-1oFvWg0bxj-00323j; Mon, 18 Jul 2022 17:12:29 +0200 Message-ID: <10085d7e-97ae-9c8f-4d6f-54055332e66d@gmx.de> Date: Mon, 18 Jul 2022 17:12:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0.1 Subject: Re: [PATCH] efi: test/py: repair authenticated capsules tests Content-Language: en-US To: =?UTF-8?Q?Vincent_Stehl=c3=a9?= References: <20220627102319.151491-1-vincent.stehle@arm.com> <20220628051403.GB58312@laputa> Cc: Simon Glass , AKASHI Takahiro , u-boot@lists.denx.de From: Heinrich Schuchardt In-Reply-To: <20220628051403.GB58312@laputa> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:5skeZhKLwm1uHZ/1Ruio4In53G8sUX3whg2oeH221l9GiyylX9O m4YqYbApqlyyedXSp/HSgkCRjMVqWGaGR3FHIQSuQi+lBlUqIHv/TUxOYzRMe3tZGaEAknD yf9JfujAXflVmt9FmaJmSz945S/rZW1udhy0BHooYh14Z1ZJIFc32cX4QWls2VanjvqH0ju /VHESJAIOcBvbXDOfn+sA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Eu/vcdBgzZk=:/61cvhRXCNmwfVhvVF5eAJ 6K+0c2u/52zNafcGMpfM7WoZtp+493JYb5tXNzM5U2fxuPvvUOPZ4W6WYshhfPo+z2Mq9zhfA 2XaSLGosmFsLVWSpEf5+3cmSMXnh52NkGidan58jKUoFOmLeedfpr1xVXaVVK0T4WTF8SOx2/ 3X7+NHBLflgaE8E34J1Ydm059RHSLe4r4w7jRdL1rRLqjjY1ozwsv8Z8O9+dEcSQT99T3ifbW m1qResYkfP0ersEcbzzBX4+X6dhVrAjxR9+VyAOhOzfG9iXS6wlGaEKBO/1ESqpiMTKkY5tNu 0Sb4grn79lXCZfn9KipivseONWpF1Bhg+ceL3sK2aDFKW3RNyGTQyDUhHMeHiiv6x/JOSGqrG vdnrv1lYgDspUZYZ2W2CVMbIKogJbQaYAs0MABVMiOI69Ben/GMoBYBJWWufsbWge5/kaip0e wii6eUvstYfgovRFePUlMCWecmS4QTcoId0oUcJcqrXueLwWEH75aY2PqvqELPE1ENAxVPKUY JlfKbP/zqMkPX1rK4v0J9G+69gl43319bEp2dmUPn79nw1tJZV/gQ8dk0n5lpuQ1OZNa98eoV MawKQ3TaaAKwOcA0xuSpeaXgwGqyo7L2qR9ITbz0xZo9lfYrBNeIXqNUF8BjlNH7oY9c3Nrbu 7/oiRcUYBdLOSSPDgVcICwZ89D8s/LiLPPmL+Y++LELU3hioKTYGNYn/QD5jYk3C0AR2XHO+g HSlguwyh3zZ6lBtqR45+akJzydLuTC9hU0MXaEW9uufWAbPkYtOX++ok0H4xY870jxidThfm3 QRt5p2FMuXHGPOI6NdFKcDIhblf3+DP9nLT+p5wX06IJTYciVc0CfKiH6ZPrjRbA2JrcF/9Ze a2+vyjKNSUm1dKJ3v8yDKqJfCxNM49tWMuQRJk+R20D+sWtkRyesALXTpFcryNmtCUyoIPOCd W57IBalfxCRe0ZEv/jCephX6NUOG0Db5ythubmUuxB4inRZFU3HIIRpXD96yidX9ySXlHY3x9 vSj7xLnEN4bK3wAwO81MoSHwH9fCLuDDE9zFdNcLoXubXGTNsBgGIsqqR5txGFK6o+RPnJlNT C0SMui1ltJDX2tzKQ4nOl0iJSTJR5pH7IyK2Xp0LgdXOj4vdvPPnuXBHw== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 6/28/22 07:14, AKASHI Takahiro wrote: > Heinrich, > > On Mon, Jun 27, 2022 at 12:46:07PM +0200, Heinrich Schuchardt wrote: >> On 6/27/22 12:23, Vincent Stehl=C3=A9 wrote: >>> The UEFI console initialisation has been modified by commit 68edbed454= b8 >>> ("efi_loader: initialize console size late"). A corresponding workarou= nd is >>> now necessary for the automated tests, as added to some of the tests >>> already by commit e05bd68ed5fc ("test: work around for EFI terminal si= ze >>> probing"). >>> >>> Add the same workaround to the UEFI authenticated capsules tests to re= pair >>> them. >>> >>> This can be tested with sandbox_defconfig, sandbox64_defconfig or >>> sandbox_flattree_defconfig, plus CONFIG_EFI_CAPSULE_AUTHENTICATE=3Dy. >>> >>> Signed-off-by: Vincent Stehl=C3=A9 >> >> Why are these tests not run in Gitlab? >> Can't we permanently adjust one of said defconfigs for this purpose? >> Or do we need a new defconfig for testing? > > Because we cannot turn on or off capsule authentication dynamically > on a single U-Boot image, we cannot test non-signed test cases > and signed test cases simultaneously in CI. > > That is why I proposed a new config file for sandbox with > EFI_CAPSULE_AUTHENTICATE, but the idea was rejected (if I remember corre= ctly, by Simon). > > That said, I also made a small change to unsigned test cases > (test_efi_capsule_firmware(_*).py) so that they can *pass* even with > EFI_CAPSULE_AUTHENTICATE enabled. > (As you can image, however, actual capsule update never happens in > this test environment.) > > commit e012550cd7d6 ("test/py: efi_capsule: check the results in case of > CAPSULE_AUTHENTICATE") > > > -Takahiro Akashi Reviewed-by: Heinrich Schuchardt