News: 0001504059

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.13 To Enhance Logic For Trusting Built-In Thunderbolt Controllers

([Hardware] 6 Hours Ago Thunderbolt)


Due to the possibility of DMA attacks from connected Thunderbolt devices, Linux and other platforms have built up safeguards over the years and [1]different security levels for Thunderbolt to better protect systems having this high speed interface exposing PCIe. With the upcoming Linux 6.13 kernel, the logic of the kernel is being enhanced to better detect and trust built-in Thunderbolt controllers.

Esther Shimanovich with Google prepared the patch for detecting and trusting built-in Thunderbolt chips. Esther explains with [2]the patch queued into the PCI subsystem's "thunderbolt" branch ahead of the Linux 6.13 merge window:

Some computers with CPUs that lack Thunderbolt features use discrete Thunderbolt chips to add Thunderbolt functionality. These Thunderbolt chips are located within the chassis; between the Root Port labeled ExternalFacingPort and the USB-C port.

These Thunderbolt PCIe devices should be labeled as fixed and trusted, as they are built into the computer. Otherwise, security policies that rely on those flags may have unintended results, such as preventing USB-C ports from enumerating.

Detect the above scenario through the process of elimination.

1) Integrated Thunderbolt host controllers already have Thunderbolt implemented, so anything outside their external facing root port is removable and untrusted.

Detect them using the following properties:

- Most integrated host controllers have the "usb4-host-interface" ACPI property.

- Integrated Thunderbolt PCIe root ports before Alder Lake do not have the usb4-host-interface ACPI property. Identify those with their PCI IDs instead.

2) If a root port does not have integrated Thunderbolt capabilities, but has the "ExternalFacingPort" ACPI property, that means the manufacturer has opted to use a discrete Thunderbolt host controller that is built into the computer.

This host controller can be identified by virtue of being located directly below an external-facing root port that lacks integrated Thunderbolt. Label it as trusted and fixed.

Everything downstream from it is untrusted and removable.

Thus this change expected for Linux 6.13 should fix the issue of USB-C/Thunderbolt ports sometimes not being properly enumerated under Linux.

The Linux 6.13 merge window will be opening later this month while the stable Linux 6.13 kernel will debut in February.



[1] https://www.phoronix.com/news/Thunderbolt-Security-Levels

[2] https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?h=thunderbolt&id=591dcd25b1f0d5e5744b17fd9f2f615131f91c98



uid313

colejohnson66

uid313

Anux

reba

ziguana

billyswong

Some 1500 miles west of the Big Apple we find the Minneapple, a
haven of tranquility in troubled times. It's a good town, a civilized town.
A town where they still know how to get your shirts back by Thursday. Let
the Big Apple have the feats of "Broadway Joe" Namath. We have known the
stolid but steady Killebrew. Listening to Cole Porter over a dry martini
may well suit those unlucky enough never to have heard the Whoopee John Polka
Band and never to have shared a pitcher of 3.2 Grain Belt Beer. The loss is
theirs. And the Big Apple has yet to bake the bagel that can match peanut
butter on lefse. Here is a town where the major urban problem is dutch elm
disease and the number one crime is overtime parking. We boast more theater
per capita than the Big Apple. We go to see, not to be seen. We go even
when we must shovel ten inches of snow from the driveway to get there. Indeed
the winters are fierce. But then comes the marvel of the Minneapple summer.
People flock to the city's lakes to frolic and rejoice at the sight of so
much happy humanity free from the bonds of the traditional down-filled parka.
Here's to the Minneapple. And to its people. Our flair for style is balanced
by a healthy respect for wind chill factors.
And we always, always eat our vegetables.
This is the Minneapple.