Re: [PATCH] ACPI: lpat: Avoid division by zero on degenerate LPAT tables
From: shao.mingyin
Date: Sat Nov 07 2026 - 10:34:03 EST
On Sat, Nov 7, 2026 at 3:55 PM Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:
> I'm not objecting to the code, but this is not a fix, it's hardening
> for sure, otherwise your expectation is that we have such a table IRL.
> If so, this commit message should have a pointer.
You're right, and I should have been clearer. I searched lore and the
web and found no in-the-wild report of a degenerate LPAT table, so I
cannot point to a real-world case. This is defensive hardening against
malformed firmware input, not a fix for a known bug.
I'll reframe v2 accordingly: the commit message will state explicitly
that this is a defensive guard with no known real-world trigger, and I'll
drop Cc: stable since there is no concrete bug to backport. I'd keep
Fixes: c55d62820efe because it is the commit that introduced the
division and it keeps the change bisectable, unless you'd rather I drop
that as well.
Thanks,
Shao