Re: [PATCH] platform/x86: dell-wmi-sysman: Fix instance ID bounds

From: Ilpo Järvinen

Date: Tue Aug 18 2026 - 07:22:59 EST


On Fri, 14 Aug 2026 22:25:35 +0900, HyeongJun An wrote:

> The get_instance_id() macro walks the per-type attribute array with
> 'i <= instances_count'. Each array is allocated with exactly
> instances_count entries, so the valid range is [0, instances_count)
> and the last iteration reads one element past the end. On a name miss
> that out-of-bounds attribute_name is handed to strcmp(), which reads on
> until it finds a NUL byte.
>
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86: dell-wmi-sysman: Fix instance ID bounds
commit: 5ab078e3241da0beec2022254b5811a8a52cff84

--
i.