Message ID | 20211111155953.31526-1-kabel@kernel.org |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=oPjl55wU; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hqmdm1MfRz9s1l for <incoming@patchwork.ozlabs.org>; Fri, 12 Nov 2021 03:00:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB2E883A5F; Thu, 11 Nov 2021 17:00:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="oPjl55wU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 773CF83A5A; Thu, 11 Nov 2021 17:00:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (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 995E28371F for <u-boot@lists.denx.de>; Thu, 11 Nov 2021 16:59:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id 42A1961241; Thu, 11 Nov 2021 15:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636646397; bh=2ZVUE0L/occbuXAMZVKENB2KfzDdnLMbM1VUTYnm2Oo=; h=From:To:Cc:Subject:Date:From; b=oPjl55wUChAngzUKvFQX84lSqZgRk90B2DyUJ4ss2e51WI9CSgOE0ZWWWL9D56KPD 4N3FVa+7oYPuFaHWKsio5nz3n5DaGOhlQCpEbdp6dzUA2zTXA7Lwkdo4E3CeJQafcB DN0zoo7PQ+JBjY14Q0Stg/mqlYeE/C0RtfCMYfIMmng4FjM/CommbyNms8Cb+zPxXM nFn6Hxx95ivSV6Jm8pVibkTN3mJeiQcOkJ5EsC/LBQPNrwc0qmWC/Mh1TKIF7WMl9g K2r0iMYxbEfMmd1fJ3Jg1GcCmH4IPSz+4SIgVwqon2/4I8uNjjUndMFytD7jlmqisK 4YGMtkPz4B9XA== From: =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org> To: Stefan Roese <sr@denx.de> Cc: u-boot@lists.denx.de, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>, =?utf-8?q?Marek_Beh=C3=BAn?= <marek.behun@nic.cz> Subject: [PATCH u-boot-marvell 0/5] More verifications for kwbimage in SPL Date: Thu, 11 Nov 2021 16:59:48 +0100 Message-Id: <20211111155953.31526-1-kabel@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
More verifications for kwbimage in SPL
|
expand
|
From: Marek Behún <marek.behun@nic.cz> Hello Stefan, this series adds more checks for kwbimage validity and consistency to SPL, mainly checking image data checksum. Marek Pali Rohár (5): arm: mvebu: Check that kwbimage offset and blocksize are valid SPL: Add struct spl_boot_device parameter into spl_parse_board_header() arm: mvebu: Check that kwbimage blockid matches boot mode SPL: Add support for checking board / BootROM specific image types arm: mvebu: Check for kwbimage data checksum arch/arm/mach-mvebu/spl.c | 71 +++++++++++++++++++++++++---- arch/arm/mach-sunxi/spl_spi_sunxi.c | 2 +- common/spl/spl.c | 13 +++++- common/spl/spl_ext.c | 9 ++-- common/spl/spl_fat.c | 11 +++-- common/spl/spl_legacy.c | 3 +- common/spl/spl_mmc.c | 43 ++++++++++------- common/spl/spl_nand.c | 5 +- common/spl/spl_net.c | 2 +- common/spl/spl_nor.c | 4 +- common/spl/spl_onenand.c | 2 +- common/spl/spl_ram.c | 2 +- common/spl/spl_sata.c | 9 ++-- common/spl/spl_sdp.c | 2 +- common/spl/spl_spi.c | 9 ++-- common/spl/spl_ubi.c | 4 +- common/spl/spl_usb.c | 4 +- common/spl/spl_xip.c | 4 +- common/spl/spl_ymodem.c | 4 +- drivers/usb/gadget/f_sdp.c | 12 +++-- include/sdp.h | 3 +- include/spl.h | 7 +++ 22 files changed, 160 insertions(+), 65 deletions(-)