]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hwmon: Remove amd_energy driver
authorGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 11:08:30 +0000 (04:08 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:52:08 +0000 (06:52 -0700)
commit9049572fb145746725b198a19e27fa2671b80448
tree99766d2429bc786376499ae57b4183e61aea1dd3
parente1576396a7a0c1657326ec20ca50599bdc4def0d
hwmon: Remove amd_energy driver

Commit 60268b0e8258 ("hwmon: (amd_energy) modify the visibility of
the counters") restricted visibility of AMD energy counters to work
around a side-channel attack using energy data to determine which
instructions are executed. The attack is described in 'PLATYPUS:
Software-based Power Side-Channel Attacks on x86'. It relies on quick
and accurate energy readings.

This change made the counters provided by the amd_energy driver
effectively unusable for non-provileged users. However, unprivileged
read access is the whole point of hardware monitoring attributes.

An attempt to remedy the situation by limiting and randomizing access
to chip registers was rejected by AMD. Since the driver is for all
practical purposes unusable, remove it.

Cc: Naveen Krishna Chatradhi <nchatrad@amd.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/amd_energy.rst [deleted file]
Documentation/hwmon/index.rst
MAINTAINERS
drivers/hwmon/Kconfig
drivers/hwmon/amd_energy.c [deleted file]