[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175639805403.20700.2974410587242050974.b4-ty@linux.intel.com>
Date: Thu, 28 Aug 2025 19:20:54 +0300
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: "Luke D . Jones" <luke@...nes.dev>, Takashi Iwai <tiwai@...e.de>
Cc: Corentin Chary <corentin.chary@...il.com>,
Hans de Goede <hansg@...nel.org>, Jiri Slaby <jirislaby@...nel.org>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] platform/x86: asus-wmi: Fix racy registrations
On Wed, 27 Aug 2025 07:24:33 +0200, Takashi Iwai wrote:
> asus_wmi_register_driver() may be called from multiple drivers
> concurrently, which can lead to the racy list operations, eventually
> corrupting the memory and hitting Oops on some ASUS machines.
> Also, the error handling is missing, and it forgot to unregister ACPI
> lps0 dev ops in the error case.
>
> This patch covers those issues by introducing a simple mutex at
> acpi_wmi_register_driver() & *_unregister_driver, and adding the
> proper call of asus_s2idle_check_unregister() in the error path.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: asus-wmi: Fix racy registrations
commit: 5549202b9c02c2ecbc8634768a3da8d9e82d548d
--
i.
Powered by blists - more mailing lists