From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EydcjXjc" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF01B2; Wed, 22 Nov 2023 02:43:28 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 64FFE24000F; Wed, 22 Nov 2023 10:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700649807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z9Jn9Nk5noUF/PTqzIkwWeHeU6ZEHpUcIb3m2TcPZOY=; b=EydcjXjcBBpcQ84DAUKbZQcDsxl7Iw6Fx3ioGQJa53bJEp0joEiWNErKbb9KREJQbbXLpR bMNl7QLlBPrIHsruXo9Ki9q3FvPByp0MWY0uAxH0OL4g4MXF2bDYgq0drIFgC5KCDwStSi GGZhYfBsyjR5xuTVo+2YLfCExtdfAMJjQWpcN4qc4T3qZxa58ihcBvBm9lgyoMJ2kBEwEe auOpVI3j68CO7EI5+IEa23h/h0iEv0iAH4IOemZoY6N9hgEkVVfPKVafxEFTZK68/wCY9X VS9gRz7OWE3Q3PiBjJQ7g9Rq4xbS8ceGSlPaCY1Mchx7WmF47osyhQMMP0uejA== Date: Wed, 22 Nov 2023 11:43:25 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski Cc: Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Petazzoni , linux-kernel@vger.kernel.org, Conor Dooley , Andrew Lunn , netdev@vger.kernel.org Subject: Re: [PATCH net-next v2] firmware_loader: Expand Firmware upload error codes with firmware invalid error Message-ID: <20231122114325.5bacca5a@kmaincent-XPS-13-7390> In-Reply-To: <20231121173022.3cb2fcad@kernel.org> References: <20231121-feature_firmware_error_code-v2-1-f879a7734a4e@bootlin.com> <20231121173022.3cb2fcad@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Tue, 21 Nov 2023 17:30:22 -0800 Jakub Kicinski wrote: > On Tue, 21 Nov 2023 11:50:35 +0100 Kory Maincent wrote: > > No error code are available to signal an invalid firmware content. > > Drivers that can check the firmware content validity can not return this > > specific failure to the user-space > >=20 > > Expand the firmware error code with an additional code: > > - "firmware invalid" code which can be used when the provided firmware > > is invalid =20 >=20 > Any idea what this is? >=20 > lib/test_firmware.o: warning: objtool: test_fw_upload_prepare() falls thr= ough > to next function __cfi_test_fw_upload_cancel() >=20 > My build shows this on an incremental clang 17 build. For my curiosity, how do you get this error? Enabling test_firmware and building with W=3D1 does not show the error. =20 Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com