| Message ID | 20251120025614.2215587-14-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1763607424; bh=dRqro6Enb3h85C04rrm3fTS418dz2F+PTK1CEEpikhg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bo5R+XJV09nlBlucJoitqrEzvSw+nmniu9O3ndYIV1Hlyzl3gTHaYvGp1xBGMvSr0 CJOR/msFAp3xuu7emKNyfb6DE8V+wa9nZ/Q4A/e03PRRtDe3DMsTKUcNOv9h1V4+0q I/7qGjRK5P91NJ+n2WDk9AKfaYFngwLzUFmDqio9lkQe9xqApFnyTmRNYXkP2KgrR4 jvESPO/oGhYY4hv8PbUgeqvpPu2X2pWAsbcTyQQSoCjMeoqvoZfiUGg+keDeOeaNTG VRzXKuJQozVCEwbV6fKA3kLhWPRKWWR2HO1Ll/I09mgNB6fxns1k3KdlcRrJO1b5Zu LG5GHxuuf2hfw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BD42C686C9 for <u-boot-concept@u-boot.org>; Wed, 19 Nov 2025 19:57:04 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wHD6XEbeOXVE for <u-boot-concept@u-boot.org>; Wed, 19 Nov 2025 19:57:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1763607424; bh=dRqro6Enb3h85C04rrm3fTS418dz2F+PTK1CEEpikhg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bo5R+XJV09nlBlucJoitqrEzvSw+nmniu9O3ndYIV1Hlyzl3gTHaYvGp1xBGMvSr0 CJOR/msFAp3xuu7emKNyfb6DE8V+wa9nZ/Q4A/e03PRRtDe3DMsTKUcNOv9h1V4+0q I/7qGjRK5P91NJ+n2WDk9AKfaYFngwLzUFmDqio9lkQe9xqApFnyTmRNYXkP2KgrR4 jvESPO/oGhYY4hv8PbUgeqvpPu2X2pWAsbcTyQQSoCjMeoqvoZfiUGg+keDeOeaNTG VRzXKuJQozVCEwbV6fKA3kLhWPRKWWR2HO1Ll/I09mgNB6fxns1k3KdlcRrJO1b5Zu LG5GHxuuf2hfw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AA21C686BB for <u-boot-concept@u-boot.org>; Wed, 19 Nov 2025 19:57:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1763607422; bh=Slaplod5HaF8KBVlw5oG39RooXALjWRzm+uT8Z6lByI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=riO1fIy5Z45E9w4WENpsJg+ry+2IoM1zAl85M7xHg/jK1kbYKMsUT5+l07exswSCf Ml4wtpqdDvOwsVyZ+kevrElaZpdfpj4/dXraDwnMYfkaxinYwwV0SyR596tXGFhnGK qwvW6jBV30SRnZpYe5W8sejBflWGUWMqG2bE9tuiVNpX5bv07N1zQI42L21rNnzSuG vpbFkYZnWsl55ZWWTXpoHCJki6poVWXSOoc171BgAsy9vn+cd85HkRgKNfVojnLjQq YkRpXfsY/ZXMZJCRzF/zUfaRImebaFu4hMHRIBXNKgMGC5ZTxrIt3x5eNOSeFYRaKZ YVNEBqOyPUE5g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 23C06686C8; Wed, 19 Nov 2025 19:57:02 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 1oAPiwAF91su; Wed, 19 Nov 2025 19:57:02 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1763607420; bh=TzCFS0i8H01rawM5xlY+4bHpjzvYoHM+4t/Adqbitd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fu/2gmXw9WYCphnp5JJUKpMnxrrLvxTlBtia+xYcOkLGFa6Q39k1Fo6Gpj6rmIFg+ C9AsRhxXO2t2OyhPA3ezvphk02ycvjyEMf1jfahTtfnuve0lAEbX2ZACelDfQsYwr+ BYx+XUDwcOzpeZjZ+VUyzL1L321s+hDBda6qlbEZgzB0rzfcaTbrJoBpAkZUIfVQNl jymwypM2LhzJItax6LsbIcSIaruECvkkHp2Nqf9VBP/fGASx8bqG3Y7Qh5MCcGpV/F I0fLN99PM2eHmpvV9mmjY9N8MpkrI94oFjlNuj6caPW3+WKriwzavFdA87mBzba+h/ jCXMBLu59ALeA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 60BB168614; Wed, 19 Nov 2025 19:57:00 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 19 Nov 2025 19:55:48 -0700 Message-ID: <20251120025614.2215587-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251120025614.2215587-1-sjg@u-boot.org> References: <20251120025614.2215587-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: C4DMKO37IBX7PNI7J5DZ4UEHNVICVQ6T X-Message-ID-Hash: C4DMKO37IBX7PNI7J5DZ4UEHNVICVQ6T X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 13/30] fit: Drop showing an unused 'required' property List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/C4DMKO37IBX7PNI7J5DZ4UEHNVICVQ6T/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
fit: Improve and test the code to print FIT info
|
|
Commit Message
Simon Glass
Nov. 20, 2025, 2:55 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> This is actually not defined by the spec. The 'required' property is for use by the verifying code. Having it in the FIT does not help size an attacker could potentially remove it. Signed-off-by: Simon Glass <simon.glass@canonical.com> --- boot/fit_print.c | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/boot/fit_print.c b/boot/fit_print.c index 134625396bd..bea2e176f17 100644 --- a/boot/fit_print.c +++ b/boot/fit_print.c @@ -45,7 +45,6 @@ static void fit_image_print_data(const void *fit, int noffset, const char *p, const char *keyname, *padding, *algo; int value_len, ret, i; uint8_t *value; - bool required; debug("%s %s node: '%s'\n", p, type, fit_get_name(fit, noffset)); printf("%s %s algo: ", p, type); @@ -55,11 +54,8 @@ static void fit_image_print_data(const void *fit, int noffset, const char *p, } printf("%s", algo); keyname = fdt_getprop(fit, noffset, FIT_KEY_HINT, NULL); - required = fdt_getprop(fit, noffset, FIT_KEY_REQUIRED, NULL); if (keyname) printf(":%s", keyname); - if (required) - printf(" (required)"); printf("\n"); padding = fdt_getprop(fit, noffset, "padding", NULL);