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

Ilpo Järvinen <[email protected]>
Newsgroups org.kernel.vger.platform-driver-x86,org.kernel.vger.linux-kernel
Message-ID <178705204267.11998.4686250837251701.b4-ty@b4>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.