From: syzbot <syzbot+d0bd96b4696c1ef67991@syzkaller.appspotmail.com>
To: sudhirdumbhare@gmail.com
Cc: sudhirdumbhare@gmail.com, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: mm/slub: fix a memory leak in sysfs_slab_add()
Date: Wed, 13 Nov 2024 23:50:29 -0800 [thread overview]
Message-ID: <6735abc5.050a0220.1324f8.0092.GAE@google.com> (raw)
In-Reply-To: <CABuj9FcMbcsjvcTxLvqYnjE1+jLbJ3qiT+=WFc4VWBS_ws6dHg@mail.gmail.com>
> #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;
>> > }
>>
next parent reply other threads:[~2024-11-14 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CABuj9FcMbcsjvcTxLvqYnjE1+jLbJ3qiT+=WFc4VWBS_ws6dHg@mail.gmail.com>
2024-11-14 7:50 ` syzbot [this message]
[not found] <CABuj9FfS3VA8m4QPwsJmECYZqumHY3H8_GcVdGa9UG1SEBY6Lw@mail.gmail.com>
2024-11-14 7:48 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6735abc5.050a0220.1324f8.0092.GAE@google.com \
--to=syzbot+d0bd96b4696c1ef67991@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sudhirdumbhare@gmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®