Skip to contentSkip to conversation

New: -next and -mm: kmemleak reports 6 leaks in ext4_mount paths

Bug 60121 [email protected] 2 participants 5 messages Jun 25, 2013 – Nov 13, 2013

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=60121

Summary: -next and -mm: kmemleak reports 6 leaks in ext4_mount
paths
Product: File System
Version: 2.5
Kernel Version: v3.10-rc6-684-g9dcc58c
Platform: All
OS/Version: Linux
Tree: -mm
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes

Created an attachment (id=106021)
--> (https://bugzilla.kernel.org/attachment.cgi?id=106021)
.config

In next-20130624, next-20130625 and mmotm (v3.10-rc6-684-g9dcc58c), kmemleak complains about some ext4_mount related allocations.

----

# cat /sys/kernel/debug/kmemleak 
unreferenced object 0xffff880002a6dd80 (size 256):
  comm "swapper/0", pid 1, jiffies 4294892475 (age 33.128s)
  hex dump (first 32 bytes):
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
    ff ff ff ff ff ff ff ff 0c 0d 36 82 ff ff ff ff  ..........6.....
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810cdd81>] list_lru_init+0x21/0xb0
    [<ffffffff810f36b5>] sget+0x305/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
unreferenced object 0xffff880002a6d980 (size 256):
  comm "swapper/0", pid 1, jiffies 4294892475 (age 33.128s)
  hex dump (first 32 bytes):
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
    ff ff ff ff ff ff ff ff 0c 0d 36 82 ff ff ff ff  ..........6.....
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810cdd81>] list_lru_init+0x21/0xb0
    [<ffffffff810f36c9>] sget+0x319/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
unreferenced object 0xffff880002a7a7a0 (size 32):
  comm "swapper/0", pid 1, jiffies 4294892475 (age 33.128s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810c091e>] register_shrinker+0x7e/0xa0
    [<ffffffff810f394e>] sget+0x59e/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
unreferenced object 0xffff88000692b1c0 (size 256):
  comm "swapper/0", pid 1, jiffies 4294892648 (age 32.500s)
  hex dump (first 32 bytes):
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
    ff ff ff ff ff ff ff ff 0c 0d 36 82 ff ff ff ff  ..........6.....
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810cdd81>] list_lru_init+0x21/0xb0
    [<ffffffff810f36b5>] sget+0x305/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
unreferenced object 0xffff88000692b2c0 (size 256):
  comm "swapper/0", pid 1, jiffies 4294892648 (age 32.500s)
  hex dump (first 32 bytes):
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
    ff ff ff ff ff ff ff ff 0c 0d 36 82 ff ff ff ff  ..........6.....
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810cdd81>] list_lru_init+0x21/0xb0
    [<ffffffff810f36c9>] sget+0x319/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
unreferenced object 0xffff880006916780 (size 32):
  comm "swapper/0", pid 1, jiffies 4294892648 (age 32.500s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff813adfc1>] kmemleak_alloc+0x21/0x50
    [<ffffffff810e7b43>] __kmalloc+0x103/0x460
    [<ffffffff810c091e>] register_shrinker+0x7e/0xa0
    [<ffffffff810f394e>] sget+0x59e/0x670
    [<ffffffff810f463a>] mount_bdev+0xba/0x1e0
    [<ffffffff81175460>] ext4_mount+0x10/0x20
    [<ffffffff810f4950>] mount_fs+0x10/0xc0
    [<ffffffff81111c5a>] vfs_kern_mount+0x5a/0xf0
    [<ffffffff811133ca>] do_mount+0x1da/0x9d0
    [<ffffffff81113c3e>] SyS_mount+0x7e/0xc0
    [<ffffffff8184c245>] mount_block_root+0x104/0x223
    [<ffffffff8184c455>] mount_root+0xf1/0xfa
    [<ffffffff8184c58e>] prepare_namespace+0x130/0x168
    [<ffffffff8184bff8>] kernel_init_freeable+0x185/0x192
    [<ffffffff813ab7f9>] kernel_init+0x9/0x180
    [<ffffffff813c963c>] ret_from_fork+0x7c/0xb0
#
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw
Quoted 19 lines · On Tue, Jun 25, 2013 at 06:25:04PM +0000, [email protected]…

https://bugzilla.kernel.org/show_bug.cgi?id=60121

Summary: -next and -mm: kmemleak reports 6 leaks in ext4_mount
paths
Product: File System
Version: 2.5
Kernel Version: v3.10-rc6-684-g9dcc58c
Platform: All
OS/Version: Linux
Tree: -mm
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes

Quoted 6 lines

Created an attachment (id=106021)
--> (https://bugzilla.kernel.org/attachment.cgi?id=106021)
.config

In next-20130624, next-20130625 and mmotm (v3.10-rc6-684-g9dcc58c), kmemleak complains about some ext4_mount related allocations.

Has nothing to do with ext4, and fixes are already on the way to -mm and -next. Thread here:

http://marc.info/?l=linux-fsdevel&m=137154854120579&w=2

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#2 lore raw

[Bug 60121] -next and -mm: kmemleak reports 6 leaks in ext4_mount paths

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=60121

--- Comment #1 from Dave Chinner <[email protected]> 2013-06-26 05:32:33 ---

Quoted 19 lines · On Tue, Jun 25, 2013 at 06:25:04PM +0000, [email protected]…

https://bugzilla.kernel.org/show_bug.cgi?id=60121

Summary: -next and -mm: kmemleak reports 6 leaks in ext4_mount
paths
Product: File System
Version: 2.5
Kernel Version: v3.10-rc6-684-g9dcc58c
Platform: All
OS/Version: Linux
Tree: -mm
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes

Quoted 1 line

Created an attachment (id=106021)

--> (https://bugzilla.kernel.org/attachment.cgi?id=106021)

Quoted 5 lines

--> (https://bugzilla.kernel.org/attachment.cgi?id=106021)
.config

In next-20130624, next-20130625 and mmotm (v3.10-rc6-684-g9dcc58c), kmemleak complains about some ext4_mount related allocations.

Has nothing to do with ext4, and fixes are already on the way to -mm and -next. Thread here:

http://marc.info/?l=linux-fsdevel&m=137154854120579&w=2

Cheers,

Dave.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 60121] -next and -mm: kmemleak reports 6 leaks in ext4_mount paths

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=60121

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |CODE_FIX
Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.