Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp789786rdf; Tue, 21 Nov 2023 17:31:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHl09DvI0pNSYO2Kzc6Mt/WlMldJ4BtgNuU0pS2axf5TOJmwJaEUGWwFayn8hv3bnlQ4VGI X-Received: by 2002:a17:902:7d84:b0:1ce:89a7:4403 with SMTP id a4-20020a1709027d8400b001ce89a74403mr916869plm.58.1700616677076; Tue, 21 Nov 2023 17:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700616677; cv=none; d=google.com; s=arc-20160816; b=Cuc32paVhseY+o9WnYxvTu+UEqb2k6Ry+BHdGWXH4k5V6xyfEpRyxRFNMzs3J7gRYJ 1inIWrzSiHCm4zaViAUPuoKJvcrvRJ0WVl/DsKJwVQXhyQ4sHT2Eea/miOLlHaPZoOUI yTtVc8uzPldP39mNc7rameqe7KLx/YhPH7Wr9JLo9mMV4enSqft+Bxd0cazWM4pA2aqN wZxtYJzJP1wclhiKIe2yjpG4TYGe0v9t9ErUBSjuz/yleZs6GRrNDbyO9gXF7EFqOpjN b7FYM5uBFdTCQyQ6H7VB8wOBLbSVEOAKYZZSvogwMnMpKQev7vCYu85w8DUAWf0IgrS+ mHgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=VFBrMp+b3FIDzhjYpNzFMf13mrsWYv2qNGQpd+2RJ0Y=; fh=gfUDSK0zam4SgUCQMNbj6NIorKPdFHpSPg2MXFkQJqY=; b=IwYZQjUzFu5Yt/3w/3aQHJjTqaMYfkQnEW+iyjjy47E9Bo/pY5f+Jrhd14WKe2N1bL j/6/Wnp+uLPIoGCwbbuxhyffpIg8fz6820HUJWv0XJu2JZGQQjNzWM1Ces4ei+BjJ9en xxVZPppwNEOjk5l5KIt1G2gDZkwSlBC8dNrKPG0qVmjzSBpl7wFt0l64H+6sEtkAqfa1 wUR/suCOVPfesvd1SSYsqLDriAtm3UyHMAneNgx2hoZQbquzMz20h/VWiSAnlrYSpDCy 3xHcssU+3xJY+kSsPy5nOAEgLqpqaX7Oq5CDRp33dJxaSrXg/TYsUVycmgzIsb8uHDg3 5ssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p3L8Bdjj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h13-20020a170902eecd00b001ca485b8514si11145839plb.646.2023.11.21.17.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 17:31:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p3L8Bdjj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 66197807EB94; Tue, 21 Nov 2023 17:30:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235032AbjKVBaa (ORCPT + 99 others); Tue, 21 Nov 2023 20:30:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235024AbjKVBa2 (ORCPT ); Tue, 21 Nov 2023 20:30:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F400DDD for ; Tue, 21 Nov 2023 17:30:23 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 318CEC433C7; Wed, 22 Nov 2023 01:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700616623; bh=qLkVBzXHR/QW5/imP3V/FC/AudAulL8dc5GkIdRhqfA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p3L8BdjjfTylDPlZyTn75Ouq8WJdrrS/p+OC10QDvCVlu/ODKjLeTcV03nzppkIgi VMQA0a14bUeAqU6XFbXy1NrJsJ3aABmZnLu4Na+HcLOS9bkmDT47FJXScrXrMNlwnD zmuD7fiGuTBnp7v7iyodEsqmNdXAqdC8IsmbQVQ5SvHi6lQ2ujoiRBV4SDn9TkZQRB IIVGw58jUDEqluWJoa/udAezJY34dSvGn3+e2hu4K7M8xkS4eeCGx8Hnh+B3Gy0Qt8 AMcaz0paSaev1SLJeAgg3Pmi6mgauiCFdIvwJTBWuBin+PS1ebc69OnN9BQcyrgZPy 3/lqwSXL9P05A== Date: Tue, 21 Nov 2023 17:30:22 -0800 From: Jakub Kicinski To: Kory Maincent 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: <20231121173022.3cb2fcad@kernel.org> In-Reply-To: <20231121-feature_firmware_error_code-v2-1-f879a7734a4e@bootlin.com> References: <20231121-feature_firmware_error_code-v2-1-f879a7734a4e@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 17:30:35 -0800 (PST) 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.