Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1276934rdh; Fri, 24 Nov 2023 08:45:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/rre1aD0ueD5RMA4ZGXKa2AlKF62H9/RLaSL3sGaRzreWcX/xtE+FyBNDLmXlLpgDx7f/ X-Received: by 2002:a17:90b:1bcf:b0:285:8646:bf61 with SMTP id oa15-20020a17090b1bcf00b002858646bf61mr3556116pjb.33.1700844302983; Fri, 24 Nov 2023 08:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700844302; cv=none; d=google.com; s=arc-20160816; b=UEgmsZDGoNMnnnGP+isnENU3RLatWQS7SXRkCREvmiTZsdxNp5wtr00VULKc/X+xhE bw0ZO4/xdeTQ7SZEocz+emf0ATIdjP9mdEXDOrtWXmf21A0jVHad38gf66W/FfQPCD74 2kRnWshzyHYXzTyPUp5vP88D1s1TqS87wQQPwbnx3W538PEDI+Mzv/WKtUIAEZ8BSm/0 D371OHNDsC4JNL+bkHOq0BeSS79GDv85PGItG48EHDbX70MENp7eU3wKNwuD+k/mpZJ1 AWZReGoL8FoZF1lpSltQgtsxglRWWvsUgS7Min4pGbbfE7ksADAxfk1tcERpXFZK/HzR kHcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eTvvLpc/lQ1IYam/4WMyqh31WhxYZeRidb/FkhT6ERc=; fh=6Li/7ucKeQi6NRUwY/iP/xcFJp3xfP4BMeJY7u3njKE=; b=VTZERjLo14k0T9ipeetDSxjrznsl4FMLSI4MMyNSzX66Duqc5hKVwnNpJJ0y694A24 BsBJ8n5g5803OEgbhG0ztafIsmgVw1TvkCeXn+Woc2RbPD259bm8+glXNHHcUF8XMYPB QvZJSlgPOHx5pt81QNoBByIEq3RAon/6nPwanlNhN1Nun04uLTqNFtkM/SmspHS8qh12 4t1V/SFjNABdmmuU8dU3488sJxfloxXSfhsPyXzUqSt6p5T5ReThrWFYkY2W1BRvcLJ7 139JvS/g4vhpDNYIm2t2QlyIj+lthdmfUkuN3S4KtAqkkOC7Ic6RH/sO1y0pfHS9+/61 aQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T4k9m2a4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z21-20020a17090ab11500b0028586088459si2234813pjq.158.2023.11.24.08.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:45:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T4k9m2a4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 182D38072A29; Fri, 24 Nov 2023 08:45:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbjKXQos (ORCPT + 99 others); Fri, 24 Nov 2023 11:44:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231454AbjKXQoo (ORCPT ); Fri, 24 Nov 2023 11:44:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D300419B3 for ; Fri, 24 Nov 2023 08:44:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48056C433C7; Fri, 24 Nov 2023 16:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700844290; bh=NJapw9r3ZsOAeD3DLgBX296z/MrigR0DCtZT3hKOuio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T4k9m2a4J9+l7t92XW0tq7E2AGmFIHF8IEv1SRcnzBSfDM0wdUsdiZgHk8vTWBu2N W/DWQx5bh/90B+Ovbi3JN+QIgBg15UmPMVAI2Ovf3gpMa6hkHVVHJTKpGkGEchrgpH BsqjV3yoAPwlpNOf/KUZNB53n132RYkLmRgmjP60xJVwfVEBkXLZfz0PZch2EGZCHi o4gJ2BdTFtzsJBnLv4FmLWhHz61Qvmp5JtblTC7Gl4ZPxnPDvUB0WwZBX+1+aBQ04I 86rwDeck8aeosh72G27uZtMgOVcFmz9dAJSl41HAntepBR6IJ4hOjq8JfbpYdULEpl wEcvPyITv6i0w== Date: Fri, 24 Nov 2023 16:44:45 +0000 From: Simon Horman To: =?utf-8?B?S8O2cnk=?= Maincent Cc: Jakub Kicinski , 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: <20231124164445.GS50352@kernel.org> References: <20231121-feature_firmware_error_code-v2-1-f879a7734a4e@bootlin.com> <20231121173022.3cb2fcad@kernel.org> <20231122114325.5bacca5a@kmaincent-XPS-13-7390> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231122114325.5bacca5a@kmaincent-XPS-13-7390> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:45:02 -0800 (PST) On Wed, Nov 22, 2023 at 11:43:25AM +0100, Köry Maincent wrote: > 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 > > > > > > Expand the firmware error code with an additional code: > > > - "firmware invalid" code which can be used when the provided firmware > > > is invalid > > > > Any idea what this is? > > > > lib/test_firmware.o: warning: objtool: test_fw_upload_prepare() falls through > > to next function __cfi_test_fw_upload_cancel() > > > > 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=1 does not show the error. Hi Kory, I am able to observe this warning when compiling with clang-16 make LLVM=1 lib/test_firmware.o ...