All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 14258] New: Memory leak in SCSI initialization
@ 2009-09-29 21:56 bugzilla-daemon
  2009-09-29 21:56 ` [Bug 14258] " bugzilla-daemon
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: bugzilla-daemon @ 2009-09-29 21:56 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=14258

           Summary: Memory leak in SCSI initialization
           Product: IO/Storage
           Version: 2.5
    Kernel Version: 2.6.31
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: SCSI
        AssignedTo: linux-scsi@vger.kernel.org
        ReportedBy: rjw@sisk.pl
            Blocks: 13615
        Regression: Yes


Subject    : [2.6.31] Memory leak in SCSI initialization?
Submitter  : Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date       : 2009-09-22 4:18
References : http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By : Michael Ellerman <michael@ellerman.id.au>
Patch      : http://patchwork.kernel.org/patch/49258/

This entry is being used for tracking a regression from 2.6.30.  Please don't
close it until the problem is fixed in the mainline.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 14258] Memory leak in SCSI initialization
  2009-09-29 21:56 [Bug 14258] New: Memory leak in SCSI initialization bugzilla-daemon
@ 2009-09-29 21:56 ` bugzilla-daemon
  2009-10-07 20:21 ` bugzilla-daemon
  2009-11-16 23:00 ` bugzilla-daemon
  2 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2009-09-29 21:56 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=14258


Rafael J. Wysocki <rjw@sisk.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |PATCH_ALREADY_AVAILABLE




-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug #14258] Memory leak in SCSI initialization
  2009-10-01 19:53 2.6.32-rc1-git2: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
@ 2009-10-01 19:56 ` Rafael J. Wysocki
  2009-10-02 12:58   ` Tetsuo Handa
  0 siblings, 1 reply; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-01 19:56 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Kernel Testers List, Michael Ellerman, Tetsuo Handa

This message has been generated automatically as a part of a report
of regressions introduced between 2.6.30 and 2.6.31.

The following bug entry is on the current list of known regressions
introduced between 2.6.30 and 2.6.31.  Please verify if it still should
be listed and let me know (either way).


Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
Subject		: Memory leak in SCSI initialization
Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date		: 2009-09-22 4:18 (10 days old)
References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By	: Michael Ellerman <michael@ellerman.id.au>
Patch		: http://patchwork.kernel.org/patch/49258/


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Bug #14258] Memory leak in SCSI initialization
  2009-10-01 19:56 ` [Bug #14258] Memory leak in SCSI initialization Rafael J. Wysocki
@ 2009-10-02 12:58   ` Tetsuo Handa
  2009-10-02 17:26     ` Rafael J. Wysocki
  0 siblings, 1 reply; 14+ messages in thread
From: Tetsuo Handa @ 2009-10-02 12:58 UTC (permalink / raw)
  To: rjw, James.Bottomley; +Cc: michael, linux-kernel, kernel-testers

Rafael J. Wysocki wrote:
> This message has been generated automatically as a part of a report
> of regressions introduced between 2.6.30 and 2.6.31.
This memory leak might exist in all releases since 23 Sep 2005.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6f3a20242db2597312c50abc11f1e747c5d2326a
> 
> The following bug entry is on the current list of known regressions
> introduced between 2.6.30 and 2.6.31.  Please verify if it still should
> be listed and let me know (either way).
As of now, the patch is not yet merged into Linus's tree.
It still should be listed.
> 
> Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
> Subject		: Memory leak in SCSI initialization
> Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
> Date		: 2009-09-22 4:18 (10 days old)
> References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
> Handled-By	: Michael Ellerman <michael@ellerman.id.au>
> Patch		: http://patchwork.kernel.org/patch/49258/
> 
Regards.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Bug #14258] Memory leak in SCSI initialization
  2009-10-02 12:58   ` Tetsuo Handa
@ 2009-10-02 17:26     ` Rafael J. Wysocki
  2009-10-07 14:04       ` Tetsuo Handa
  0 siblings, 1 reply; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-02 17:26 UTC (permalink / raw)
  To: Tetsuo Handa; +Cc: James.Bottomley, michael, linux-kernel, kernel-testers

On Friday 02 October 2009, Tetsuo Handa wrote:
> Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of regressions introduced between 2.6.30 and 2.6.31.
> This memory leak might exist in all releases since 23 Sep 2005.
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=6f3a20242db2597312c50abc11f1e747c5d2326a
> > 
> > The following bug entry is on the current list of known regressions
> > introduced between 2.6.30 and 2.6.31.  Please verify if it still should
> > be listed and let me know (either way).
> As of now, the patch is not yet merged into Linus's tree.
> It still should be listed.
> > 
> > Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
> > Subject		: Memory leak in SCSI initialization
> > Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
> > Date		: 2009-09-22 4:18 (10 days old)
> > References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
> > Handled-By	: Michael Ellerman <michael@ellerman.id.au>
> > Patch		: http://patchwork.kernel.org/patch/49258/

Thanks for the update.

Rafael

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Bug #14258] Memory leak in SCSI initialization
  2009-10-02 17:26     ` Rafael J. Wysocki
@ 2009-10-07 14:04       ` Tetsuo Handa
  2009-10-07 20:24         ` Rafael J. Wysocki
  0 siblings, 1 reply; 14+ messages in thread
From: Tetsuo Handa @ 2009-10-07 14:04 UTC (permalink / raw)
  To: rjw, kernel-testers; +Cc: James.Bottomley, michael, linux-kernel

Rafael J. Wysocki wrote:
> > > Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
> > > Subject		: Memory leak in SCSI initialization
> > > Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
> > > Date		: 2009-09-22 4:18 (10 days old)
> > > References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
> > > Handled-By	: Michael Ellerman <michael@ellerman.id.au>
> > > Patch		: http://patchwork.kernel.org/patch/49258/
> 
> Thanks for the update.
http://patchwork.kernel.org/patch/49258/ would be replaced by
an updated patch at http://lkml.org/lkml/2009/10/2/335

Regards.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 14258] Memory leak in SCSI initialization
  2009-09-29 21:56 [Bug 14258] New: Memory leak in SCSI initialization bugzilla-daemon
  2009-09-29 21:56 ` [Bug 14258] " bugzilla-daemon
@ 2009-10-07 20:21 ` bugzilla-daemon
  2009-11-16 23:00 ` bugzilla-daemon
  2 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2009-10-07 20:21 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=14258





--- Comment #1 from Rafael J. Wysocki <rjw@sisk.pl>  2009-10-07 20:21:40 ---
Ignore-Patch : http://patchwork.kernel.org/patch/49258/
Handled-By : James Bottomley <James.Bottomley@suse.de>
Patch : http://patchwork.kernel.org/patch/51412/

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Bug #14258] Memory leak in SCSI initialization
  2009-10-07 14:04       ` Tetsuo Handa
@ 2009-10-07 20:24         ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-07 20:24 UTC (permalink / raw)
  To: Tetsuo Handa; +Cc: kernel-testers, James.Bottomley, michael, linux-kernel

On Wednesday 07 October 2009, Tetsuo Handa wrote:
> Rafael J. Wysocki wrote:
> > > > Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
> > > > Subject		: Memory leak in SCSI initialization
> > > > Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
> > > > Date		: 2009-09-22 4:18 (10 days old)
> > > > References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
> > > > Handled-By	: Michael Ellerman <michael@ellerman.id.au>
> > > > Patch		: http://patchwork.kernel.org/patch/49258/
> > 
> > Thanks for the update.
> http://patchwork.kernel.org/patch/49258/ would be replaced by
> an updated patch at http://lkml.org/lkml/2009/10/2/335

Thanks, updated.

Rafael

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug #14258] Memory leak in SCSI initialization
  2009-10-11 22:41 2.6.32-rc4: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
@ 2009-10-11 23:01   ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-11 23:01 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Kernel Testers List, James Bottomley, Michael Ellerman,
	Tetsuo Handa

This message has been generated automatically as a part of a report
of regressions introduced between 2.6.30 and 2.6.31.

The following bug entry is on the current list of known regressions
introduced between 2.6.30 and 2.6.31.  Please verify if it still should
be listed and let me know (either way).


Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
Subject		: Memory leak in SCSI initialization
Submitter	: Tetsuo Handa <penguin-kernel-1yMVhJb1mP/7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>
Date		: 2009-09-22 4:18 (20 days old)
References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By	: Michael Ellerman <michael-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
		  James Bottomley <James.Bottomley-l3A5Bk7waGM@public.gmane.org>
Patch		: http://patchwork.kernel.org/patch/51412/


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug #14258] Memory leak in SCSI initialization
@ 2009-10-11 23:01   ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-11 23:01 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Kernel Testers List, James Bottomley, Michael Ellerman,
	Tetsuo Handa

This message has been generated automatically as a part of a report
of regressions introduced between 2.6.30 and 2.6.31.

The following bug entry is on the current list of known regressions
introduced between 2.6.30 and 2.6.31.  Please verify if it still should
be listed and let me know (either way).


Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
Subject		: Memory leak in SCSI initialization
Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date		: 2009-09-22 4:18 (20 days old)
References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By	: Michael Ellerman <michael@ellerman.id.au>
		  James Bottomley <James.Bottomley@suse.de>
Patch		: http://patchwork.kernel.org/patch/51412/



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Bug #14258] Memory leak in SCSI initialization
  2009-10-11 23:01   ` Rafael J. Wysocki
  (?)
@ 2009-10-15  2:30   ` Tetsuo Handa
  -1 siblings, 0 replies; 14+ messages in thread
From: Tetsuo Handa @ 2009-10-15  2:30 UTC (permalink / raw)
  To: James.Bottomley, rjw; +Cc: kernel-testers, michael, linux-kernel

I got below messages in 2.6.32-rc4 .

# dmesg | grep kmemleak
[    7.612391] kmemleak: Kernel memory leak detector initialized
[    7.615675] kmemleak: Automatic memory scanning thread started
[   78.641096] kmemleak: 13 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
# cat /sys/kernel/debug/kmemleak
unreferenced object 0xdac2c478 (size 32):
  comm "swapper", pid 1, jiffies 4294894406
  hex dump (first 32 bytes):
    30 3a 30 3a 32 3a 30 00 5a 5a 5a 5a 5a 5a 5a 5a  0:0:2:0.ZZZZZZZZ
    5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a a5  ZZZZZZZZZZZZZZZ.
  backtrace:
    [<c10d3944>] create_object+0xe4/0x220
    [<c1322663>] kmemleak_alloc+0x83/0xd0
    [<c10d01d4>] __kmalloc+0x1b4/0x220
    [<c11ab450>] kvasprintf+0x30/0x60
    [<c11a3131>] kobject_set_name_vargs+0x21/0x60
    [<c11f8cd9>] dev_set_name+0x19/0x20
    [<c122c2b3>] scsi_sysfs_device_initialize+0xc3/0x120
    [<c1228ac4>] scsi_alloc_sdev+0x194/0x230
    [<c1229b50>] scsi_probe_and_add_lun+0x320/0x340
    [<c122a477>] __scsi_scan_target+0xb7/0x100
    [<c122a5f6>] scsi_scan_channel+0x86/0xa0
    [<c122a6f9>] scsi_scan_host_selected+0xe9/0x150
    [<c122aabc>] do_scsi_scan_host+0x7c/0x80
    [<c122ab6d>] scsi_scan_host+0x8d/0x90
    [<c1520c75>] BusLogic_init+0x355/0x420
    [<c100105c>] do_one_initcall+0x2c/0x1d0
(...snipped...)
unreferenced object 0xdac2cc58 (size 32):
  comm "swapper", pid 1, jiffies 4294894414
  hex dump (first 32 bytes):
    30 3a 30 3a 31 35 3a 30 00 5a 5a 5a 5a 5a 5a 5a  0:0:15:0.ZZZZZZZ
    5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a a5  ZZZZZZZZZZZZZZZ.
  backtrace:
    [<c10d3944>] create_object+0xe4/0x220
    [<c1322663>] kmemleak_alloc+0x83/0xd0
    [<c10d01d4>] __kmalloc+0x1b4/0x220
    [<c11ab450>] kvasprintf+0x30/0x60
    [<c11a3131>] kobject_set_name_vargs+0x21/0x60
    [<c11f8cd9>] dev_set_name+0x19/0x20
    [<c122c2b3>] scsi_sysfs_device_initialize+0xc3/0x120
    [<c1228ac4>] scsi_alloc_sdev+0x194/0x230
    [<c1229b50>] scsi_probe_and_add_lun+0x320/0x340
    [<c122a477>] __scsi_scan_target+0xb7/0x100
    [<c122a5f6>] scsi_scan_channel+0x86/0xa0
    [<c122a6f9>] scsi_scan_host_selected+0xe9/0x150
    [<c122aabc>] do_scsi_scan_host+0x7c/0x80
    [<c122ab6d>] scsi_scan_host+0x8d/0x90
    [<c1520c75>] BusLogic_init+0x355/0x420
    [<c100105c>] do_one_initcall+0x2c/0x1d0

In my environment, 0:0:0:0 and 0:0:1:0 are used by SCSI hard disks, 0:0:7:0 is
reserved. 0:0:X:0 (where X = 2-6, 8-15) are unused and reported as memory leak.

After applying http://patchwork.kernel.org/patch/51412/ , above messages
no longer appears. Please apply that patch to 2.6.32-rcX as well as 2.6.31.Y .

Regards.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug #14258] Memory leak in SCSI initialization
  2009-10-26 19:26 2.6.32-rc5-git3: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
@ 2009-10-26 19:31   ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-26 19:31 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Kernel Testers List, James Bottomley, Michael Ellerman,
	Tetsuo Handa

This message has been generated automatically as a part of a report
of regressions introduced between 2.6.30 and 2.6.31.

The following bug entry is on the current list of known regressions
introduced between 2.6.30 and 2.6.31.  Please verify if it still should
be listed and let me know (either way).


Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
Subject		: Memory leak in SCSI initialization
Submitter	: Tetsuo Handa <penguin-kernel-1yMVhJb1mP/7nzcFbJAaVXf5DAMn2ifp@public.gmane.org>
Date		: 2009-09-22 4:18 (35 days old)
References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By	: Michael Ellerman <michael-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>
		  James Bottomley <James.Bottomley-l3A5Bk7waGM@public.gmane.org>
Patch		: http://patchwork.kernel.org/patch/51412/


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug #14258] Memory leak in SCSI initialization
@ 2009-10-26 19:31   ` Rafael J. Wysocki
  0 siblings, 0 replies; 14+ messages in thread
From: Rafael J. Wysocki @ 2009-10-26 19:31 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Kernel Testers List, James Bottomley, Michael Ellerman,
	Tetsuo Handa

This message has been generated automatically as a part of a report
of regressions introduced between 2.6.30 and 2.6.31.

The following bug entry is on the current list of known regressions
introduced between 2.6.30 and 2.6.31.  Please verify if it still should
be listed and let me know (either way).


Bug-Entry	: http://bugzilla.kernel.org/show_bug.cgi?id=14258
Subject		: Memory leak in SCSI initialization
Submitter	: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date		: 2009-09-22 4:18 (35 days old)
References	: http://marc.info/?l=linux-kernel&m=125359311312243&w=4
Handled-By	: Michael Ellerman <michael@ellerman.id.au>
		  James Bottomley <James.Bottomley@suse.de>
Patch		: http://patchwork.kernel.org/patch/51412/



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Bug 14258] Memory leak in SCSI initialization
  2009-09-29 21:56 [Bug 14258] New: Memory leak in SCSI initialization bugzilla-daemon
  2009-09-29 21:56 ` [Bug 14258] " bugzilla-daemon
  2009-10-07 20:21 ` bugzilla-daemon
@ 2009-11-16 23:00 ` bugzilla-daemon
  2 siblings, 0 replies; 14+ messages in thread
From: bugzilla-daemon @ 2009-11-16 23:00 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=14258


Rafael J. Wysocki <rjw@sisk.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
         Resolution|PATCH_ALREADY_AVAILABLE     |CODE_FIX




--- Comment #2 from Rafael J. Wysocki <rjw@sisk.pl>  2009-11-16 23:00:26 ---
Fixed by commit 37e6ba00720c2786330dec2a9a5081e9e049422f .

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-11-16 23:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29 21:56 [Bug 14258] New: Memory leak in SCSI initialization bugzilla-daemon
2009-09-29 21:56 ` [Bug 14258] " bugzilla-daemon
2009-10-07 20:21 ` bugzilla-daemon
2009-11-16 23:00 ` bugzilla-daemon
  -- strict thread matches above, loose matches on Subject: below --
2009-10-01 19:53 2.6.32-rc1-git2: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
2009-10-01 19:56 ` [Bug #14258] Memory leak in SCSI initialization Rafael J. Wysocki
2009-10-02 12:58   ` Tetsuo Handa
2009-10-02 17:26     ` Rafael J. Wysocki
2009-10-07 14:04       ` Tetsuo Handa
2009-10-07 20:24         ` Rafael J. Wysocki
2009-10-11 22:41 2.6.32-rc4: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
2009-10-11 23:01 ` [Bug #14258] Memory leak in SCSI initialization Rafael J. Wysocki
2009-10-11 23:01   ` Rafael J. Wysocki
2009-10-15  2:30   ` Tetsuo Handa
2009-10-26 19:26 2.6.32-rc5-git3: Reported regressions 2.6.30 -> 2.6.31 Rafael J. Wysocki
2009-10-26 19:31 ` [Bug #14258] Memory leak in SCSI initialization Rafael J. Wysocki
2009-10-26 19:31   ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.