From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Richard Hughes <hughsient@gmail.com>
Cc: Hans-Gert Dahmen <hans-gert.dahmen@immu.ne>,
Mauro Lima <mauro.lima@eclypsium.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Greg KH <gregkh@linuxfoundation.org>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Philipp Deppenwiese <philipp.deppenwiese@immu.ne>,
"platform-driver-x86@vger.kernel.org"
<platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH] firmware: export x86_64 platform flash bios region via sysfs
Date: Thu, 11 Nov 2021 15:34:11 +0200 [thread overview]
Message-ID: <YY0b01g+z3lkO4w2@lahna> (raw)
In-Reply-To: <CAD2FfiF=7H7RuAdrSrrr57JF6YG=pb5jw2QMgBDQsAEwgasYLw@mail.gmail.com>
On Thu, Nov 11, 2021 at 01:22:25PM +0000, Richard Hughes wrote:
> On Thu, 11 Nov 2021 at 13:01, Mika Westerberg
> <mika.westerberg@linux.intel.com> wrote:
> > I'm not sure I understand why the platform security needs to be turned off?
>
> Sorry to be unclear, I meant we had to turn off Secure Boot (and thus
> also kernel lockdown) so that we could use /dev/mem to verify that
> OEMs have set up the IFD, BLE, BIOSWP etc correctly. You'd be
> surprised just how many vendors don't read the specifications
> correctly and get this wrong. We also need port IO to use the
> intel-spi driver so we can parse the BIOS contents from userspace,
> which you can't obviously do when SB is turned off. The eSPI
> controller is hidden on some hardware now, and we need to play games
> to make it visible again.
Okay, thanks for explaining.
> > I think exposing /dev/mem opens another can of worms that we want to
> > avoid.
>
> Ohh it's not all of /dev/mem, it's just the 16MB BIOS region that has
> to be mapped at that address for the hardware to boot.
I see.
> > Don't we already expose some of the EFI stuff under /sys/firmware?
>
> Yes, some information, but not the file volumes themselves. I don't
> think the kernel wants to be in the game of supporting every nested
> container and compression format that EFI supports. It's also the
> wrong layer to expose platform attributes like BLE, but that's an
> orthogonal thing to the patch Hans-Gert is proposing.
>
> > I just don't want to
> > spend yet another Christmas holiday trying to fix angry peoples laptops :(
>
> Completely understood, I don't think any of us want that.
>
> > Having said that the hardware sequencer used in the recent CPUs should
> > be much safer in that sense.
>
> FWIW, I'd be fine if we had RO access for HWSEQ flash access only. If
> I understood correctly that's what Mauro proposed (with a patch) and
> instead was told that it was being rewritten as a mtd driver
> completion time unknown.
I think Mauro proposed something different, basically exposing RO parts
of the driver only.
The intel-spi driver is being moved from MTD to SPI because the MTD
SPI-NOR maintainers (not me) said that it needs to be done before we can
add any new feature to the driver. That includes also Mauro's patch.
I have v4 of the conversion patch series done already but since it is a
middle of the merge window I'm holding it until v5.16-rc1 is released
(next sunday). I can CC you too and I suppose Hans and Mauro (who else,
let me know). Once the MTD maintainers are happy we can progress adding
features what fwupd needs there too (and the features we, Intel, want to
add there).
next prev parent reply other threads:[~2021-11-11 13:34 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 0:01 [PATCH] firmware: export x86_64 platform flash bios region via sysfs Hans-Gert Dahmen
2021-11-09 6:16 ` Greg KH
2021-11-09 8:52 ` Hans-Gert Dahmen
2021-11-09 8:56 ` Hans-Gert Dahmen
2021-11-09 10:28 ` Greg KH
2021-11-09 12:32 ` Hans-Gert Dahmen
2021-11-09 12:42 ` Greg KH
2021-11-09 14:09 ` Mauro Lima
2021-11-09 14:11 ` Mauro Lima
2021-11-09 14:10 ` Hans-Gert Dahmen
[not found] ` <CAHp75VfbYsyC=7Ncnex1f_jiwrZhExDF7iy4oSGZgS1cHmsN0Q@mail.gmail.com>
2021-11-10 8:37 ` Hans-Gert Dahmen
2021-11-10 9:04 ` Andy Shevchenko
2021-11-10 9:17 ` Hans-Gert Dahmen
2021-11-10 9:25 ` Andy Shevchenko
2021-11-10 10:00 ` Hans-Gert Dahmen
2021-11-10 13:13 ` Mauro Lima
2021-11-10 16:31 ` Andy Shevchenko
2021-11-10 17:37 ` Mauro Lima
2021-11-11 6:42 ` Mika Westerberg
2021-11-11 8:59 ` Hans-Gert Dahmen
2021-11-11 10:32 ` Mika Westerberg
2021-11-11 10:55 ` Hans-Gert Dahmen
2021-11-11 11:43 ` Greg KH
2021-11-11 11:46 ` Richard Hughes
2021-11-11 12:46 ` Andy Shevchenko
2021-11-11 12:56 ` Hans-Gert Dahmen
2021-11-11 13:54 ` Andy Shevchenko
2021-11-11 14:33 ` Hans-Gert Dahmen
2021-11-11 15:30 ` Andy Shevchenko
2021-11-11 15:43 ` Ard Biesheuvel
2021-11-11 15:49 ` Andy Shevchenko
2021-11-11 16:05 ` Hans-Gert Dahmen
2021-11-11 21:07 ` Richard Hughes
2021-11-12 6:52 ` Greg KH
2021-11-12 10:09 ` Richard Hughes
2021-11-12 10:43 ` Greg KH
2021-11-12 12:25 ` Hans-Gert Dahmen
2021-11-11 16:07 ` Hans-Gert Dahmen
2021-11-11 16:44 ` Andy Shevchenko
2021-11-11 16:55 ` Hans-Gert Dahmen
2021-11-11 17:48 ` Andy Shevchenko
2021-11-11 18:14 ` Hans-Gert Dahmen
2021-11-11 19:14 ` Ard Biesheuvel
2021-11-11 20:50 ` Hans-Gert Dahmen
2021-11-11 13:00 ` Mika Westerberg
2021-11-11 13:22 ` Richard Hughes
2021-11-11 13:34 ` Mika Westerberg [this message]
2021-11-11 13:36 ` Hans-Gert Dahmen
2021-11-11 14:42 ` Mauro Lima
2021-11-11 15:06 ` Mika Westerberg
2021-11-11 15:16 ` Hans-Gert Dahmen
2021-11-12 6:59 ` Mika Westerberg
2021-11-11 15:31 ` Mauro Lima
2021-11-11 11:50 ` Mauro Lima
2021-11-10 17:41 ` Hans-Gert Dahmen
[not found] ` <E1CBFD23-AC3B-43BF-BF0A-158844486BA9@getmailspring.com>
2021-11-09 10:24 ` Greg KH
2021-11-09 10:30 ` Philipp Deppenwiese
2021-11-09 11:25 ` Greg KH
2021-11-09 13:55 ` Mauro Lima
2021-11-09 16:12 ` Greg KH
2021-11-09 17:23 ` Mauro Lima
[not found] <20210622142334.14883-1-hans-gert.dahmen@immu.ne>
[not found] ` <YNJB4HoRa6qWgOJC@kroah.com>
2021-06-25 13:54 ` Hans-Gert Dahmen
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=YY0b01g+z3lkO4w2@lahna \
--to=mika.westerberg@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hans-gert.dahmen@immu.ne \
--cc=hughsient@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mauro.lima@eclypsium.com \
--cc=philipp.deppenwiese@immu.ne \
--cc=platform-driver-x86@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox