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 01ABFCCF9E3 for ; Tue, 11 Nov 2025 07:18:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4104F83B9B; Tue, 11 Nov 2025 08:18:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=pschenker.ch 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=pschenker.ch header.i=@pschenker.ch header.b="Po1w4sHU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0926383B4A; Tue, 11 Nov 2025 08:18:40 +0100 (CET) Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [185.125.25.8]) (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 AF7D3809A5 for ; Tue, 11 Nov 2025 08:18:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=pschenker.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dev@pschenker.ch Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4d5HvK2y0kzvjR; Tue, 11 Nov 2025 08:18:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pschenker.ch; s=20220412; t=1762845517; bh=PlE9L+s6Vozrj58zEZR0yZAjoNtC706PPicNNwSnY1Y=; h=From:To:Cc:Subject:Date:From; b=Po1w4sHUsIL0w2O96B+RBWvV/tShYH4U1mWLmf95aTo1+J/eXn5RfEYnwOqKBrq/C Zw55iL5qDZMwy46EudVEbPO/09S5GAcM3b2TWPgTAuvfgoBYa2CIu6l/h7L/TiT0SI z+dzA6U6i5rQs/ZPxyvpbqhjoaBp/On03kibNg00= Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4d5HvJ46CqzyMJ; Tue, 11 Nov 2025 08:18:36 +0100 (CET) From: Philippe Schenker To: u-boot@lists.denx.de Cc: stefan@embear.ch, Philippe Schenker , Andrew Davis , Andrew Goodbody , Anshul Dalal , Beleswar Padhi , Hari Nagalla , Judith Mendez , Neha Malcom Francis , Peng Fan , Tom Rini , Ye Li Subject: [PATCH v3 0/6] remoteproc: k3-r5: Build fixes and security improvements Date: Tue, 11 Nov 2025 08:16:24 +0100 Message-ID: <20251111071756.1257488-1-dev@pschenker.ch> X-Mailer: git-send-email 2.51.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha 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 From: Philippe Schenker This series fixes compilation errors when building for R5 cores and addresses a security issue where authenticated images were not being used correctly. Patch 1: Cosmetic removal of duplicate code Patches 2-3: Fix build errors caused by type mismatches between function signatures and the types used in R5 builds. Patches 4-5: fix a bug where ti_secure_image_post_process() relocates images during authentication, but callers were still using the original unverified addresses. Patch 6: Implements is_running operation to allow querying R5F core status. Changes in v3: - Implemented Andrew's suggestion to assign size before casting for memory safety. - Added Anshul's Reviewed-by, thanks! Changes in v2: - Made sure there are no build-warnings caused by this series. Philippe Schenker (6): arm: dts: k3-am642-evm: Remove duplicate node remoteproc: k3-r5: cast size to size_t6dd soc: ti: pruss: Fix size ptr type in probe mach-k3: security: Propagate verified image addr remoteproc: k3-r5: Use verified image address remoteproc: k3-r5: Implement is_running operation arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ---- arch/arm/mach-k3/security.c | 2 ++ drivers/remoteproc/ti_k3_r5f_rproc.c | 26 +++++++++++++++++++++++--- drivers/soc/ti/pruss.c | 2 +- 4 files changed, 26 insertions(+), 8 deletions(-) -- 2.51.2 base-commit: 6b27b6886945a9351fcea8c9acf9418844f46670 branch: am64x-various-fixes__master