Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp609332ybg; Thu, 19 Mar 2020 05:44:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtr5UTJ4MZeCeqhKgcCUj4mefMAMswcVl05G11cljOxr2oDj0108GkJSH+9OqWUHPOv6qz6 X-Received: by 2002:aca:ecd7:: with SMTP id k206mr2137623oih.113.1584621857013; Thu, 19 Mar 2020 05:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584621857; cv=none; d=google.com; s=arc-20160816; b=NmrG3qUX2s/vjRVXo+w6vd2WEUAEn2/zfcMmSC76h5iubz8ZRvXD6KmymVMLH1mmta 9wLwQsEPuYUYSmAFLcc23J+JSQziXVjRg/+TYXSA+ythVfQ1PPBGruffipkuwkMvfAk0 F0EYKRbRHe8XHfHUv9xzHH/0GPTPEh92SV7wKf7URxsJQjnAYOkLfrlddbdg4OlgflM1 N6uyzKNZGcEAUEgjax0uDBR+6iKj6JFT3uGM9YhGZ95fXe9azblRaZSvkE83y8d0uRZC ll5xvSfH4kjqsDA3Q6d6jW61eQNvP944bI1XFB2A4Vb8qyHm3s7r2+uZ6CK19YNiMf+/ iApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=JMWTP1FvAmqrLatWYU8wb1X6z1m+ck5CANNtYl0hBd8=; b=mUds80UVg2HOs7R4Aow77yrvwq2M1CbjzbiRGlFKgjzWMc362zm0cbd8wwKRrAPQH3 ey4Ma3EgAjhNEyY7tOqHf7gmnGxM04ohQ94NK/wts/s3OTtSrXZkhMPlT2si48gczMLu yJfNM88ysIu6PB2ZQgutFDyQRJ3ExGNHy+Z8p5D7gpryHjHp0gj+a+J6rdBoN0tXPNRu USdT4Qa+RTWm46XBOysEDaB1EKZsMsetW041F5xp+qjSHaAnOwIRBbj09Qdce5LHMZKW OXFCJIYgiAgPIR+j7MRXIR/3Dt7B9EH46iDmhNg35bFk3J2tL5b/jrhamhjZ/ourVW/P 58rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WhUXOt8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r19si1204845otg.54.2020.03.19.05.44.02; Thu, 19 Mar 2020 05:44:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WhUXOt8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727095AbgCSMmJ (ORCPT + 99 others); Thu, 19 Mar 2020 08:42:09 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:56860 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbgCSMmI (ORCPT ); Thu, 19 Mar 2020 08:42:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584621726; 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=JMWTP1FvAmqrLatWYU8wb1X6z1m+ck5CANNtYl0hBd8=; b=WhUXOt8zFKsVycvhzvBz80KaGs0bVll5Xf8pCyZAIyU0h1NIGbL/VdfNWhT3KTHEEJI5J+ pCk3gGvVOv8+ZZEeqGI4BwXRmOeLr9/9L3AXTXe5PbTQ6hOxS26519Avfh/5nhgdQaUha0 U32G6wjXM/HuBXng3Ggc/7TlykQH6MA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-397-4r9TKv-YOseQxcOY8nikOA-1; Thu, 19 Mar 2020 08:41:50 -0400 X-MC-Unique: 4r9TKv-YOseQxcOY8nikOA-1 Received: by mail-wr1-f69.google.com with SMTP id u12so943754wrw.10 for ; Thu, 19 Mar 2020 05:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JMWTP1FvAmqrLatWYU8wb1X6z1m+ck5CANNtYl0hBd8=; b=XGlCHPjbHWS4Y1j6KdWmPRLLVvIXEa3icDkeWFFoZBAijKV5gvcTa5Xr/UGyS/xxhL qMMA/WN5Uhk0eP2YBCbeK/e3hbSJ6aqHEQZXIr8pIbAbsOMHCi3f8qZffWRQcE/nktBC FIyWOi9dmcmjLt8maMo9diqECOPQKZ8ejel8IVnzdabgyrsE6cejot44OPpxbKqrpIt8 aHyRkndT6UTUIspnLoXuyReKa0mR1fqrpcnXEoUNrF/e75YPVWwUS11dZEnCM+LbFbhl XKlYxSjtuwf8qjZoCNw30j2Y+SFBabGNFikZvQVjBrF/OkeyfOHFcch3QK2gJ5xA/ezh tpHQ== X-Gm-Message-State: ANhLgQ236EwecRuoSZLTimfb+hLdD//uobyOVarTt22pZ9D/3itJtjI2 lCPzK7cxDEqcRDYuhSMWMX9xrpr3LMaUCNwU5rthRHhNyA7HEMkd/5HRZid6BW5PMyW11IxaphO aH1j/odgIHgTM3BzB7HdD0H/I X-Received: by 2002:adf:d4ce:: with SMTP id w14mr4140894wrk.101.1584621709099; Thu, 19 Mar 2020 05:41:49 -0700 (PDT) X-Received: by 2002:adf:d4ce:: with SMTP id w14mr4140859wrk.101.1584621708665; Thu, 19 Mar 2020 05:41:48 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-fc7e-fd47-85c1-1ab3.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:fc7e:fd47:85c1:1ab3]) by smtp.gmail.com with ESMTPSA id n18sm3344646wrw.34.2020.03.19.05.41.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Mar 2020 05:41:48 -0700 (PDT) Subject: Re: Updating cypress/brcm firmware in linux-firmware for CVE-2019-15126 From: Hans de Goede To: Chi-Hsien Lin , Chung-Hsien Hsu , Christopher Rumpf Cc: linux-firmware@kernel.org, Linux Kernel Mailing List References: <93dba8d2-6e46-9157-d292-4d93feb8ec1a@redhat.com> Message-ID: <437b92f4-71c5-7f60-5764-668cc6cc16d8@redhat.com> Date: Thu, 19 Mar 2020 13:41:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, Relaying Chris Rumpf's answer here again because of his email issues: On 3/18/20 11:06 PM, Hans de Goede wrote: > Hi All, > > On 2/26/20 11:16 PM, Hans de Goede wrote: >> Hello Cypress people, >> >> Can we please get updated firmware for >> brcm/brcmfmac4356-pcie.bin and brcm/brcmfmac4356-sdio.bin >> fixing CVE-2019-15126 as well as for any other affected >> models (the 4356 is explicitly named in the CVE description) ? >> >> The current Cypress firmware files in linux-firmware are >> quite old, e.g. for brcm/brcmfmac4356-pcie.bin linux-firmware has: >> version 7.35.180.176 dated 2017-10-23, way before the CVE >> >> Where as https://community.cypress.com/docs/DOC-19000 / >> cypress-fmac-v4.14.77-2020_0115.zip has: >> version 7.35.180.197 which presumably contains a fix (no changelog) > > Chris from Cypress has replied privately to me because of some > email issues, with the request to relay the information he > wrote here: > > On 3/18/20 6:54 PM, Christopher Rumpf wrote: > > >  Cypress' CLM upstream policy is currently fragmented, as you have indicated. > > The 43340 and 43362 have embedded CLM upstreamed yet no other Cypress parts > > have done so and only deliver the firmware.bin files.  Cypress' customers > > have been OK to follow this technote > > https://www.cypress.com/documentation/application-notes/an225347-cypress-wi-fi-clm-regulatory-manual > > which requires users to contact Cypress support to obtain the best performing > > Country Locale Matrix (CLM) for the Wi-Fi module and targeted regions. > > Such a model is of course not ideal for the open source community or for > > what we  call “the broad market” as it requires an extra human to human > > interaction that at the end of the day may reduce the user's time to > > market and ability to independently move forward. > > > >  As I am sure you are aware, Cypress’ Embedded CLM = Wi-Fi Firmware + > > regional regulatory database + RF settings (NVRAM).  The Wi-Fi Firmware is > > static across all projects however the regional regulatory database and the > > RF settings are implementation specific.  Previously the hesitation to > > release a "worldwide generic embedded CLM” was because the regional > > regulatory and RF settings are not tuned correctly for the implementation's > > characteristics and the project may experience sub-par connectivity > > performance or even perceived defects (such as power, RF, robustness). > > > > In the long term Cypress will be investing in additional tooling to automate > > these steps, perhaps even as part of the project's config or build step. > > > > In the short term Cypress is considering these two actions: > > > > 1. For all active upstreamed Cypress parts, Cypress will upstream a > >    "worldwide generic embedded CLM”.  These Embedded CLMs won’t be tuned for > >    specific project’s regional or RF settings and customers may still need > >    to reach out to Cypress support but at least they will be able to use the > >    Cypress firmware in the linux-firmware repo right out of the box. > > Note Chris later send me some clarification on this point: > > On 3/18/20 10:29 PM, Christopher Rumpf wrote: > > One clarification here! Regarding the short term solution - > > the delivery may not be “embedded clm”.  It may be three different artifacts > > which are meant to service the broad market. The Cypress R&D team will decide > > the specifics of how to address the technical implementation to deliver the > > worldwide clm. > > The below is a continuation of Chris' original email: > > >  2. Cypress will add some more documentation in our READMEs and other > >     supporting docs that discusses the risks which > >     "worldwide generic embedded CLM” brings.  Customers can then make > >     their own decision to engage with Cypress support which will depend > >     on the characteristics of their project, I would imagine. > > > > Cypress would be able to implement these actions for the next release train > > which will be posted somewhere around end of June (pending any impact due > > to the coronavirus). > > > > Would these short and long term solutions meet the needs of the > > linux-firmware community?  If no, may we collaborate more? > > Chris, if I understand you correctly then the plan would result in the Cypress > maintained firmwares in linux-firmware being in sync (being the same versions > but with a more generic CLM) with the firmwares Cypress releases as part of > their SDK; and the first time we would see this in sync. release of Cypress > maintained firmwares would be around June. Correct? On 3/18/20 11:19 PM, Christopher Rumpf wrote: The understanding of the solution and the timeline is correct. > This sounds very good to me. > > I do have one question though, you describe the firmware as consisting of > 3 parts: The actual firmware, the Country Locale Matrix and the NVRAM. > > Currently linux-firmware contains firmwares with a generic CLM embedded > in them. But AFAIK the nvram-s are device-model/project specific (more so > then the CLM-s I believe) and normally the nvram is actual part of the > device and read by the kernel driver?  The one exception to this is the > nvram files for some SDIO boards. Recent kernels have code to load > the nvram files for these SDIO boards using a device-model specific > name and the linux-firmware repository contains community contributed > NVRAM files for various device-models. Would this change with the > new firmware versions ? On 3/18/20 11:19 PM, Christopher Rumpf wrote: No changes here. My bad, I probably should have written this: > Cypress’ Embedded CLM = Wi-Fi Firmware + regional regulatory database + RF settings (NVRAM). as Cypress’ Solution = Wi-Fi Firmware + regional regulatory database (CLM) + RF settings (NVRAM). The idea/architecture here is to allow for these software parts to change independently. So yes, users can change nvram (or CLM or the firmware itself) and still use the overall solution. Regards, Hans