Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3809996imw; Mon, 18 Jul 2022 15:06:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tYjAoM3sLjHjCOO+0lo3xuSTircEeeZY1OWCXpsBDmsHDrqsCRTc7mjrs81DK1qWctRfEb X-Received: by 2002:a05:6808:120f:b0:325:bc53:2150 with SMTP id a15-20020a056808120f00b00325bc532150mr14727606oil.139.1658181987267; Mon, 18 Jul 2022 15:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658181987; cv=none; d=google.com; s=arc-20160816; b=s6Z4MXCAOeMStOiDPImBTspz4spWs8Adw7l1nrqTdv2kgNFpk/2a/R+B6nGWUW0Dhj OMipZ/Z1hd8IB00kTaSRGLQQLkDKSi9amlOJxVJxZTkKZVxaddCUfD9BHR5J2KYeqT3O mTUQ9ypx584AORncZWHOSe37L022iTGer5tm6juh0bxKy3BOr9n2H1+FOwt6vWIb/6lO +3vNvjtVeCFhZ3YjEutRaJr7mvd8Q9i+2n0KuDpIL6ACCrGuJKabQhNcASbtmKQ2UuPz aqVHZWmgvf1TqmiA6+6+sTXYdh4K6RoH+XQyMkNjjXFjmgzckw9R70BelXUgGsWZ1Am5 9JGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Smy+K5SsBoKu7R2Ez6Wknyaqr3gfX9BPVA5fVt2P8T0=; b=C88JkxpIkrBfPd2aZvYUDxCgHeoDE7dCNq/Gs1fyVJfkjrMvGwYzNgNL1z3eXTKaUO I7/9ijzP44jw5/sDITvsztnOWspCeNghigYzISPr+/MHNdOED+0cCFIjZ7d52p4Okx8I SxlbUz3rRx/O58itv2DqvozxQiIfUFqGVfVFHNJDasyjPQvU7Q/w2UlnOQv3er9SlRwd Btye55p1ZaS/sU/wgdxMb67Ws1z31G32ApdAydR3JJY+D+R2P8asOPPaYeSJ+zlR8fiD cCzoRARFl7OLpiGUu4VLvPlOIOepA72WxqbSLQMn1u7dIbG3cuI+6U8/nMpX1+GVynO6 AWAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=leyACy2j; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a4a8dc3000000b0043559b57c5dsi8068278ool.77.2022.07.18.15.06.11; Mon, 18 Jul 2022 15:06:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=leyACy2j; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236380AbiGRWAR (ORCPT + 65 others); Mon, 18 Jul 2022 18:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233981AbiGRWAQ (ORCPT ); Mon, 18 Jul 2022 18:00:16 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A3F30567; Mon, 18 Jul 2022 15:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Smy+K5SsBoKu7R2Ez6Wknyaqr3gfX9BPVA5fVt2P8T0=; b=leyACy2j4DACa1kT6Gpoba8VOm VOcEfZL3PkIZgiPs8NmLAJaBh8ucD+6kAoUEzxAXkRiJhdoKUCC9eS2BxTrWrSU3Gqy8FGHCl0+Yf cnoOA2e2G7FTo7OqIQ+Jms+460wxBba1ZdXNg9IsZJuJ86ignpBqHcbMW+ipI2+RdNLMHKQbtEnSK yUQZmHoK4wSnrk6TsdqloQ/tkKm0+6MDqgVLg+haVl7nQ2yUnqoiirjvDUaegs24clTHejTLG5Nhf GrMHfUZ3Mq47NEGdmLxe/Y3iaYND/IDLOH/w41NkO0UbGqm0/y7Hu229QF2xyeGt/BSMoNktdIPyL BQ+qyY7Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDYmh-001q88-OL; Mon, 18 Jul 2022 22:00:11 +0000 Date: Mon, 18 Jul 2022 15:00:11 -0700 From: Luis Chamberlain To: Dave Airlie Cc: torvalds@linux-foundation.org, Jonathan Corbet , linux-doc@vger.kernel.org, gregkh@linuxfoundation.org, Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.sf.net, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, alsa-devel@alsa-project.org, linux-media@vger.kernel.org, linux-block@vger.kernel.org, Dave Airlie , Paul Moore , Casey Schaufler Subject: Re: [PATCH] docs: driver-api: firmware: add driver firmware guidelines. Message-ID: References: <20220718072144.2699487-1-airlied@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220718072144.2699487-1-airlied@gmail.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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-wireless@vger.kernel.org On Mon, Jul 18, 2022 at 05:21:44PM +1000, Dave Airlie wrote: > From: Dave Airlie > > A recent snafu where Intel ignored upstream feedback on a firmware > change, led to a late rc6 fix being required. In order to avoid this > in the future we should document some expectations around > linux-firmware. > > I was originally going to write this for drm, but it seems quite generic > advice. > > I'm cc'ing this quite widely to reach subsystems which use fw a lot. > > Signed-off-by: Dave Airlie Document well deserved to be written, thanks for making this happen. Modulo all the silly spelling / bike-shedding issues folks might find, in case you care to re-spin for a v2: Acked-by: Luis Chamberlain Now let's think about the impact of two corner cases which *do* happen and so this poses security implications on enablement: 1) Devices which end up with a security issue which a vendor considers obsolete, and the only way to fix something is firmware. We're security-out-of-luck. For this I've previously sucessfully have put effort into organizations to open source the firmware. We were successful more than once: * https://github.com/qca/open-ath9k-htc-firmware * https://github.com/qca/ath6kl-firmware When these efforts fall short we have a slew of reverse engineering efforts which fortunately also have been sucessfull. 2) Vendor goes belly up Both implicate the need to help persuade early on a strategy for open source firmware, and I don't want to hear anyone tell me it is not possible. When that fails we can either reverse engineer and worst case, I am not sure if we have a process for annotations or should. Perhaps a kconfig symbol which drivers with buggy firmware can depend on, and only if you enable that kconfig symbol would these drivers be available to be enabled? Are we aware of such device drivers? They must exist... Luis