From: Alexey Dobriyan <adobriyan@sw.ru>
To: gregkh@suse.de, akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, kay.sievers@vrfy.org
Subject: kobject ->k_name memory leak
Date: Mon, 3 Dec 2007 12:26:07 +0300 [thread overview]
Message-ID: <20071203092607.GA22477@localhost.sw.ru> (raw)
Hi, Greg!
Commit ce2c9cb0259acd2aed184499ebe41ab00da13b25 aka
"kobject: remove the static array for the name" introduced memory leak
of a module name after modprobe/rmmod. Apparently for modules ->release
callback is NULL.
kobject_cleanup: ->release = 00000000, name = 'foo_sysctl'
Pid: 1927, comm: rmmod Not tainted 2.6.24-rc3-e1cca7e8d484390169777b423a7fe46c7021fec1 #5
[<c10d4a58>] kobject_cleanup+0xb8/0xc0
[<c10d4a60>] kobject_release+0x0/0x10
[<c10d587b>] kref_put+0x2b/0xa0
[<c11dbe85>] _spin_unlock+0x25/0x40
[<c1045b78>] free_module+0x78/0xd0
[<c104773f>] sys_delete_module+0x12f/0x1a0
next reply other threads:[~2007-12-03 9:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 9:26 Alexey Dobriyan [this message]
2007-12-03 20:47 ` kobject ->k_name memory leak Greg KH
2007-12-03 21:09 ` Alexey Dobriyan
2007-12-03 21:25 ` Greg KH
2007-12-14 21:48 ` Greg KH
2007-12-15 13:34 ` Alexey Dobriyan
2007-12-15 15:19 ` Kay Sievers
2007-12-20 22:04 ` Greg KH
2007-12-22 12:07 ` Alexey Dobriyan
2007-12-23 5:55 ` Greg KH
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=20071203092607.GA22477@localhost.sw.ru \
--to=adobriyan@sw.ru \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
/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