coresight: ete: Always save state on power down
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 35e1c9163e025855f23a68f2470c471509e5d779 · < 2ab4645fe4206c142a5f1491e191c906279686cf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
coresight: ete: Always save state on power down
System register ETMs and ETE are unlikely to be preserved on CPU power down. The ETE DT binding also never documented "arm,coresight-loses-context-with-cpu" so nobody would have legitimately been able to use that binding to fix it and ACPI has no such binding at all.
Fix it by hard coding the setting for sysreg ETMs (ETE is always sysreg) or ACPI boots. Use a local variable when setting up save_state so that it's immune to concurrent probing when devices have different configurations which is an issue with modifying the global.
This fixes the following error when using Coresight with ACPI on the FVP which supports CPU PM:
coresight ete0: External agent took claim tag WARNING: drivers/hwtracing/coresight/coresight-core.c:248 at coresight_disclaim_device_unlocked+0xe0/0xe8, CPU#0: perf/117
From the CVE record · Linux
The Linux kernel may fail to preserve CoreSight system-register ETM and ETE state when a CPU powers down. The report describes a warning when using CoreSight with ACPI on an FVP that supports CPU power management; it does not describe an attacker capability, authentication requirement, or user interaction.
Engineers running Linux kernels with CoreSight ETM or ETE, particularly with ACPI and CPU power management, should check their installations; affected versions are not specified.