<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/allwinner/sun8i-ce, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-06-27T10:04:01Z</updated>
<entry>
<title>crypto: sun8i-ce - move fallback ahash_request to the end of the struct</title>
<updated>2025-06-27T10:04:01Z</updated>
<author>
<name>Ovidiu Panait</name>
</author>
<published>2025-05-16T12:06:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=58a4cb91ad4dfe99db6e8f1ba426b19a59f86e83'/>
<id>urn:sha1:58a4cb91ad4dfe99db6e8f1ba426b19a59f86e83</id>
<content type='text'>
[ Upstream commit c822831b426307a6ca426621504d3c7f99765a39 ]

'struct ahash_request' has a flexible array at the end, so it must be the
last member in a struct, to avoid overwriting other struct members.

Therefore, move 'fallback_req' to the end of the 'sun8i_ce_hash_reqctx'
struct.

Fixes: 56f6d5aee88d ("crypto: sun8i-ce - support hash algorithms")
Signed-off-by: Ovidiu Panait &lt;ovidiu.panait.oss@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - call finalize with bh disabled</title>
<updated>2022-04-08T12:40:01Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2022-02-21T12:08:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24857d87cc7459fcd234fa46cbc7136c23810ff1'/>
<id>urn:sha1:24857d87cc7459fcd234fa46cbc7136c23810ff1</id>
<content type='text'>
[ Upstream commit f75a749b6d78aeae2ce90e14fcc4b7b3ba46126d ]

Doing ipsec produces a spinlock recursion warning.
This is due to not disabling BH during crypto completion function.

Fixes: 06f751b61329 ("crypto: allwinner - Add sun8i-ce Crypto Engine")
Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - Fix PM reference leak in sun8i_ce_probe()</title>
<updated>2021-05-11T12:47:21Z</updated>
<author>
<name>Shixin Liu</name>
</author>
<published>2021-04-08T07:18:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=836671775a6e726215b72b15fa7ca858ba6ae0e8'/>
<id>urn:sha1:836671775a6e726215b72b15fa7ca858ba6ae0e8</id>
<content type='text'>
[ Upstream commit cc987ae9150c255352660d235ab27c834aa527be ]

pm_runtime_get_sync will increment pm usage counter even it failed.
Forgetting to putting operation will result in reference leak here.
Fix it by replacing it with pm_runtime_resume_and_get to keep usage
counter balanced.

Signed-off-by: Shixin Liu &lt;liushixin2@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - fix two error path's memory leak</title>
<updated>2020-12-30T10:53:17Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-11-15T19:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=098a597f31150ea6a6d4a3e978bdc3b27212a64d'/>
<id>urn:sha1:098a597f31150ea6a6d4a3e978bdc3b27212a64d</id>
<content type='text'>
[ Upstream commit 732b764099f651a088fd931d7b8121b6aa84e62e ]

This patch fixes the following smatch warnings:
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c:412
sun8i_ce_hash_run() warn: possible memory leak of 'result'
Note: "buf" is leaked as well.

Furthermore, in case of ENOMEM, crypto_finalize_hash_request() was not
called which was an error.

Fixes: 56f6d5aee88d ("crypto: sun8i-ce - support hash algorithms")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun8x-ce*: update entries to its documentation</title>
<updated>2020-10-28T17:41:15Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2020-10-27T09:51:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e930c39e098499702c23facb8cd180e35a24e9df'/>
<id>urn:sha1:e930c39e098499702c23facb8cd180e35a24e9df</id>
<content type='text'>
The README file was converted to ReST format. Update the
references for it accordingly.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Link: https://lore.kernel.org/r/e3122e9575769bcf74bc2bdef08755209cb51971.1603791716.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - fix comparison of integer expressions of different signedness</title>
<updated>2020-09-25T07:48:35Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-09-18T07:23:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25d85ffca16a265a8b940ecf57da9a2270cbd829'/>
<id>urn:sha1:25d85ffca16a265a8b940ecf57da9a2270cbd829</id>
<content type='text'>
This patch fixes the warning:
warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - Add support for the TRNG</title>
<updated>2020-09-25T07:48:28Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-09-18T07:23:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a07eab32f4b5f432ee9d212b8db1b8e4699e9db'/>
<id>urn:sha1:4a07eab32f4b5f432ee9d212b8db1b8e4699e9db</id>
<content type='text'>
This patch had support for the TRNG present in the CE.
Note that according to the algorithm ID, 2 version of the TRNG exists,
the first present in H3/H5/R40/A64 and the second present in H6.
This patch adds support for both, but only the second is working
reliabily according to rngtest.

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - Add support for the PRNG</title>
<updated>2020-09-25T07:48:27Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-09-18T07:23:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5eb7e946888493959b1c393144934afcbcd0cfc1'/>
<id>urn:sha1:5eb7e946888493959b1c393144934afcbcd0cfc1</id>
<content type='text'>
This patch had support for the PRNG present in the CE.
The output was tested with rngtest without any failure.

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - Add stat_bytes debugfs</title>
<updated>2020-09-25T07:48:19Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-09-18T07:23:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c394170d8c652b17a9e1e35d3b99f558867dbb8'/>
<id>urn:sha1:5c394170d8c652b17a9e1e35d3b99f558867dbb8</id>
<content type='text'>
This patch adds a new stat_bytes counter in the sun8i-ce debugfs.

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun8i-ce - support hash algorithms</title>
<updated>2020-09-25T07:48:18Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2020-09-18T07:23:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=56f6d5aee88d129b2424902cd630f10794550763'/>
<id>urn:sha1:56f6d5aee88d129b2424902cd630f10794550763</id>
<content type='text'>
The CE support multiples hash algorithms, this patch adds support for
MD5, SHA1, SHA224, SHA256, SHA384 and SHA512.

Signed-off-by: Corentin Labbe &lt;clabbe@baylibre.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
