* [PATCH v2 0/3] Fixes for hp-bioscfg
@ 2026-01-15 20:31 Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 1/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names Mario Limonciello
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Mario Limonciello @ 2026-01-15 20:31 UTC (permalink / raw)
To: mario.limonciello, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: platform-driver-x86
When working on fwupd code on an HP system I noticed that all the BIOS
settings were missing in fwupd. I thought I forgot to compile the
hp-bioscfg module, but actually it was compiled just not loading.
Once I loaded it, I found various problems with boundary handling and
attributes on an HP Z2 Mini G1a.
This series fixes automatic loading as well as those boundary problems.
Mario Limonciello (3):
platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute
names
platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro
platform/x86: hp-bioscfg: Fix automatic module loading
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 8 ++++++++
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h | 12 +++++++-----
2 files changed, 15 insertions(+), 5 deletions(-)
--
2.52.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 1/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names
2026-01-15 20:31 [PATCH v2 0/3] Fixes for hp-bioscfg Mario Limonciello
@ 2026-01-15 20:31 ` Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 2/3] platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro Mario Limonciello
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Mario Limonciello @ 2026-01-15 20:31 UTC (permalink / raw)
To: mario.limonciello, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: stable, platform-driver-x86
The hp-bioscfg driver attempts to register kobjects with empty names when
the HP BIOS returns attributes with empty name strings. This causes
multiple kernel warnings:
kobject: (00000000135fb5e6): attempted to be registered with empty name!
WARNING: CPU: 14 PID: 3336 at lib/kobject.c:219 kobject_add_internal+0x2eb/0x310
Add validation in hp_init_bios_buffer_attribute() to check if the
attribute name is empty after parsing it from the WMI buffer. If empty,
log a debug message and skip registration of that attribute, allowing the
module to continue processing other valid attributes.
Cc: stable@vger.kernel.org
Fixes: a34fc329b189 ("platform/x86: hp-bioscfg: bioscfg")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
v2:
* Add missing include (Ilpo)
* Add Fixes tag (Ilpo)
---
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
index 5bfa7159f5bc..dbe096eefa75 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
+++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
@@ -10,6 +10,8 @@
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/kernel.h>
+#include <linux/printk.h>
+#include <linux/string.h>
#include <linux/wmi.h>
#include "bioscfg.h"
#include "../../firmware_attributes_class.h"
@@ -781,6 +783,12 @@ static int hp_init_bios_buffer_attribute(enum hp_wmi_data_type attr_type,
if (ret < 0)
goto buff_attr_exit;
+ if (strlen(str) == 0) {
+ pr_debug("Ignoring attribute with empty name\n");
+ ret = 0;
+ goto buff_attr_exit;
+ }
+
if (attr_type == HPWMI_PASSWORD_TYPE ||
attr_type == HPWMI_SECURE_PLATFORM_TYPE)
temp_kset = bioscfg_drv.authentication_dir_kset;
--
2.52.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 2/3] platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro
2026-01-15 20:31 [PATCH v2 0/3] Fixes for hp-bioscfg Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 1/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names Mario Limonciello
@ 2026-01-15 20:31 ` Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading Mario Limonciello
2026-01-16 13:45 ` [PATCH v2 0/3] Fixes for hp-bioscfg Ilpo Järvinen
3 siblings, 0 replies; 9+ messages in thread
From: Mario Limonciello @ 2026-01-15 20:31 UTC (permalink / raw)
To: mario.limonciello, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: stable, platform-driver-x86
The GET_INSTANCE_ID macro that caused a kernel panic when accessing sysfs
attributes:
1. Off-by-one error: The loop condition used '<=' instead of '<',
causing access beyond array bounds. Since array indices are 0-based
and go from 0 to instances_count-1, the loop should use '<'.
2. Missing NULL check: The code dereferenced attr_name_kobj->name
without checking if attr_name_kobj was NULL, causing a null pointer
dereference in min_length_show() and other attribute show functions.
The panic occurred when fwupd tried to read BIOS configuration attributes:
Oops: general protection fault [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
RIP: 0010:min_length_show+0xcf/0x1d0 [hp_bioscfg]
Add a NULL check for attr_name_kobj before dereferencing and corrects
the loop boundary to match the pattern used elsewhere in the driver.
Cc: stable@vger.kernel.org
Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>"
---
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
index 3166ef328eba..6b6748e4be21 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
+++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
@@ -10,6 +10,7 @@
#include <linux/wmi.h>
#include <linux/types.h>
+#include <linux/string.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/kernel.h>
@@ -285,8 +286,9 @@ enum hp_wmi_data_elements {
{ \
int i; \
\
- for (i = 0; i <= bioscfg_drv.type##_instances_count; i++) { \
- if (!strcmp(kobj->name, bioscfg_drv.type##_data[i].attr_name_kobj->name)) \
+ for (i = 0; i < bioscfg_drv.type##_instances_count; i++) { \
+ if (bioscfg_drv.type##_data[i].attr_name_kobj && \
+ !strcmp(kobj->name, bioscfg_drv.type##_data[i].attr_name_kobj->name)) \
return i; \
} \
return -EIO; \
--
2.52.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading
2026-01-15 20:31 [PATCH v2 0/3] Fixes for hp-bioscfg Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 1/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 2/3] platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro Mario Limonciello
@ 2026-01-15 20:31 ` Mario Limonciello
2026-01-18 10:51 ` Armin Wolf
2026-01-16 13:45 ` [PATCH v2 0/3] Fixes for hp-bioscfg Ilpo Järvinen
3 siblings, 1 reply; 9+ messages in thread
From: Mario Limonciello @ 2026-01-15 20:31 UTC (permalink / raw)
To: mario.limonciello, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: stable, platform-driver-x86
hp-bioscfg has a MODULE_DEVICE_TABLE with a GUID in it that looks
plausible, but the module doesn't automatically load on applicable
systems.
This is because the GUID has some lower case characters and so it
doesn't match the modalias during boot. Update the GUIDs to be all
uppercase.
Cc: stable@vger.kernel.org
Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
drivers/platform/x86/hp/hp-bioscfg/bioscfg.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
index 6b6748e4be21..f1eec0e4ba07 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
+++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
@@ -57,14 +57,14 @@ enum mechanism_values {
#define PASSWD_MECHANISM_TYPES "password"
-#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45e9-BE91-3D44E2C707E4"
+#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45E9-BE91-3D44E2C707E4"
-#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4c35-AF3E-6A1B8106F83C"
+#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4C35-AF3E-6A1B8106F83C"
#define HP_WMI_BIOS_INTEGER_GUID "8232DE3D-663D-4327-A8F4-E293ADB9BF05"
#define HP_WMI_BIOS_ENUMERATION_GUID "2D114B49-2DFB-4130-B8FE-4A3C09E75133"
#define HP_WMI_BIOS_ORDERED_LIST_GUID "14EA9746-CE1F-4098-A0E0-7045CB4DA745"
#define HP_WMI_BIOS_PASSWORD_GUID "322F2028-0F84-4901-988E-015176049E2D"
-#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460b-951D-C7CB9B4B8D5E"
+#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460B-951D-C7CB9B4B8D5E"
enum hp_wmi_spm_commandtype {
HPWMI_SECUREPLATFORM_GET_STATE = 0x10,
--
2.52.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/3] Fixes for hp-bioscfg
2026-01-15 20:31 [PATCH v2 0/3] Fixes for hp-bioscfg Mario Limonciello
` (2 preceding siblings ...)
2026-01-15 20:31 ` [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading Mario Limonciello
@ 2026-01-16 13:45 ` Ilpo Järvinen
3 siblings, 0 replies; 9+ messages in thread
From: Ilpo Järvinen @ 2026-01-16 13:45 UTC (permalink / raw)
To: hansg, jorge.lopez2, linux, Mario Limonciello; +Cc: platform-driver-x86
On Thu, 15 Jan 2026 14:31:09 -0600, Mario Limonciello wrote:
> When working on fwupd code on an HP system I noticed that all the BIOS
> settings were missing in fwupd. I thought I forgot to compile the
> hp-bioscfg module, but actually it was compiled just not loading.
>
> Once I loaded it, I found various problems with boundary handling and
> attributes on an HP Z2 Mini G1a.
>
> [...]
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/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names
commit: fdee1b09721605f532352628d0a24623e7062efb
[2/3] platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro
commit: bb820f17b68f624547357e207ce9a8c7af3e7845
[3/3] platform/x86: hp-bioscfg: Fix automatic module loading
commit: 791c3c82091eecd862f0d55a7c7a3302a518f599
--
i.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading
2026-01-15 20:31 ` [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading Mario Limonciello
@ 2026-01-18 10:51 ` Armin Wolf
2026-01-19 16:55 ` Mario Limonciello
0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-01-18 10:51 UTC (permalink / raw)
To: Mario Limonciello, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: stable, platform-driver-x86
Am 15.01.26 um 21:31 schrieb Mario Limonciello:
> hp-bioscfg has a MODULE_DEVICE_TABLE with a GUID in it that looks
> plausible, but the module doesn't automatically load on applicable
> systems.
>
> This is because the GUID has some lower case characters and so it
> doesn't match the modalias during boot. Update the GUIDs to be all
> uppercase.
Hi,
this is the second time that such a error has prevented a WMI driver from
being loaded manually. I am planning to replace the usage of GUID strings
with the guid_t data type in the future, but for now i think modifying
file2alias.c to fixup any lowercase letters inside a GUID string will
prevent such errors.
I will send the necessary patch once the WMI marshalling series has landed
upstream. Thanks for finding this hard to spot error.
Thanks,
Armin Wolf
> Cc: stable@vger.kernel.org
> Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> drivers/platform/x86/hp/hp-bioscfg/bioscfg.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
> index 6b6748e4be21..f1eec0e4ba07 100644
> --- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
> +++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
> @@ -57,14 +57,14 @@ enum mechanism_values {
>
> #define PASSWD_MECHANISM_TYPES "password"
>
> -#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45e9-BE91-3D44E2C707E4"
> +#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45E9-BE91-3D44E2C707E4"
>
> -#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4c35-AF3E-6A1B8106F83C"
> +#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4C35-AF3E-6A1B8106F83C"
> #define HP_WMI_BIOS_INTEGER_GUID "8232DE3D-663D-4327-A8F4-E293ADB9BF05"
> #define HP_WMI_BIOS_ENUMERATION_GUID "2D114B49-2DFB-4130-B8FE-4A3C09E75133"
> #define HP_WMI_BIOS_ORDERED_LIST_GUID "14EA9746-CE1F-4098-A0E0-7045CB4DA745"
> #define HP_WMI_BIOS_PASSWORD_GUID "322F2028-0F84-4901-988E-015176049E2D"
> -#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460b-951D-C7CB9B4B8D5E"
> +#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460B-951D-C7CB9B4B8D5E"
>
> enum hp_wmi_spm_commandtype {
> HPWMI_SECUREPLATFORM_GET_STATE = 0x10,
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading
2026-01-18 10:51 ` Armin Wolf
@ 2026-01-19 16:55 ` Mario Limonciello
0 siblings, 0 replies; 9+ messages in thread
From: Mario Limonciello @ 2026-01-19 16:55 UTC (permalink / raw)
To: Armin Wolf, hansg, ilpo.jarvinen, jorge.lopez2, linux
Cc: stable, platform-driver-x86
On 1/18/2026 4:51 AM, Armin Wolf wrote:
> Am 15.01.26 um 21:31 schrieb Mario Limonciello:
>
>> hp-bioscfg has a MODULE_DEVICE_TABLE with a GUID in it that looks
>> plausible, but the module doesn't automatically load on applicable
>> systems.
>>
>> This is because the GUID has some lower case characters and so it
>> doesn't match the modalias during boot. Update the GUIDs to be all
>> uppercase.
>
> Hi,
>
> this is the second time that such a error has prevented a WMI driver from
> being loaded manually. I am planning to replace the usage of GUID strings
> with the guid_t data type in the future, but for now i think modifying
> file2alias.c to fixup any lowercase letters inside a GUID string will
> prevent such errors.
>
> I will send the necessary patch once the WMI marshalling series has landed
> upstream.
That's great to hear, thanks for sharing.
Thanks for finding this hard to spot error.
Sure. I was really surprised it existed since the beginning of this
driver. That (unfortunately) means that very few people have been using it.
>
> Thanks,
> Armin Wolf
>
>> Cc: stable@vger.kernel.org
>> Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>> ---
>> drivers/platform/x86/hp/hp-bioscfg/bioscfg.h | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h b/drivers/
>> platform/x86/hp/hp-bioscfg/bioscfg.h
>> index 6b6748e4be21..f1eec0e4ba07 100644
>> --- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
>> +++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.h
>> @@ -57,14 +57,14 @@ enum mechanism_values {
>> #define PASSWD_MECHANISM_TYPES "password"
>> -#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45e9-BE91-3D44E2C707E4"
>> +#define HP_WMI_BIOS_GUID "5FB7F034-2C63-45E9-BE91-3D44E2C707E4"
>> -#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4c35-
>> AF3E-6A1B8106F83C"
>> +#define HP_WMI_BIOS_STRING_GUID "988D08E3-68F4-4C35-
>> AF3E-6A1B8106F83C"
>> #define HP_WMI_BIOS_INTEGER_GUID "8232DE3D-663D-4327-A8F4-
>> E293ADB9BF05"
>> #define HP_WMI_BIOS_ENUMERATION_GUID "2D114B49-2DFB-4130-
>> B8FE-4A3C09E75133"
>> #define HP_WMI_BIOS_ORDERED_LIST_GUID "14EA9746-CE1F-4098-
>> A0E0-7045CB4DA745"
>> #define HP_WMI_BIOS_PASSWORD_GUID
>> "322F2028-0F84-4901-988E-015176049E2D"
>> -#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460b-951D-
>> C7CB9B4B8D5E"
>> +#define HP_WMI_SET_BIOS_SETTING_GUID "1F4C91EB-DC5C-460B-951D-
>> C7CB9B4B8D5E"
>> enum hp_wmi_spm_commandtype {
>> HPWMI_SECUREPLATFORM_GET_STATE = 0x10,
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/3] Fixes for hp-bioscfg
[not found] <22ed5f78-c8bf-4ab4-8c38-420cc0201e7e@laposte.net>
@ 2026-01-28 18:58 ` Mario Limonciello
[not found] ` <9094fb69-62a0-436e-a739-e94dee183eaa@laposte.net>
0 siblings, 1 reply; 9+ messages in thread
From: Mario Limonciello @ 2026-01-28 18:58 UTC (permalink / raw)
To: Alain Cousinie
Cc: hansg, ilpo.jarvinen, jorge.lopez2, linux, platform-driver-x86
On 1/28/26 12:51 PM, Alain Cousinie wrote:
> In-Reply-To: <20260115203725.828434-1-mario.limonciello@amd.com>
>
> Hi,
>
> (Excuse me, I'm not very familiar with the lore.kernel.org forum.)
>
> The hp-bioscfg patch on 6.19-rc7 is causing my kernel to crash on my HP
> Spectre 14-eu0xxx with Debian unstable.
>
> See the dmesg output below.
>
> I'm available for any help or questions...
Hi,
Can you have a try with this?
diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
index dbe096eefa758..51e8977d3eb4a 100644
--- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
+++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
@@ -696,6 +696,11 @@ static int hp_init_bios_package_attribute(enum
hp_wmi_data_type attr_type,
return ret;
}
+ if (!str_value || !str_value[0]) {
+ pr_debug("Ignoring attribute with empty name\n");
+ goto pack_attr_exit;
+ }
+
/* All duplicate attributes found are ignored */
duplicate = kset_find_obj(temp_kset, str_value);
if (duplicate) {
>
> [ 5.489782] ------------[ cut here ]------------
> [ 5.489785] kobject: (00000000e74f4f8b): attempted to be registered
> with empty name!
> [ 5.489787] WARNING: lib/kobject.c:219 at
> kobject_add_internal+0x420/0x470, CPU#5: (udev-worker)/568
> [ 5.489792] Modules linked in: soundwire_generic_allocation
> snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common snd_soc_hdac_hda
> snd_sof_intel_hda_mlink snd_sof_intel_hda snd_hda_codec_hdmi
> soundwire_cadence snd_sof_pci snd_sof_xtensa_dsp snd_soc_sdw_utils
> snd_sof intel_uncore_frequency intel_uncore_frequency_common
> snd_sof_utils iwlmld(+) x86_pkg_temp_thermal snd_hda_ext_core
> intel_powerclamp snd_hda_codec coretemp kvm_intel snd_hda_core
> snd_hda_scodec_cs35l41_spi regmap_spi mac80211 hp_bioscfg(+)
> intel_ipu6_isys snd_intel_dspcfg snd_intel_sdw_acpi
> snd_soc_acpi_intel_match videobuf2_dma_sg libarc4 kvm videobuf2_memops
> snd_soc_acpi_intel_sdca_quirks videobuf2_v4l2 snd_soc_acpi mei_gsc_proxy
> snd_hwdep videobuf2_common crc8 soundwire_bus intel_rapl_msr
> snd_soc_sdca btusb snd_soc_core btmtk btrtl firmware_attributes_class
> snd_hda_scodec_cs35l41_i2c btbcm hid_sensor_gyro_3d snd_compress iwlwifi
> hid_sensor_accel_3d hid_sensor_magn_3d hid_sensor_rotation irqbypass
> snd_hda_scodec_cs35l41 btintel ghash_clmulni_intel ac97_bus
> [ 5.489812] spi_nor aesni_intel hid_sensor_trigger snd_pcm_dmaengine
> processor_thermal_device_pci snd_soc_cs_amp_lib hid_sensor_iio_common
> processor_thermal_device bluetooth snd_pcm mtd hp_wmi wmi_bmof pcspkr
> gf128mul industrialio_triggered_buffer snd_soc_cs35l41_lib kfifo_buf
> processor_thermal_wt_hint mei_me cs_dsp cfg80211 snd_timer
> platform_temperature_control industrialio snd
> processor_thermal_soc_slider mei soundcore platform_profile
> processor_thermal_rfim processor_thermal_rapl intel_vpu
> intel_rapl_common rfkill intel_ipu6 ov08x40 processor_thermal_wt_req
> processor_thermal_power_floor v4l2_fwnode drm_shmem_helper igen6_edac
> ipu_bridge processor_thermal_mbox intel_skl_int3472_tps68470 v4l2_async
> tps68470_regulator serial_multi_instantiate clk_tps68470 videodev mc
> joydev intel_pmc_core intel_skl_int3472_discrete int3403_thermal
> pmt_telemetry int340x_thermal_zone pmt_discovery acpi_tad
> intel_skl_int3472_common pmt_class button intel_hid
> intel_pmc_ssram_telemetry soc_button_array acpi_pad sparse_keymap ac evdev
> [ 5.489834] parport_pc ppdev lp parport i2c_dev msr nvme_fabrics
> efi_pstore nfnetlink efivarfs autofs4 uhci_hcd ehci_pci ehci_hcd xe
> drm_ttm_helper drm_suballoc_helper gpu_sched drm_gpuvm drm_exec configfs
> drm_gpusvm_helper usbhid hid_sensor_custom hid_sensor_hub i915
> hid_multitouch i2c_algo_bit drm_buddy ttm drm_display_helper cec nvme
> intel_ishtp_hid xhci_pci hid_generic rc_core ucsi_acpi i2c_hid_acpi
> nvme_core xhci_hcd i2c_hid typec_ucsi drm_client_lib psmouse hid
> drm_kms_helper typec iTCO_wdt intel_pmc_bxt iTCO_vendor_support
> nvme_keyring watchdog nvme_auth roles drm usbcore video thunderbolt
> serio_raw hkdf int3400_thermal intel_lpss_pci i2c_i801 intel_ish_ipc
> intel_lpss wmi battery fan acpi_thermal_rel intel_ishtp i2c_smbus
> intel_vsec idma64 usb_common
> [ 5.489859] CPU: 5 UID: 0 PID: 568 Comm: (udev-worker) Not tainted
> 6.19.0-rc7-meteor #39 PREEMPT(full)
> [ 5.489861] Hardware name: HP HP Spectre x360 2-in-1 Laptop 14-
> eu0xxx/8C15, BIOS F.16 12/16/2025
> [ 5.489862] RIP: 0010:kobject_add_internal+0x423/0x470
> [ 5.489864] Code: 63 20 e9 a4 fc ff ff 48 8d 3d 79 42 a1 00 49 8b 74
> 24 18 48 89 ea 67 48 0f b9 3a e9 24 ff ff ff 48 8d 3d 70 42 a1 00 48 89
> de <67> 48 0f b9 3a 41 bc ea ff ff ff e9 d1 fd ff ff be 01 00 00 00 e8
> [ 5.489865] RSP: 0018:ffffd044424cfa98 EFLAGS: 00010246
> [ 5.489866] RAX: ffff895f026956b0 RBX: ffff895f27c5b840 RCX:
> ffff895f026956b0
> [ 5.489867] RDX: 0000000000000000 RSI: ffff895f27c5b840 RDI:
> ffffffffb38736a0
> [ 5.489867] RBP: ffffd044424cfb38 R08: ffff895f026956b0 R09:
> ffff895f026956b0
> [ 5.489868] R10: 0000000000000000 R11: 00000000ffffffff R12:
> ffff895f026956b0
> [ 5.489869] R13: 0000000000000000 R14: 00000000fffffff4 R15:
> ffff895f3b6e28a0
> [ 5.489869] FS: 00007f7bda352c80(0000) GS:ffff8966ac092000(0000)
> knlGS:0000000000000000
> [ 5.489870] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 5.489871] CR2: 000055ac09f17000 CR3: 00000001684a3001 CR4:
> 0000000000f72ef0
> [ 5.489872] PKRU: 55555554
> [ 5.489872] Call Trace:
> [ 5.489874] <TASK>
> [ 5.489875] kobject_init_and_add+0x136/0x160
> [ 5.489878] hp_init_bios_attributes+0x265/0x38c [hp_bioscfg]
> [ 5.489883] ? __pfx_hp_init+0x10/0x10 [hp_bioscfg]
> [ 5.489886] hp_init+0x183/0xff0 [hp_bioscfg]
> [ 5.489888] do_one_initcall+0x8d/0x330
> [ 5.489892] do_init_module+0x62/0x230
> [ 5.489895] init_module_from_file+0xd7/0x140
> [ 5.489897] idempotent_init_module+0x148/0x340
> [ 5.489899] __x64_sys_finit_module+0x71/0xe0
> [ 5.489901] ? syscall_trace_enter+0x91/0x1e0
> [ 5.489902] do_syscall_64+0x7c/0xd70
> [ 5.489904] ? __do_sys_newfstatat+0xe0/0x170
> [ 5.489907] ? do_syscall_64+0x7c/0xd70
> [ 5.489908] ? exc_page_fault+0x77/0x170
> [ 5.489910] entry_SYSCALL_64_after_hwframe+0x76/0x7e
> [ 5.489912] RIP: 0033:0x7f7bd9d1bc69
> [ 5.489914] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00
> 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f
> 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 77 51 0d 00 f7 d8 64 89 01 48
> [ 5.489914] RSP: 002b:00007ffe11a56348 EFLAGS: 00000246 ORIG_RAX:
> 0000000000000139
> [ 5.489915] RAX: ffffffffffffffda RBX: 000055ee99a48110 RCX:
> 00007f7bd9d1bc69
> [ 5.489916] RDX: 0000000000000004 RSI: 00007f7bda30e44d RDI:
> 0000000000000067
> [ 5.489917] RBP: 0000000000000004 R08: 0000000000000000 R09:
> 000055ee99899e80
> [ 5.489917] R10: 0000000000000000 R11: 0000000000000246 R12:
> 0000000000020000
> [ 5.489919] R13: 00007f7bda30e44d R14: 000055ee99a42060 R15:
> 0000000000000000
> [ 5.489920] </TASK>
> [ 5.489921] ---[ end trace 0000000000000000 ]---
>
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/3] Fixes for hp-bioscfg
[not found] ` <9094fb69-62a0-436e-a739-e94dee183eaa@laposte.net>
@ 2026-01-28 19:32 ` Mario Limonciello
0 siblings, 0 replies; 9+ messages in thread
From: Mario Limonciello @ 2026-01-28 19:32 UTC (permalink / raw)
To: Alain Cousinie
Cc: hansg, ilpo.jarvinen, jorge.lopez2, linux, platform-driver-x86
On 1/28/26 1:30 PM, Alain Cousinie wrote:
> Thank you so much!
>
> I just recompiled with the patch and restarted, and the error is gone.
>
> I took the liberty of sending this message because I saw that the update
> is going to many versions, so there's a risk of a lot of feedback...
>
> Thanks again!
Thanks a lot for the quick testing. This was an existing BIOS issue
that was exposed by it getting loaded on more systems.
I CC'ed you on the formal submission as well. Would you please reply to
that with a Tested-by tag? [1]
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes
[1]
Be sure to reply in plain text format, I think at least some of your
emails have been HTML.
>
> Le 28/01/2026 à 19:58, Mario Limonciello a écrit :
>> On 1/28/26 12:51 PM, Alain Cousinie wrote:
>>> In-Reply-To: <20260115203725.828434-1-mario.limonciello@amd.com>
>>>
>>> Hi,
>>>
>>> (Excuse me, I'm not very familiar with the lore.kernel.org forum.)
>>>
>>> The hp-bioscfg patch on 6.19-rc7 is causing my kernel to crash on my
>>> HP Spectre 14-eu0xxx with Debian unstable.
>>>
>>> See the dmesg output below.
>>>
>>> I'm available for any help or questions...
>>
>> Hi,
>>
>> Can you have a try with this?
>>
>> diff --git a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c b/drivers/
>> platform/x86/hp/hp-bioscfg/bioscfg.c
>> index dbe096eefa758..51e8977d3eb4a 100644
>> --- a/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
>> +++ b/drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
>> @@ -696,6 +696,11 @@ static int hp_init_bios_package_attribute(enum
>> hp_wmi_data_type attr_type,
>> return ret;
>> }
>>
>> + if (!str_value || !str_value[0]) {
>> + pr_debug("Ignoring attribute with empty name\n");
>> + goto pack_attr_exit;
>> + }
>> +
>> /* All duplicate attributes found are ignored */
>> duplicate = kset_find_obj(temp_kset, str_value);
>> if (duplicate) {
>>>
>>> [ 5.489782] ------------[ cut here ]------------
>>> [ 5.489785] kobject: (00000000e74f4f8b): attempted to be
>>> registered with empty name!
>>> [ 5.489787] WARNING: lib/kobject.c:219 at
>>> kobject_add_internal+0x420/0x470, CPU#5: (udev-worker)/568
>>> [ 5.489792] Modules linked in: soundwire_generic_allocation
>>> snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common snd_soc_hdac_hda
>>> snd_sof_intel_hda_mlink snd_sof_intel_hda snd_hda_codec_hdmi
>>> soundwire_cadence snd_sof_pci snd_sof_xtensa_dsp snd_soc_sdw_utils
>>> snd_sof intel_uncore_frequency intel_uncore_frequency_common
>>> snd_sof_utils iwlmld(+) x86_pkg_temp_thermal snd_hda_ext_core
>>> intel_powerclamp snd_hda_codec coretemp kvm_intel snd_hda_core
>>> snd_hda_scodec_cs35l41_spi regmap_spi mac80211 hp_bioscfg(+)
>>> intel_ipu6_isys snd_intel_dspcfg snd_intel_sdw_acpi
>>> snd_soc_acpi_intel_match videobuf2_dma_sg libarc4 kvm
>>> videobuf2_memops snd_soc_acpi_intel_sdca_quirks videobuf2_v4l2
>>> snd_soc_acpi mei_gsc_proxy snd_hwdep videobuf2_common crc8
>>> soundwire_bus intel_rapl_msr snd_soc_sdca btusb snd_soc_core btmtk
>>> btrtl firmware_attributes_class snd_hda_scodec_cs35l41_i2c btbcm
>>> hid_sensor_gyro_3d snd_compress iwlwifi hid_sensor_accel_3d
>>> hid_sensor_magn_3d hid_sensor_rotation irqbypass
>>> snd_hda_scodec_cs35l41 btintel ghash_clmulni_intel ac97_bus
>>> [ 5.489812] spi_nor aesni_intel hid_sensor_trigger
>>> snd_pcm_dmaengine processor_thermal_device_pci snd_soc_cs_amp_lib
>>> hid_sensor_iio_common processor_thermal_device bluetooth snd_pcm mtd
>>> hp_wmi wmi_bmof pcspkr gf128mul industrialio_triggered_buffer
>>> snd_soc_cs35l41_lib kfifo_buf processor_thermal_wt_hint mei_me cs_dsp
>>> cfg80211 snd_timer platform_temperature_control industrialio snd
>>> processor_thermal_soc_slider mei soundcore platform_profile
>>> processor_thermal_rfim processor_thermal_rapl intel_vpu
>>> intel_rapl_common rfkill intel_ipu6 ov08x40 processor_thermal_wt_req
>>> processor_thermal_power_floor v4l2_fwnode drm_shmem_helper igen6_edac
>>> ipu_bridge processor_thermal_mbox intel_skl_int3472_tps68470
>>> v4l2_async tps68470_regulator serial_multi_instantiate clk_tps68470
>>> videodev mc joydev intel_pmc_core intel_skl_int3472_discrete
>>> int3403_thermal pmt_telemetry int340x_thermal_zone pmt_discovery
>>> acpi_tad intel_skl_int3472_common pmt_class button intel_hid
>>> intel_pmc_ssram_telemetry soc_button_array acpi_pad sparse_keymap ac
>>> evdev
>>> [ 5.489834] parport_pc ppdev lp parport i2c_dev msr nvme_fabrics
>>> efi_pstore nfnetlink efivarfs autofs4 uhci_hcd ehci_pci ehci_hcd xe
>>> drm_ttm_helper drm_suballoc_helper gpu_sched drm_gpuvm drm_exec
>>> configfs drm_gpusvm_helper usbhid hid_sensor_custom hid_sensor_hub
>>> i915 hid_multitouch i2c_algo_bit drm_buddy ttm drm_display_helper cec
>>> nvme intel_ishtp_hid xhci_pci hid_generic rc_core ucsi_acpi
>>> i2c_hid_acpi nvme_core xhci_hcd i2c_hid typec_ucsi drm_client_lib
>>> psmouse hid drm_kms_helper typec iTCO_wdt intel_pmc_bxt
>>> iTCO_vendor_support nvme_keyring watchdog nvme_auth roles drm usbcore
>>> video thunderbolt serio_raw hkdf int3400_thermal intel_lpss_pci
>>> i2c_i801 intel_ish_ipc intel_lpss wmi battery fan acpi_thermal_rel
>>> intel_ishtp i2c_smbus intel_vsec idma64 usb_common
>>> [ 5.489859] CPU: 5 UID: 0 PID: 568 Comm: (udev-worker) Not tainted
>>> 6.19.0-rc7-meteor #39 PREEMPT(full)
>>> [ 5.489861] Hardware name: HP HP Spectre x360 2-in-1 Laptop 14-
>>> eu0xxx/8C15, BIOS F.16 12/16/2025
>>> [ 5.489862] RIP: 0010:kobject_add_internal+0x423/0x470
>>> [ 5.489864] Code: 63 20 e9 a4 fc ff ff 48 8d 3d 79 42 a1 00 49 8b
>>> 74 24 18 48 89 ea 67 48 0f b9 3a e9 24 ff ff ff 48 8d 3d 70 42 a1 00
>>> 48 89 de <67> 48 0f b9 3a 41 bc ea ff ff ff e9 d1 fd ff ff be 01 00
>>> 00 00 e8
>>> [ 5.489865] RSP: 0018:ffffd044424cfa98 EFLAGS: 00010246
>>> [ 5.489866] RAX: ffff895f026956b0 RBX: ffff895f27c5b840 RCX:
>>> ffff895f026956b0
>>> [ 5.489867] RDX: 0000000000000000 RSI: ffff895f27c5b840 RDI:
>>> ffffffffb38736a0
>>> [ 5.489867] RBP: ffffd044424cfb38 R08: ffff895f026956b0 R09:
>>> ffff895f026956b0
>>> [ 5.489868] R10: 0000000000000000 R11: 00000000ffffffff R12:
>>> ffff895f026956b0
>>> [ 5.489869] R13: 0000000000000000 R14: 00000000fffffff4 R15:
>>> ffff895f3b6e28a0
>>> [ 5.489869] FS: 00007f7bda352c80(0000) GS:ffff8966ac092000(0000)
>>> knlGS:0000000000000000
>>> [ 5.489870] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>>> [ 5.489871] CR2: 000055ac09f17000 CR3: 00000001684a3001 CR4:
>>> 0000000000f72ef0
>>> [ 5.489872] PKRU: 55555554
>>> [ 5.489872] Call Trace:
>>> [ 5.489874] <TASK>
>>> [ 5.489875] kobject_init_and_add+0x136/0x160
>>> [ 5.489878] hp_init_bios_attributes+0x265/0x38c [hp_bioscfg]
>>> [ 5.489883] ? __pfx_hp_init+0x10/0x10 [hp_bioscfg]
>>> [ 5.489886] hp_init+0x183/0xff0 [hp_bioscfg]
>>> [ 5.489888] do_one_initcall+0x8d/0x330
>>> [ 5.489892] do_init_module+0x62/0x230
>>> [ 5.489895] init_module_from_file+0xd7/0x140
>>> [ 5.489897] idempotent_init_module+0x148/0x340
>>> [ 5.489899] __x64_sys_finit_module+0x71/0xe0
>>> [ 5.489901] ? syscall_trace_enter+0x91/0x1e0
>>> [ 5.489902] do_syscall_64+0x7c/0xd70
>>> [ 5.489904] ? __do_sys_newfstatat+0xe0/0x170
>>> [ 5.489907] ? do_syscall_64+0x7c/0xd70
>>> [ 5.489908] ? exc_page_fault+0x77/0x170
>>> [ 5.489910] entry_SYSCALL_64_after_hwframe+0x76/0x7e
>>> [ 5.489912] RIP: 0033:0x7f7bd9d1bc69
>>> [ 5.489914] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
>>> 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24
>>> 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 77 51 0d 00 f7 d8 64
>>> 89 01 48
>>> [ 5.489914] RSP: 002b:00007ffe11a56348 EFLAGS: 00000246 ORIG_RAX:
>>> 0000000000000139
>>> [ 5.489915] RAX: ffffffffffffffda RBX: 000055ee99a48110 RCX:
>>> 00007f7bd9d1bc69
>>> [ 5.489916] RDX: 0000000000000004 RSI: 00007f7bda30e44d RDI:
>>> 0000000000000067
>>> [ 5.489917] RBP: 0000000000000004 R08: 0000000000000000 R09:
>>> 000055ee99899e80
>>> [ 5.489917] R10: 0000000000000000 R11: 0000000000000246 R12:
>>> 0000000000020000
>>> [ 5.489919] R13: 00007f7bda30e44d R14: 000055ee99a42060 R15:
>>> 0000000000000000
>>> [ 5.489920] </TASK>
>>> [ 5.489921] ---[ end trace 0000000000000000 ]---
>>>
>>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-01-28 19:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 20:31 [PATCH v2 0/3] Fixes for hp-bioscfg Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 1/3] platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 2/3] platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro Mario Limonciello
2026-01-15 20:31 ` [PATCH v2 3/3] platform/x86: hp-bioscfg: Fix automatic module loading Mario Limonciello
2026-01-18 10:51 ` Armin Wolf
2026-01-19 16:55 ` Mario Limonciello
2026-01-16 13:45 ` [PATCH v2 0/3] Fixes for hp-bioscfg Ilpo Järvinen
[not found] <22ed5f78-c8bf-4ab4-8c38-420cc0201e7e@laposte.net>
2026-01-28 18:58 ` Mario Limonciello
[not found] ` <9094fb69-62a0-436e-a739-e94dee183eaa@laposte.net>
2026-01-28 19:32 ` Mario Limonciello
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox