Re: [PATCH v4 2/4] gpiolib: acpi: fix resource leak in OpRegion

From: Mika Westerberg

Date: Tue Jun 02 2026 - 05:53:59 EST


On Tue, Jun 02, 2026 at 10:57:50AM +0300, Andy Shevchenko wrote:
> On Mon, Jun 01, 2026 at 02:18:15PM +0200, Mika Westerberg wrote:
> > On Sun, May 31, 2026 at 02:03:09PM +0200, Marco Scardovi wrote:
>
> ...
>
> > This is really complex solution to a problem I'm not sure that even exists.
>
> The problem that potentially may have an attack vector is the malicious ACPI tables
> (via SSDT overlay, for example). So some of the validations (like pin index in the
> pin list) would be somewhat useful.

Yes but with SSDT overlay you can do much worse things than passing an
invalid pin index.