<div dir="ltr"><div><div><div><div><div>Hi,<br></div>I&#39;m developing custom kernel for my Samsung Galaxy Ace 2 phone.<br></div>First, I&#39;d like to check if there are any bugs, so I built kernel with kmemleak enabled and I get 10 entries, for example:<br>
<br>unreferenced object 0xce2a2000 (size 8192):<br>  comm &quot;vold&quot;, pid 1855, jiffies 4294942835 (age 1394.240s)<br>  hex dump (first 32 bytes):<br>    00 00 00 00 24 7e 50 c0 d0 7d 50 c0 7c 7d 50 c0  ....$~P..}P.|}P.<br>
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................<br>  backtrace:<br>    [&lt;c03f4a00&gt;] create_object+0x10c/0x24c<br>    [&lt;c08e99f0&gt;] kmemleak_alloc+0x6c/0xd0<br>    [&lt;c03f1a54&gt;] __kmalloc+0x178/0x27c<br>
    [&lt;c0507988&gt;] __crypto_alloc_tfm+0x4c/0x140<br>    [&lt;c05086b8&gt;] crypto_spawn_tfm+0x78/0xcc<br>    [&lt;c0511dc0&gt;] crypto_cbc_init_tfm+0x2c/0x44<br>    [&lt;c05079dc&gt;] __crypto_alloc_tfm+0xa0/0x140<br>
    [&lt;c05086b8&gt;] crypto_spawn_tfm+0x78/0xcc<br>    [&lt;c050b968&gt;] skcipher_geniv_init+0x2c/0x54<br>    [&lt;c050cd68&gt;] eseqiv_init+0x50/0x54<br>    [&lt;c05079dc&gt;] __crypto_alloc_tfm+0xa0/0x140<br>    [&lt;c050aee0&gt;] crypto_alloc_ablkcipher+0x68/0xa8<br>
    [&lt;c06b82b0&gt;] crypt_ctr+0x294/0x8a0<br>    [&lt;c06b08c8&gt;] dm_table_add_target+0xf8/0x260<br>    [&lt;c06b3ffc&gt;] table_load+0x114/0x2c4<br>    [&lt;c06b37d4&gt;] dm_ctl_ioctl+0x1d0/0x2cc<br><br></div>I noticed that in 6 of 10 entries there are dm_ctl_ioctl, table_load and dm_table_add_target functions. So I think something is wrong with MD driver but I compared source of this driver with other find on net and there aren&#39;t any differences.<br>
</div>Source code of my kernel can be found here: <a href="https://github.com/hckk/GT-I8160_Kernel">https://github.com/hckk/GT-I8160_Kernel</a><br><br></div>Thanks for any help.<br>Greetings, Michal.<br></div>