Skip to content

Commit

Permalink
Merge tag 'modules-6.15-rc6' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/git/modules/linux

Pull modules fix from Petr Pavlu:
 "A single fix to prevent use of an uninitialized completion pointer
  when releasing a module_kobject in specific situations.

  This addresses a latent bug exposed by commit f95bbfe ("drivers:
  base: handle module_kobject creation")"

* tag 'modules-6.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux:
  module: ensure that kobject_put() is safe for module type kobjects
  • Loading branch information
Linus Torvalds committed May 9, 2025
2 parents fea4e31 + a6aeb73 commit 29fe5d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ struct kset *module_kset;
static void module_kobj_release(struct kobject *kobj)
{
struct module_kobject *mk = to_module_kobject(kobj);
complete(mk->kobj_completion);

if (mk->kobj_completion)
complete(mk->kobj_completion);
}

const struct kobj_type module_ktype = {
Expand Down

0 comments on commit 29fe5d5

Please sign in to comment.