1 Feb 01:01
Query regarding Kmemleak
Smital Desai <Smital.Desai <at> lntinfotech.com>
2012-02-01 00:01:34 GMT
2012-02-01 00:01:34 GMT
Hello ,
I am just trying to understand Kmemleak support.
In a test program , allocating some memory using and vmalloc () and freeing it in exit () routine.
But when i run a kmemleak , It reports this as a leak.
But isn't it a generic reuirement to allocate something for the lifetime of the module and free when we
remove the module. ? Can somebody explain ?
I have provided the kmemleak output and my test program below.
Thanks,
Smital Desai
=================================================================================
cat /sys/kernel/debug/memleak
unreferenced object 0xe1b18000 (size 512):
comm "insmod", pid 1066, jiffies 4294953148 (age 54.630s)
hex dump (first 32 bytes):
36 1c 00 00 02 16 00 00 3c 1c 00 00 02 16 00 00 6.......<.......
43 1c 00 00 02 16 00 00 4f 1c 00 00 02 16 00 00 C.......O.......
backtrace:
[<c0234ecc>] __vmalloc_node_range+0x1a8/0x1d0
[<c0234f2c>] __vmalloc_node+0x38/0x44
[<c023507c>] vmalloc+0x28/0x30
[<bf00200c>] 0xbf00200c
[<c0100458>] do_one_initcall+0x94/0x164
(Continue reading)
RSS Feed