<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/crypto/caam, branch v3.11.1</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2013-07-10T06:47:13+00:00</updated>
<entry>
<title>crypto: caam - Fixed the memory out of bound overwrite issue</title>
<updated>2013-07-10T06:47:13+00:00</updated>
<author>
<name>Vakul Garg</name>
<email>vakul@freescale.com</email>
</author>
<published>2013-07-10T06:26:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9c23b7d3d6bda41e2a27375df705485523a96dc8'/>
<id>urn:sha1:9c23b7d3d6bda41e2a27375df705485523a96dc8</id>
<content type='text'>
When kernel is compiled with CONFIG_SLUB_DEBUG=y and
CRYPTO_MANAGER_DISABLE_TESTS=n, during kernel bootup, the kernel
reports error given below. The root cause is that in function
hash_digest_key(), for allocating descriptor, insufficient memory was
being allocated. The required number of descriptor words apart from
input and output pointers are 8 (instead of 6).

=============================================================================
BUG dma-kmalloc-32 (Not tainted): Redzone overwritten
-----------------------------------------------------------------------------

Disabling lock debugging due to kernel taint
INFO: 0xdec5dec0-0xdec5dec3. First byte 0x0 instead of 0xcc
INFO: Allocated in ahash_setkey+0x60/0x594 age=7 cpu=1 pid=1257
        __kmalloc+0x154/0x1b4
        ahash_setkey+0x60/0x594
        test_hash+0x260/0x5a0
        alg_test_hash+0x48/0xb0
        alg_test+0x84/0x228
        cryptomgr_test+0x4c/0x54
        kthread+0x98/0x9c
        ret_from_kernel_thread+0x64/0x6c
INFO: Slab 0xc0bd0ba0 objects=19 used=2 fp=0xdec5d0d0 flags=0x0081
INFO: Object 0xdec5dea0 @offset=3744 fp=0x5c200014

Bytes b4 dec5de90: 00 00 00 00 00 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a
........ZZZZZZZZ
Object dec5dea0: b0 80 00 0a 84 41 00 0d f0 40 00 00 00 67 3f c0
.....A...@...g?.
Object dec5deb0: 00 00 00 50 2c 14 00 50 f8 40 00 00 1e c5 d0 00
...P,..P.@......
Redzone dec5dec0: 00 00 00 14                                      ....
Padding dec5df68: 5a 5a 5a 5a 5a 5a 5a 5a
ZZZZZZZZ
Call Trace:
[dec65b60] [c00071b4] show_stack+0x4c/0x168 (unreliable)
[dec65ba0] [c00d4ec8] check_bytes_and_report+0xe4/0x11c
[dec65bd0] [c00d507c] check_object+0x17c/0x23c
[dec65bf0] [c0550a00] free_debug_processing+0xf4/0x294
[dec65c20] [c0550bdc] __slab_free+0x3c/0x294
[dec65c80] [c03f0744] ahash_setkey+0x4e0/0x594
[dec65cd0] [c01ef138] test_hash+0x260/0x5a0
[dec65e50] [c01ef4c0] alg_test_hash+0x48/0xb0
[dec65e70] [c01eecc4] alg_test+0x84/0x228
[dec65ee0] [c01ec640] cryptomgr_test+0x4c/0x54
[dec65ef0] [c005adc0] kthread+0x98/0x9c
[dec65f40] [c000e1ac] ret_from_kernel_thread+0x64/0x6c
FIX dma-kmalloc-32: Restoring 0xdec5dec0-0xdec5dec3=0xcc

Change-Id: I0c7a1048053e811025d1c3b487940f87345c8f5d
Signed-off-by: Vakul Garg &lt;vakul@freescale.com&gt;
CC: &lt;stable@vger.kernel.org&gt; #3.9
Reviewed-by: Geanta Neag Horia Ioan-B05471 &lt;horia.geanta@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Tested-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto</title>
<updated>2013-06-21T07:13:27+00:00</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2013-06-21T07:13:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=02c0241b600e4ab8a732c89749e252165145d60c'/>
<id>urn:sha1:02c0241b600e4ab8a732c89749e252165145d60c</id>
<content type='text'>
Merge crypto to resolve conflict in crypto/Kconfig.
</content>
</entry>
<entry>
<title>crypto: caam - add missing flag for the LOAD/STORE commands</title>
<updated>2013-05-28T07:37:08+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=91dc363a86142afcbc4e9c3ab31b0f4563b0f269'/>
<id>urn:sha1:91dc363a86142afcbc4e9c3ab31b0f4563b0f269</id>
<content type='text'>
Add Class Context SRC / DEST flags for the LOAD &amp; STORE commands

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Add define for Adjust Output Frame Length in PDB</title>
<updated>2013-05-28T07:37:08+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=da64e35810e0717ec63ca25a46118f48e320caff'/>
<id>urn:sha1:da64e35810e0717ec63ca25a46118f48e320caff</id>
<content type='text'>
Add define for "Adjust Output Frame Length" in order to
set the AOFL bit in the IPsec ESP Decapsulation PDB.

Signed-off-by: Anca-Jeanina Floarea &lt;anca.floarea@freescale.com&gt;
Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Add defines for CAAM commands</title>
<updated>2013-05-28T07:37:08+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=590f9667a2307b24e9b56138d901dd2f228db6e0'/>
<id>urn:sha1:590f9667a2307b24e9b56138d901dd2f228db6e0</id>
<content type='text'>
add defines for:
    append load immediate command
    setting SEQ LIODN equal to the Non-SEQ LIODN for the job
    replace job descriptor command

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Add defines for overwriting Descriptor's memory</title>
<updated>2013-05-28T07:37:07+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1f50be97f630012e096968d79f5b2fbfebadaf81'/>
<id>urn:sha1:1f50be97f630012e096968d79f5b2fbfebadaf81</id>
<content type='text'>
Store command has options to overwrite the Job Desc, Shared Desc or
the entire Descriptor in memory, using the address from
which the Descriptor was fetched.

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Add new macros for building extended SEC descriptors (&gt; 64 words)</title>
<updated>2013-05-28T07:37:07+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3ebfa92f49a61a00e967112632ad10e92998bb75'/>
<id>urn:sha1:3ebfa92f49a61a00e967112632ad10e92998bb75</id>
<content type='text'>
added all supported math funtion on 8 byte boundary with
immediate flag bit set automatically

added MATH_SRC0_DPOVRD &amp; MATH_SRC1_DPOVRD

The function/defines above are needed for creating descriptors
longer than 64 words

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Add MATH command to support shld function</title>
<updated>2013-05-28T07:37:06+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d179333b0c6298291c384a0b0ba51ee67d983758'/>
<id>urn:sha1:d179333b0c6298291c384a0b0ba51ee67d983758</id>
<content type='text'>
Perform 32-bit left shift of DEST and concatenate with
left 32 bits of SRC1. {DEST[31:0],SRC1[63:32]}

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Acked-by: Mihai Serb &lt;mihai.serb@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - Fix STORE command to support overwriting Shared Descriptor's memory</title>
<updated>2013-05-28T07:37:06+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=524f1bd9a3d401cca16bca16582cd71c0abc8bd9'/>
<id>urn:sha1:524f1bd9a3d401cca16bca16582cd71c0abc8bd9</id>
<content type='text'>
In case Store command is used with overwrite Shared Descriptor
feature there is no need for pointer, it is using the
address from which the Shared Descriptor was fetched.

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - fix SEQ IN PTR command when RTO or PRE bit is set</title>
<updated>2013-05-28T07:37:05+00:00</updated>
<author>
<name>Andrei Varvara</name>
<email>andrei.varvara@freescale.com</email>
</author>
<published>2013-05-28T07:37:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e2d4ea9444024e38217e4b7e380c6b9f39f9a5f2'/>
<id>urn:sha1:e2d4ea9444024e38217e4b7e380c6b9f39f9a5f2</id>
<content type='text'>
SEQ IN PTR command does not require pointer if RTO or PRE bit is set
Updated desc_constr.h accordingly.

Signed-off-by: Andrei Varvara &lt;andrei.varvara@freescale.com&gt;
Reviewed-by: Phillips Kim-R1AAHA &lt;Kim.Phillips@freescale.com&gt;
Reviewed-by: Fleming Andrew-AFLEMING &lt;AFLEMING@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
