lkml.org 
[lkml]   [2011]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: kmemleak for MIPS
    From
    Date
    On Tue, 2011-03-29 at 20:36 +0100, Maxin John wrote:
    > I have prepared the combined patch for kmemleak porting to MIPS. After
    > applying the patch and enabling the kmemleak in Kernel, I can see one
    > kernel memleak reported during booting itself:
    ...
    > unreferenced object 0x8f90d000 (size 4096):
    > comm "swapper", pid 1, jiffies 4294937330 (age 815.000s)
    > 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:
    > [<80529644>] alloc_large_system_hash+0x2f8/0x410
    > [<805383b4>] udp_table_init+0x4c/0x158
    > [<805384dc>] udp_init+0x1c/0x94
    > [<8053889c>] inet_init+0x184/0x2a0
    > [<80100584>] do_one_initcall+0x174/0x1e0
    > [<8051f348>] kernel_init+0xe4/0x174
    > [<80103d4c>] kernel_thread_helper+0x10/0x18

    If you for the kmemleak scan (via echo) a few times, do you get more
    leaks? The udp_table_init() function looks like it could leak some
    memory but I haven't seen it before. I'm not sure whether this is a
    false positive or a real leak.
    >
    > Please let me know your comments.
    >
    > Signed-off-by: Maxin B. John <maxin.john@gmail.com>
    > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

    I think the last line should be more like:

    Acked-by: Catalin Marinas <catalin.marinas@arm.com>




    \
     
     \ /
      Last update: 2011-03-30 11:17    [W:0.026 / U:0.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site