lkml.org 
[lkml]   [2016]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] of: fix memory leak related to safe_name()
From
Date
On 06/16/16 00:51, Mathieu Malaterre wrote:
> Sorry, symptoms not solved. According to kmemleak, I have now:
>
> [ 661.323100] kmemleak: 100 new suspected memory leaks (see
> /sys/kernel/debug/kmemleak)
> [ 1260.226120] kmemleak: 1 new suspected memory leaks (see
> /sys/kernel/debug/kmemleak)
>
> # head -40 /sys/kernel/debug/kmemleak
> unreferenced object 0xdf5326a0 (size 32):
> comm "swapper", pid 1, jiffies 4294892300 (age 2564.708s)
> hex dump (first 32 bytes):
> 62 61 73 65 00 00 4c d8 c5 78 df dc cc 43 e4 bc base..L..x...C..
> c4 c8 ec 8c ee de ce cf e8 c9 8a ea dc cc c6 fd ................
> backtrace:
> [<c014d4d8>] kstrdup+0x48/0x88
> [<c0454678>] __of_attach_node_sysfs+0xf0/0x100
> [<c075f21c>] of_core_init+0x8c/0xf8
> [<c0729594>] kernel_init_freeable+0xd4/0x208
> [<c00047e8>] kernel_init+0x24/0x11c
> [<c00158ec>] ret_from_kernel_thread+0x5c/0x64

< snip >

Brown paper bag time. I left out the kfree() in the one place that
your first patch added it. Version 3 on the way.

-Frank

\
 
 \ /
  Last update: 2016-06-16 20:21    [W:0.083 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site