Re: [PATCH] platform/x86: think-lmi: Fix "Call Trace" error warning

From: Andy Shevchenko

Date: Tue Jul 07 2026 - 11:33:13 EST


On Tue, Jul 07, 2026 at 05:15:55PM +0800, goutongchen@xxxxxxxxxxxxx wrote:
> From: goutongchen <goutongchen@xxxxxxxxxxxxx>

Use your real name and not an alias.

> The maximum BIOS password length returned by the Lenovo platform BIOS/WMI

Which platform? We need more details about the BIOS/HW.

> exceeded the size assumed by the think_lmi driver's internal static
> buffer, causing the driver to trigger a WARN_ON() during self-checks.
>
> Increase TLMI_PWD_BUFSIZE from 128 to 256 to eliminate the recurring
> Call Trace warnings.
>
> Here is the kernel warning triggered by the bug:
>
> kernel: WARNING: CPU: 4 PID: 665 at drivers/platform/x86/think-lmi.c:326
> kernel: tlmi_get_pwd_settings.constprop.0+0xe6/0x130 [think_lmi]
> kernel: Call Trace:
> kernel: tlmi_analyze+0x31c/0x640 [think_lmi]
> ...

> Fixes: 651b57dd4087 ("platform/x86: Move Lenovo files into lenovo subdir")
> Signed-off-by: goutongchen <goutongchen@xxxxxxxxxxxxx>

Ditto.

--
With Best Regards,
Andy Shevchenko