Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1279502rdh; Fri, 24 Nov 2023 08:48:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmEuzY2uR07ApLVKx1Ao619oEveiszYGoHsGvzOklaUi2US/lkg1Zjq0xcMg6sE7gSfZi0 X-Received: by 2002:a17:90b:1c8b:b0:27c:f309:f381 with SMTP id oo11-20020a17090b1c8b00b0027cf309f381mr3680005pjb.6.1700844530204; Fri, 24 Nov 2023 08:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700844530; cv=none; d=google.com; s=arc-20160816; b=bcSrrWI1zr7g1bWGatOa7qiQ+/D/og+/SB3DDvUFouIc28tm7R8l3cT6OqcRerEUUk xsVKAJ5dj2usuOl4MZ/SkoCMyM0Fm0xPgCVl5EscbHsZ1OKJrzSYvcvkmd34MCt+94v3 DLh1YanVVtNeexJdJv9HuD4CBTqKABEeYIP7/Vynz2YgIl25cqD3ZwOkHrB06O+DXGOp Lozs2EmmttqMJP/efPj3+sKd16/0G4qMBbtxTI7TgSkG7qOsxDJTOLFb1X5K90RLz7QE BCULj3HDNq2fM5gsLbXZqBsvujdOo9VCRG/wYrfYcmmwUg9MPTMyZsT7OChqoVorvEpE JHjA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ei9yFKC55y/a097b9tWijAE0CrS/GfH/4JPGxqYsQbo=; fh=9lSK6+ojr0B2hyvjZ7VUDi7jXaDYAnBcQAGels/AT0c=; b=zYF+yxY0bjZruIs9SgnFGMLkhyhZn5YwMRT/3BZzhrSo2rotVvYVXUC/2J2Dd7tE62 UlTAWAjfi66gXRrk09E7YMuLsUZYG3qgkMVHgNZMq8BV0D8Wolf+NomEAqyBW2JoPEMD V8IxeZMGk22JM8P1xVfDyDC/bWm6b/cbWvdojE8+vmCUqznHVvJIR7AIYz+T9PhGxQOk +/hGN/g/1QgPska3GcqUUv4CmkCLvo6/rtEbbQLn0Telbq3BINo/4QllDqFn898+JvRM kYm/qQeQ1J9JfHY8IhGAYtlsZCmMcIX+wlDCfpf/ggsL2UOkqRA5Eme1shQ1H+cVeZwD 1vbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="u8y+L/N7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id a19-20020a656413000000b005bd039e5a04si4029890pgv.622.2023.11.24.08.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:48:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="u8y+L/N7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 12BBB8047462; Fri, 24 Nov 2023 08:48:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbjKXQse (ORCPT + 99 others); Fri, 24 Nov 2023 11:48:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbjKXQsc (ORCPT ); Fri, 24 Nov 2023 11:48:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA0E18E for ; Fri, 24 Nov 2023 08:48:39 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12046C433C8; Fri, 24 Nov 2023 16:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700844519; bh=aOSyWxsPCSARKTHyqNLlusRc2HF7ChrOhJn8s86UXsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u8y+L/N74Nut5tJxqr8hMdvI0Nj4LKerxwOPf666UaRxC7XLfeNBwhQIA4muf0/sy vL1K57nDKxZDNup4Zhzw4Glcm6i5ZB0GkPMsIDIf4lMP5joqsZcpmE7doL8svoNL1i l6R733FuEeSrG5wDOAErGNTF0YufnEZ3U2jFlVQ/6dbVxsdzt0g3JOLgAeN/soTJ0P VRxuGcN8uoulmVTJE9a16feowMBrT81YnpsUcu2Lo8YuY+mPADkurjx2YCxOzLUdoP HM98Eh5aOdFqMEWg6eYpQrEdxha2pCypYuF1BVXBfD84TWY5SM9uYyHl4K4uUQ06Yb KEihAys3IRodw== Date: Fri, 24 Nov 2023 16:48:34 +0000 From: Simon Horman To: Kory 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 v3] firmware_loader: Expand Firmware upload error codes with firmware invalid error Message-ID: <20231124164834.GT50352@kernel.org> References: <20231122-feature_firmware_error_code-v3-1-04ec753afb71@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122-feature_firmware_error_code-v3-1-04ec753afb71@bootlin.com> 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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:48:48 -0800 (PST) On Wed, Nov 22, 2023 at 02:52:43PM +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 > > Sync lib/test_firmware.c file accordingly. > > Acked-by: Luis Chamberlain > Acked-by: Greg Kroah-Hartman > Signed-off-by: Kory Maincent > --- > > Changes in v3: > - Add the newly introduced error code to test_firmware.c I verified that the error obvserved in v2 when compiling the above file with clang-16 has been resolved. Link: https://lore.kernel.org/all/20231121173022.3cb2fcad@kernel.org/ Reviewed-by: Simon Horman ...