Description
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
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
35e1c9163e025855f23a68f2470c471509e5d779 to < 0f8396271d7026583bcaa71ffe2e7f6025244705affected35e1c9163e025855f23a68f2470c471509e5d779 to < 31633ba13cc49017015f606d5c66eaf5052e99a8affected35e1c9163e025855f23a68f2470c471509e5d779 to < f58d17798882a3aa3323f9d80fe85e25a38f4b93affected35e1c9163e025855f23a68f2470c471509e5d779 to < 65d87f28daec31903fc39fee0744f7a0059c19f2affected35e1c9163e025855f23a68f2470c471509e5d779 to < 293dacd5b6a9f1275d92ca6c4fd874e54b2c8319affected35e1c9163e025855f23a68f2470c471509e5d779 to < 2ab4645fe4206c142a5f1491e191c906279686cfaffected
Linux Linux
Default version status: affected
5.13affected0 to < 5.13unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0f8396271d7026583bcaa71ffe2e7f6025244705 ↗
- https://git.kernel.org/stable/c/31633ba13cc49017015f606d5c66eaf5052e99a8 ↗
- https://git.kernel.org/stable/c/f58d17798882a3aa3323f9d80fe85e25a38f4b93 ↗
- https://git.kernel.org/stable/c/65d87f28daec31903fc39fee0744f7a0059c19f2 ↗
- https://git.kernel.org/stable/c/293dacd5b6a9f1275d92ca6c4fd874e54b2c8319 ↗
- https://git.kernel.org/stable/c/2ab4645fe4206c142a5f1491e191c906279686cf ↗