* Re: mm/slub: fix a memory leak in sysfs_slab_add() [not found] <CABuj9FcMbcsjvcTxLvqYnjE1+jLbJ3qiT+=WFc4VWBS_ws6dHg@mail.gmail.com> @ 2024-11-14 7:50 ` syzbot 0 siblings, 0 replies; 2+ messages in thread From: syzbot @ 2024-11-14 7:50 UTC (permalink / raw) To: sudhirdumbhare; +Cc: sudhirdumbhare, linux-kernel, syzkaller-bugs > #syz test This bug is already marked as fixed. No point in testing. > > diff --git a/mm/slub.c b/mm/slub.c > index 4148235ba554..d10c4fbf8c84 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -5653,7 +5653,7 @@ static int sysfs_slab_add(struct kmem_cache *s) > s->kobj.kset = kset; > err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, "%s", > name); > if (err) { > - kobject_put(&s->kobj); > + kfree_const(&s->kobj.name); > goto out; > } > > On Thu, Nov 14, 2024 at 1:18 PM syzbot < > syzbot+d0bd96b4696c1ef67991@syzkaller.appspotmail.com> wrote: > >> > #syz test git:// >> git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> >> want either no args or 2 args (repo, branch), got 1 >> >> > master >> > >> > diff --git a/mm/slub.c b/mm/slub.c >> > index 4148235ba554..d10c4fbf8c84 100644 >> > --- a/mm/slub.c >> > +++ b/mm/slub.c >> > @@ -5653,7 +5653,7 @@ static int sysfs_slab_add(struct kmem_cache *s) >> > s->kobj.kset = kset; >> > err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, "%s", >> > name); >> > if (err) { >> > - kobject_put(&s->kobj); >> > + kfree_const(&s->kobj.name); >> > goto out; >> > } >> ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <CABuj9FfS3VA8m4QPwsJmECYZqumHY3H8_GcVdGa9UG1SEBY6Lw@mail.gmail.com>]
* Re: mm/slub: fix a memory leak in sysfs_slab_add() [not found] <CABuj9FfS3VA8m4QPwsJmECYZqumHY3H8_GcVdGa9UG1SEBY6Lw@mail.gmail.com> @ 2024-11-14 7:48 ` syzbot 0 siblings, 0 replies; 2+ messages in thread From: syzbot @ 2024-11-14 7:48 UTC (permalink / raw) To: sudhirdumbhare; +Cc: sudhirdumbhare, linux-kernel, syzkaller-bugs > #syz test git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git want either no args or 2 args (repo, branch), got 1 > master > > diff --git a/mm/slub.c b/mm/slub.c > index 4148235ba554..d10c4fbf8c84 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -5653,7 +5653,7 @@ static int sysfs_slab_add(struct kmem_cache *s) > s->kobj.kset = kset; > err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, "%s", > name); > if (err) { > - kobject_put(&s->kobj); > + kfree_const(&s->kobj.name); > goto out; > } ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-14 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CABuj9FcMbcsjvcTxLvqYnjE1+jLbJ3qiT+=WFc4VWBS_ws6dHg@mail.gmail.com>
2024-11-14 7:50 ` mm/slub: fix a memory leak in sysfs_slab_add() syzbot
[not found] <CABuj9FfS3VA8m4QPwsJmECYZqumHY3H8_GcVdGa9UG1SEBY6Lw@mail.gmail.com>
2024-11-14 7:48 ` syzbot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®