Re: [PATCH] platform/x86: hp-bioscfg: fix password encoding bounds check

From: Ilpo Järvinen

Date: Tue Aug 18 2026 - 10:33:56 EST


On Wed, 08 Jul 2026 17:09:37 +0800, Guangshuo Li wrote:

> The password PSWD_ENCODINGS parser reads password_obj[elem + pos_values]
> while copying the supported password encodings from the ACPI package.
>
> The outer loop only guarantees that elem is within password_obj_count.
> The encoding count is bounded by MAX_ENCODINGS_SIZE, but that does not
> guarantee that the ACPI package contains enough entries for all
> elem + pos_values accesses.
>
> [...]

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: hp-bioscfg: fix password encoding bounds check
commit: e213939ed9e6e6badf7aa48c4c8dd9a9cdf00615

--
i.