]> git.ipfire.org Git - thirdparty/linux.git/commit
modpost: Handle malformed WMI GUID strings
authorArmin Wolf <W_Armin@gmx.de>
Wed, 10 Jun 2026 20:34:53 +0000 (22:34 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 12 Jun 2026 13:01:55 +0000 (16:01 +0300)
commit3429ae7b2f02a4a6ad40d36ee06641d433d75a1b
tree13e668f46592e9fc07ebeb4bbfe8764abda331d1
parentc3cbac4be03d769571f32e7f27241b2c58f722f5
modpost: Handle malformed WMI GUID strings

Some WMI GUIDs found inside binary MOF files contain both
uppercase and lowercase characters. Blindly copying such
GUIDs will prevent the associated WMI driver from loading
automatically because the WMI GUID found inside WMI device ids
always contains uppercase characters.

Avoid this issue by always converting WMI GUID strings to
uppercase. Also verify that the WMI GUID string actually looks
like a valid GUID.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20260610203453.816254-10-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/wmi/driver-development-guide.rst
scripts/mod/file2alias.c