Skip to content

hwmon: Fix ASUS ROG Ryujin HID report handling

Arie Miller linux-hwmon lkml sashiko-reviews stable 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2hwmon: (asus_rog_ryujin) Validate HID report lengthsdrivers/hwmon/asus_rog_ryujin.c+15 -11 reply
2/2hwmon: (asus_rog_ryujin) Synchronize HID command and report handlingdrivers/hwmon/asus_rog_ryujin.c+14 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] hwmon: Fix ASUS ROG Ryujin HID report handling

A Sashiko review found two pre-existing issues in the ASUS ROG Ryujin
driver: missing HID report length validation and a race between completion updates and reinitialization.

Reject undersized reports and serialize both paths with the existing spinlock.

Tested on an ASUS ROG Ryujin III EVA using a DKMS-built module with 16,000 concurrent hwmon reads and 50 liquidctl status requests over hidraw. No failures, timeouts, lock warnings, or HID errors were observed.

Arie Miller (2):
hwmon: (asus_rog_ryujin) Validate HID report lengths
hwmon: (asus_rog_ryujin) Synchronize HID command and report handling

 drivers/hwmon/asus_rog_ryujin.c | 30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)
Signature · 1 line
2.55.0