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 2D053CE7B1F for ; Fri, 6 Sep 2024 15:03:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 956F688CF2; Fri, 6 Sep 2024 17:03:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com 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; unprotected) header.d=amd.com header.i=@amd.com header.b="E5TU2JEX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79A8088CF2; Fri, 6 Sep 2024 17:03:50 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2061b.outbound.protection.outlook.com [IPv6:2a01:111:f403:2418::61b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 08E0188915 for ; Fri, 6 Sep 2024 17:03:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=michal.simek@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XuCu+4pGk/SBoc2YK8ZW28AwX2rF2k0rdoPMm6NCUke0FIe8pHuWw9Zb88ZdLg5pz/aS2rcueDhzapWZWUDmti3PtG5LMFeZUqsIHsWOET5fq0ff0jDnetxBjtyFW0jDyayUetjHkBLBGqVT/Vdb8k2rFzK7UXogbvGa1vvD9QQ0DCZZemS6jByoq8hjrkhzPJLNCuB0jACDPbgM4W6vhH9yyeTuYuyRk/A9By3gQj1iSTBZXXOCPOGKTOibJR4PbNbfWpsWJp87hDYdW/+M3Dsm+GNJmRQXN42yzF4dYxvG2epXH+iIubwyR1ZG8qzonrQDFzu97q7PXo7/ADP1GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0DEhgS5ajMZ6V7Hx17zu7lE8f8DTFW+VZ4rW+RUbWYg=; b=XpdoyAlp+ZpmNx6onVVo40frziC8GrVnf9zGnZZT0f6AmPYbS43YgVqG2StYcZe0vpJesOfmMiTXno4gOHinAd5Yv+J0kfyV1rIhKbe+uyQfUbI8aWjIwNTo4FALLCaivj3Imdjq215DBhLVjQkU2qLjPQSLtSRALkNaUODBE0Qia0tgS0SV1fmZiRA8DIFA9DWJ3IZbPPXcR9jRjSzElVoZcOLZPJIt7XJC08Z5NlG70s0sIXx+3u5b7WtRJMFJ83JO2BwxS7RqR3pZW8K5AetR4aXF28rZrR0S9h4wG3KG9Bthx/zZU8ZPLGKLguY5fN8ubCwh7yEw43mv2duesA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0DEhgS5ajMZ6V7Hx17zu7lE8f8DTFW+VZ4rW+RUbWYg=; b=E5TU2JEXhyamFTnBAUkHuScWm7YweuxWm1NwahKf2QZaAEhCJFzTZhlwSsWGEKc4Tv31+gVnjnoxg9cTh4RomGjBkifpB9SL6Yg4cxwXDOg4pkSFvrt5Ty/rYZgoVNy2jYbhHlCF/R2raidWXzhZwnELw+pTGntOXf3WqHQ2l/w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8109.namprd12.prod.outlook.com (2603:10b6:a03:4f5::8) by BL1PR12MB5777.namprd12.prod.outlook.com (2603:10b6:208:390::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Fri, 6 Sep 2024 15:03:43 +0000 Received: from SJ2PR12MB8109.namprd12.prod.outlook.com ([fe80::7f35:efe7:5e82:5e30]) by SJ2PR12MB8109.namprd12.prod.outlook.com ([fe80::7f35:efe7:5e82:5e30%4]) with mapi id 15.20.7918.024; Fri, 6 Sep 2024 15:03:43 +0000 Message-ID: Date: Fri, 6 Sep 2024 17:03:31 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] Miscellaneous FWU fixes To: Sughosh Ganu Cc: u-boot@lists.denx.de, Ilias Apalodimas , Heinrich Schuchardt References: <20240830114057.891069-1-sughosh.ganu@linaro.org> <6f1e9198-e9ef-46e3-afae-62b3f84d97c6@amd.com> <17fdf962-20b7-4bb9-93ba-bdb7335c4762@amd.com> <41f4766b-7861-4608-905f-9717e6fdc230@amd.com> <1bf05e73-3ef2-4f15-87ab-64c32d60f924@amd.com> Content-Language: en-US From: Michal Simek Autocrypt: addr=michal.simek@amd.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3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o/+4fF/KNtAtU/VYmBrwT/N6clBxjJYY1i60ekFfAEsCb+vAr1W9geYYpuA+lgR3/BOkHlJ eHf4Ez3D71GnqROIXsObFSFfZWGEgBtHBZ694hKwFmIVCg+lqeMV9nPQKlvfx2n+/lDkspGi epDwFUdfJLHOYxFZMQsFtKJX4fBiY85/U4X2xSp02DxQZj/N2lc9OFrKmFJHXJi9vQCkJdIj S6nuJlvWj/MZKud5QhlfZQsixT9wCeOa6Vgcd4vCzZuptx8gY9FDgb27RQxh/b1ZHalO1h3z kXyouA6Kf54Tv6ab7M/fhNqznnmSvWvQ4EWeh8gddpzHKk8ixw9INBWkGXzqSPOztlJbFiQ3 YPi6o9Pw/IxdQJ9UZ8eCjvIMpXb4q9cZpRLT/BkD4ttpNxma1CUVljkF4DuGydxbQNvJFBK8 ywyA0qgv+Mu+4r/Z2iQzoOgE1SymrNSDyC7u0RzmSnyqaQnZ3uj7OzRkq0fMmMbbrIvQYDS/ y7RkYPOpmElF2pwWI/SXKOgMUgigedGCl1QRUio7iifBmXHkRrTgNT0PWQmeGsWTmfRit2+i l2dpB2lxha72cQ6MTEmL65HaoeANhtfO1se2R9dej57g+urO9V2v/UglZG1wsyaP/vOrgs+3 3i3l5DA= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1PR0102CA0084.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::25) To SJ2PR12MB8109.namprd12.prod.outlook.com (2603:10b6:a03:4f5::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8109:EE_|BL1PR12MB5777:EE_ X-MS-Office365-Filtering-Correlation-Id: a151e017-154b-4736-290f-08dcce85198e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T0N4V2ZSUX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?utf-8?B?bFlQRElyaDZ5TVFkUVdTdz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8109.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cnRjbFB2Sy9BOHBLbGNUUUt1TGVoQXAxOHhLMUpzZ0tMeHl5ZEc5S2NLQnlr?= =?utf-8?B?R2h1b01mZW1RRWJBV3FOYW96UFY0QkZMVDBnMmhsNWJiVmtkSmJ0aml4WXAv?= =?utf-8?B?cGhnRlFpL3YwMm9XRTRIKzZ1aVIxVWs0dFI3VG1XaGN0cmFqUkxVcmZLb0hV?= =?utf-8?B?MndBRDAveUdDOVZXeGJobVRBTjhTSEdPdjNuclZPRElzZ2p3MUdIYWR1bWVV?= =?utf-8?B?WWN4ZVEzd1pkVlhrTmwzdE9KMk1EdzNDbE02RXBJUHJrUnZXTXpxcmtLNlAw?= =?utf-8?B?S2lpNTRmQTBpZmdJNHZFaWpwd1RFZERldFIvTzkvMUliOEhKdFdlcUpYenFO?= =?utf-8?B?Ym4xaERvRTBLYUVuQUxjbFpVYkVsZzBESUdZaHVlQWkvb0ZTNWNDMTM2UkJz?= =?utf-8?B?UnZzcG5Ddy9JZUVVb21Id0ZPZFY3ZEpFQWtQM1dScGkrb25wSnN0VmVPajZu?= =?utf-8?B?U3VmOXhJNWh5cG41N2pjTkRjK1h1OGlDNFQrckVTM2JSa0gxYXZGSGJOYzRE?= =?utf-8?B?d3NjcE1vd0VHWmZVcnZBSWVIUC9ObXVRdEFrL2NjK2Jod2Y3OE1KZHA5S3da?= =?utf-8?B?SnFzczVtNTlDcDhDYkxTNkxMQk5VWnB4ZzBkRjc0cGxFNy82R2dMalBRUmtD?= =?utf-8?B?NkF5eFlEYz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?B?U21tR3Z3QVV0U3hPMmVGaUMyUGNPYy90K3c1TnMrWFZzTHVkTFR1U1lkSGJv?= =?utf-8?B?YjdtY1FYR3ZlT0ZxV3plSFcxUXZhTW1YT3IycGFLTFN3cm9NeWJsYlpLdHVR?= =?utf-8?B?dDRlRkF2dzFQNiszRjFoQ1NtMGVRWXYwY1BidC9Lc2RZamswczNPcXJnMG1y?= =?utf-8?B?c3pENzcwT0x3WkZIVG5tZHZGekhBRStFV1E4NXNyM1plbEZDekdHYW90alNV?= =?utf-8?B?cTJsWWhXbVJnYnJUWndiaTB3TFZvY0JOS1Z1VVk3WENvWityTmNVRHhmdHpk?= =?utf-8?B?MDRHUlpkK2FUNEdvNzRpb0VaNXg2aS9Xb1BuK0Q2dElWZG50SHBLb2RHdktk?= =?utf-8?B?QnBaWEdXc1JkTTBWK0U3OG84QXd1S3VjZmM3WVRTVDhEdVZzTjlXMHZjL3cz?= =?utf-8?B?NlprM2JVUmZOaks2bWpST3ZUbDRDUHd5U0ZPdVJzaEpzdEJSS2NMSGJSWVRa?= =?utf-8?B?ZFRGSkJxRnZwODA0Q0NBNzNJQnR6U01vSE0yR2tadDFBYlIzUVp6NXhRTlo5?= =?utf-8?Q?+5Fa0V/cR4pKmFkCGQpzjmVGq?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a151e017-154b-4736-290f-08dcce85198e X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8109.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:03:43.5190 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cMWkSmqQB2EUhU14ioUxJdTi0dkSYBEEzCSoBDodWq9psTkDuqqos1LLtKl7Quug X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5777 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.8 at phobos.denx.de X-Virus-Status: Clean On 9/6/24 11:47, Sughosh Ganu wrote: > On Fri, 6 Sept 2024 at 12:05, Michal Simek wrote: >> >> >> >> On 9/5/24 11:17, Sughosh Ganu wrote: >>> On Thu, 5 Sept 2024 at 14:07, Michal Simek wrote: >>>> >>>> >>>> >>>> On 9/5/24 10:12, Sughosh Ganu wrote: >>>>> On Thu, 5 Sept 2024 at 13:20, Michal Simek wrote: >>>>>> >>>>>> >>>>>> >>>>>> On 9/5/24 09:43, Sughosh Ganu wrote: >>>>>>> On Thu, 5 Sept 2024 at 13:09, Michal Simek wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 9/5/24 09:38, Sughosh Ganu wrote: >>>>>>>>> On Thu, 5 Sept 2024 at 13:03, Michal Simek wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 9/5/24 08:24, Sughosh Ganu wrote: >>>>>>>>>>> On Wed, 4 Sept 2024 at 17:30, Michal Simek wrote: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On 8/30/24 13:40, Sughosh Ganu wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> The following set of patches are miscellaneous fixes and some >>>>>>>>>>>>> hardening of the FWU update logic. >>>>>>>>>>>>> >>>>>>>>>>>>> Sughosh Ganu (6): >>>>>>>>>>>>> fwu: v2: perform some checks before reading metadata >>>>>>>>>>>>> fwu: v2: try reading both copies of metadata >>>>>>>>>>>>> fwu: v1: do a version check for the metadata >>>>>>>>>>>>> fwu: check all images for transitioning out of Trial State >>>>>>>>>>>>> fwu: add dependency checks for selecting FWU metadata version >>>>>>>>>>>>> fwu: do not allow capsule processing on exceeding Trial Counter >>>>>>>>>>>>> threshold >>>>>>>>>>>>> >>>>>>>>>>>>> include/fwu.h | 11 ++++++ >>>>>>>>>>>>> lib/fwu_updates/Kconfig | 1 + >>>>>>>>>>>>> lib/fwu_updates/fwu.c | 31 +++++++++++++++- >>>>>>>>>>>>> lib/fwu_updates/fwu_v1.c | 18 +++++++-- >>>>>>>>>>>>> lib/fwu_updates/fwu_v2.c | 80 ++++++++++++++++++++++------------------ >>>>>>>>>>>>> 5 files changed, 99 insertions(+), 42 deletions(-) >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> I found one more thing. >>>>>>>>>>>> >>>>>>>>>>>> I did this change >>>>>>>>>>>> >>>>>>>>>>>> diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c >>>>>>>>>>>> index fbc2067bc12d..dab9530e499c 100644 >>>>>>>>>>>> --- a/tools/mkfwumdata.c >>>>>>>>>>>> +++ b/tools/mkfwumdata.c >>>>>>>>>>>> @@ -293,7 +293,7 @@ static void fwu_fill_version_specific_mdata(struct >>>>>>>>>>>> fwu_mdata_object *mobj) >>>>>>>>>>>> struct fwu_mdata *mdata = mobj->mdata; >>>>>>>>>>>> >>>>>>>>>>>> mdata->metadata_size = mobj->size; >>>>>>>>>>>> - mdata->desc_offset = sizeof(struct fwu_mdata); >>>>>>>>>>>> + mdata->desc_offset = 0x21; sizeof(struct fwu_mdata); >>>>>>>>>>>> >>>>>>>>>>>> for (i = 0; i < MAX_BANKS_V2; i++) >>>>>>>>>>>> mdata->bank_state[i] = i < mobj->banks ? >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> to break desc_offset location. I generated mdata structure and write it to >>>>>>>>>>>> primary mdata partition. >>>>>>>>>>>> >>>>>>>>>>>> This has been spotted by (my debug) which is the reason why I did it. >>>>>>>>>>>> >>>>>>>>>>>> if (g_mdata.desc_offset != FWU_IMG_DESC_OFFSET) { >>>>>>>>>>>> printf("mdata offset is not 0x20\n"); >>>>>>>>>>>> return false; >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> But I got one more message below which >>>>>>>>>>>> >>>>>>>>>>>> mdata offset is not 0x20 >>>>>>>>>>>> Both FWU metadata copies are valid but do not match. Restoring the secondary >>>>>>>>>>>> partition from the primary >>>>>>>>>>> >>>>>>>>>>> The reason why this logic is in place is to handle the scenario >>>>>>>>>>> whereby, during the metadata update, the primary copy gets updated >>>>>>>>>>> correctly, but due to some reason (like a power cut), the secondary >>>>>>>>>>> copy does not -- this is because the primary copy gets updated first. >>>>>>>>>>> In such a scenario, the secondary copy of metadata can be then >>>>>>>>>>> restored from the primary copy. In the scenario where the primary copy >>>>>>>>>>> is corrupted, it will show up in the crc check, and will get restored >>>>>>>>>>> from the secondary copy. >>>>>>>>>> >>>>>>>>>> But in this case - CRC of primary is correct but data inside is wrong because >>>>>>>>>> offset is at 0x21 not at 0x20. >>>>>>>>> >>>>>>>>> How will this event play out ? Am I missing something ? When the >>>>>>>>> metadata is getting updated, the offset will be written as 0x20, and >>>>>>>>> not 0x21. And in case the metadata gets corrupted, the CRC check would >>>>>>>>> fail and the primary partition would get restored from the secondary >>>>>>>>> (assuming that the secondary copy is correct). >>>>>>>> >>>>>>>> It is not after update. It is initial state with incorrect mdata structure. >>>>>>> >>>>>>> Well, if the metadata partition is being written with incorrect data, >>>>>>> not sure how we combat that (or even if we should). After all, the >>>>>>> spec clearly states that the metadata cannot be protected against >>>>>>> malicious writes. The logic that you pointed out earlier is to handle >>>>>>> the scenario where the primary partition got updated, but the >>>>>>> secondary did not. >>>>>> >>>>>> I don't disagree with you. >>>>>> >>>>>> Scenario here is that primary partition is updated with incorrect data content >>>>>> (but still correct CRC). This is correctly detected that data is not right. >>>>>> It means primary partition is wrong and shouldn't be used and it is not used. >>>>>> >>>>>> But because it has correct CRC syncup code logic is doing syncup. >>>>>> >>>>>> That's why I think we have two codes which have pretty much independent logic >>>>>> what to do. If primary is wrong sync should be from secondary to primary but >>>>>> that's not what code is doing. >>>>> >>>>> The scenario of "primary is wrong" will only play out in case of >>>>> corruption in the metadata. The scenario that you highlight, that of >>>>> the metadata being wrong, but the CRC check succeeds will only happen >>>>> when the metadata has been maliciously written -- >>>> >>>> yes. And I did it on purpose to check your code and all error condition you are >>>> checking to make sure that code traps them. >>> >>> The code should detect and fix any genuine error conditions that might >>> come up in the field. Even the check for the case where the two >>> metadata copies are valid but different is a scenario that can >>> actually happen when updating the metadata copies, and there is a >>> reason why we are assuming that the primary is the correct copy and >>> should be used to restore the secondary. If there are any valid >>> scenarios that are not being handled, they should be identified and >>> fixed. >>> >>>> >>>>> if not, then the >>>>> secondary partition should also be written with the wrong metadata, >>>>> and the checks would then fail. In the case of the primary metadata >>>>> getting corrupted, it does get restored from the secondary partition, >>>>> assuming that the secondary partition is intact. >>>> >>>> When primary is cleared/has incorrect CRC there is no problem and recovery >>>> happens but if CRC is right but data inside wrong code doesn't check it. >>> >>> This is where I think that this is not a genuine "error" case. So, if >>> someone has written a metadata copy with wrong data but right CRC, and >>> only written this bad copy to the primary partition, how do we trust >>> that the secondary copy is actually correct ? One can generate a >>> secondary metadata copy where the primary checks pass, but the image >>> information in the metadata is incorrect. >> >> If U-Boot knows that data is not correct, based on it's check (in this case one >> incorrect field), you should never use it. If second also won't pass this check >> U-Boot shouldn't use it too. > > The fact that we are trying to counter incorrect provisioning of > metadata, which can well be a malicious act of writing incorrect > data/correct CRC copy only to one partition seems like an anomaly > which should not be handled. I would still be okay if this were a > fool-proof way of fixing the board, but it isn't. Like I mentioned > earlier, we can still have a secondary copy of the metadata with wrong > data/correct CRC, and which does not get detected in the initial > checks, as the top level structure fields are correct, but the image > information is not. Partially agree. You are checking in fwu_mdata_sanity_checks and even data is matching u-boot configuration. You are checking now num_banks, num_images. guid should be also known to u-boot and I can't see the reason why this functions can't check it too. And more and more I am looking at the code more things that current fwu_mdata_sanity_checks should be called before you mark parts_ok[] = true. >> >> If secondary copy pass all your tests you trust that it is fine. But if not, >> then you don't trust it. > > But we cannot detect that the secondary copy is passing all the tests, > as the issue could well be with the image description, and that would > be detected only when an update is attempted, or the user identifies > it (possibly) using the fwu_mdata_read command. And before that, the > primary copy would be restored with the incorrect secondary copy, as > part of the metadata read function. > > What I think can be done is, as a middle ground, we can instead have > this as a platform policy. So we add a function pointer for this, and > when such a scenario is detected, the platform can have a callback > which then restores the primary copy from the secondary. What are your > thoughts on this ? I have to think about this more (not on Friday afternoon). Cheers, Michal