From: Luis Chamberlain <mcgrof@kernel.org>
To: Dave Airlie <airlied@gmail.com>
Cc: torvalds@linux-foundation.org, Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org, gregkh@linuxfoundation.org,
Daniel Vetter <daniel@ffwll.ch>,
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 <airlied@redhat.com>,
Paul Moore <paul@paul-moore.com>,
Casey Schaufler <casey@schaufler-ca.com>
Subject: Re: [PATCH] docs: driver-api: firmware: add driver firmware guidelines.
Date: Mon, 18 Jul 2022 15:00:11 -0700 [thread overview]
Message-ID: <YtXX604B2X8vdH9b@bombadil.infradead.org> (raw)
In-Reply-To: <20220718072144.2699487-1-airlied@gmail.com>
On Mon, Jul 18, 2022 at 05:21:44PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> 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 <airlied@redhat.com>
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 <mcgrof@kernel.org>
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
WARNING: multiple messages have this Message-ID (diff)
From: Luis Chamberlain <mcgrof@kernel.org>
To: Dave Airlie <airlied@gmail.com>
Cc: alsa-devel@alsa-project.org, Paul Moore <paul@paul-moore.com>,
linux-doc@vger.kernel.org, gregkh@linuxfoundation.org,
Jonathan Corbet <corbet@lwn.net>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-block@vger.kernel.org, netdev@vger.kernel.org,
Daniel Vetter <daniel@ffwll.ch>,
dri-devel@lists.sf.net, Casey Schaufler <casey@schaufler-ca.com>,
Dave Airlie <airlied@redhat.com>,
torvalds@linux-foundation.org, linux-media@vger.kernel.org
Subject: Re: [PATCH] docs: driver-api: firmware: add driver firmware guidelines.
Date: Mon, 18 Jul 2022 15:00:11 -0700 [thread overview]
Message-ID: <YtXX604B2X8vdH9b@bombadil.infradead.org> (raw)
In-Reply-To: <20220718072144.2699487-1-airlied@gmail.com>
On Mon, Jul 18, 2022 at 05:21:44PM +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> 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 <airlied@redhat.com>
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 <mcgrof@kernel.org>
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
next prev parent reply other threads:[~2022-07-18 22:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 7:21 [PATCH] docs: driver-api: firmware: add driver firmware guidelines Dave Airlie
2022-07-18 7:21 ` Dave Airlie
2022-07-18 7:21 ` Dave Airlie
2022-07-18 9:33 ` Thorsten Leemhuis
2022-07-18 9:33 ` Thorsten Leemhuis
2022-07-18 22:04 ` Jakub Kicinski
2022-07-18 22:04 ` Jakub Kicinski
2022-07-19 0:33 ` Dave Airlie
2022-07-19 0:33 ` Dave Airlie
2022-07-19 0:33 ` Dave Airlie
2022-07-18 17:54 ` Rodrigo Vivi
2022-07-18 17:54 ` Rodrigo Vivi
2022-07-19 0:29 ` Dave Airlie
2022-07-19 0:29 ` Dave Airlie
2022-07-19 0:29 ` Dave Airlie
2022-07-19 14:49 ` Pierre-Louis Bossart
2022-07-19 14:49 ` Pierre-Louis Bossart
2022-07-18 22:00 ` Luis Chamberlain [this message]
2022-07-18 22:00 ` Luis Chamberlain
-- strict thread matches above, loose matches on Subject: below --
2022-07-18 7:05 Dave Airlie
2022-07-18 7:05 ` Dave Airlie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YtXX604B2X8vdH9b@bombadil.infradead.org \
--to=mcgrof@kernel.org \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=alsa-devel@alsa-project.org \
--cc=casey@schaufler-ca.com \
--cc=corbet@lwn.net \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.sf.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.