On Mon, May 19, 2025, at 18:35, Alexandre Ghiti wrote: > On 5/19/25 12:12, syzbot wrote: > > Because we don't have acpi enabled and then acpi_kobj is null > (https://elixir.bootlin.com/linux/v6.15-rc6/source/fs/sysfs/group.c#L131). > > The following patch fixes it, but not sure this is the right way, let me > know if I should send it, it would be nice to have it in 6.15: > > --- a/drivers/acpi/platform_profile.c > +++ b/drivers/acpi/platform_profile.c > @@ -688,6 +688,9 @@ static int __init platform_profile_init(void) > { > int err; > > + if (acpi_disabled) > + return -ENOTSUPP; > + > err = class_register(&platform_profile_class); > if (err) The change makes sense to me. I double-checked that returning an error from the initcall causes no problems, but it is only used for printing it with trace_initcall_finish_cb(). As far as I can tell, the problem has existed in theory since linux-6.14, when the sysfs_create_group() call was moved from platform_profile_register() to the module_init call. Maybe clarify this and add Fixes: 77be5cacb2c2 ("ACPI: platform_profile: Create class for ACPI platform profile") Arnd