Re: [PATCH v5 3/5] hwmon: (aquacomputer_d5next) Validate incoming status reports
From: Guenter Roeck
Date: Mon Oct 26 2026 - 16:49:31 EST
On Sun, Sep 27, 2026 at 10:13:14PM +0300, Vas Zayarskiy wrote:
> The raw-event callback runs before HID core pads a short report. Check
> that the report is an input report and that its length matches the HID
> report descriptor before decoding sensor fields. Otherwise a truncated
> report can be read past its received data, and a feature report with the
> same ID can be mistaken for sensor data.
>
> Apply these checks to every device using the shared raw-event path and
> check the report ID byte before updating the cache. Legacy devices keep
> using their separate feature-report read path.
>
> Assisted-by: LLM sparse
> Signed-off-by: Vas Zayarskiy <contact@xxxxxxxxx>
Applied.
Thanks,
Guenter