Hi,
I built kernel for Samsung Galaxy Ace 2 from Samsung's source code with 
kmemleak enabled. There were a few errors, so I fixed them as it can be 
seen here: https://github.com/hckk/GT-I8160_Kernel
There are 10 entries in kmemleak output. For example:

unreferenced object 0xce2a2000 (size 8192):
  comm "vold", pid 1855, jiffies 4294942835 (age 1394.240s)
  hex dump (first 32 bytes):
    00 00 00 00 24 7e 50 c0 d0 7d 50 c0 7c 7d 50 c0  ....$~P..}P.|}P.
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<c03f4a00>] create_object+0x10c/0x24c
    [<c08e99f0>] kmemleak_alloc+0x6c/0xd0
    [<c03f1a54>] __kmalloc+0x178/0x27c
    [<c0507988>] __crypto_alloc_tfm+0x4c/0x140
    [<c05086b8>] crypto_spawn_tfm+0x78/0xcc
    [<c0511dc0>] crypto_cbc_init_tfm+0x2c/0x44
    [<c05079dc>] __crypto_alloc_tfm+0xa0/0x140
    [<c05086b8>] crypto_spawn_tfm+0x78/0xcc
    [<c050b968>] skcipher_geniv_init+0x2c/0x54
    [<c050cd68>] eseqiv_init+0x50/0x54
    [<c05079dc>] __crypto_alloc_tfm+0xa0/0x140
    [<c050aee0>] crypto_alloc_ablkcipher+0x68/0xa8
    [<c06b82b0>] crypt_ctr+0x294/0x8a0
    [<c06b08c8>] dm_table_add_target+0xf8/0x260
    [<c06b3ffc>] table_load+0x114/0x2c4
    [<c06b37d4>] dm_ctl_ioctl+0x1d0/0x2cc

So, I should find dm_ctl_ioctl function in source code and check if any 
memory allocated there is released in this function or any other from call 
trace, am I right?
I noticed that in almost all leaks, there is dm_table_add_target function 
in call trace.

The second problem is that I can't get telephony to work on any kernel that 
I build.
It seems like modules drivers/char/hwreg/hwreg.ko and 
drivers/char/hw_random/rng-core.ko aren't loaded during boot. I can insmod 
them without any error but telephony is still disabled.
What may be wrong with it?

Greetings, Michal.

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to