<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/crypto/algif_skcipher.c, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-10-04T01:36:43Z</updated>
<entry>
<title>crypto: algif_skcipher - only call put_page on referenced and used pages</title>
<updated>2017-10-04T01:36:43Z</updated>
<author>
<name>Stephan Mueller</name>
</author>
<published>2017-08-16T09:56:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14d50b623de85f26798581f84439a027b79c4262'/>
<id>urn:sha1:14d50b623de85f26798581f84439a027b79c4262</id>
<content type='text'>
[ Upstream commit 445a582738de6802669aeed9c33ca406c23c3b1f ]

For asynchronous operation, SGs are allocated without a page mapped to
them or with a page that is not used (ref-counted). If the SGL is freed,
the code must only call put_page for an SG if there was a page assigned
and ref-counted in the first place.

This fixes a kernel crash when using io_submit with more than one iocb
using the sendmsg and sendpage (vmsplice/splice) interface.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Stephan Mueller &lt;smueller@chronox.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
</content>
</entry>
<entry>
<title>Backport fix for crypto: algif_skcipher - Fix race condition in skcipher_check_key</title>
<updated>2016-02-28T05:09:45Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-02-26T11:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64c4131f16acba869e5280ee46e7dbf93fd8b960'/>
<id>urn:sha1:64c4131f16acba869e5280ee46e7dbf93fd8b960</id>
<content type='text'>
commit 1822793a523e5d5730b19cc21160ff1717421bc8 upstream.

We need to lock the child socket in skcipher_check_key as otherwise
two simultaneous calls can cause the parent socket to be freed.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>Backport fix for crypto: algif_skcipher - Remove custom release parent function</title>
<updated>2016-02-28T05:09:45Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-02-26T11:44:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7327b23abeb498c103125f234c7698115db5970b'/>
<id>urn:sha1:7327b23abeb498c103125f234c7698115db5970b</id>
<content type='text'>
commit d7b65aee1e7b4c87922b0232eaba56a8a143a4a0 upstream.

This patch removes the custom release parent function as the
generic af_alg_release_parent now works for nokey sockets too.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>Backport fix for crypto: algif_skcipher - Add nokey compatibility path</title>
<updated>2016-02-28T05:09:44Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-02-26T11:44:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ce5c14e78a7c44a6f9c6af3548748dbe22a80af'/>
<id>urn:sha1:1ce5c14e78a7c44a6f9c6af3548748dbe22a80af</id>
<content type='text'>
commit a0fa2d037129a9849918a92d91b79ed6c7bd2818 upstream.

This patch adds a compatibility path to support old applications
that do acept(2) before setkey.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>Backport fix for crypto: algif_skcipher - Require setkey before accept(2)</title>
<updated>2016-02-28T05:09:44Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-02-26T11:44:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=762330b161c49c6d88ab689a0ee2a1a959dc5b6b'/>
<id>urn:sha1:762330b161c49c6d88ab689a0ee2a1a959dc5b6b</id>
<content type='text'>
commit dd504589577d8e8e70f51f997ad487a4cb6c026f upstream.

Some cipher implementations will crash if you try to use them
without calling setkey first.  This patch adds a check so that
the accept(2) call will fail with -ENOKEY if setkey hasn't been
done on the socket yet.

Cc: stable@vger.kernel.org
Reported-by: Dmitry Vyukov &lt;dvyukov@google.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Tested-by: Dmitry Vyukov &lt;dvyukov@google.com&gt;
[backported to 4.1 by Milan Broz &lt;gmazyland@gmail.com&gt;]

Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>crypto: algif_skcipher - sendmsg SG marking is off by one</title>
<updated>2016-02-03T21:23:21Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-01-19T13:23:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9c56fd066f9b5d222e0813b732908dabd721867'/>
<id>urn:sha1:a9c56fd066f9b5d222e0813b732908dabd721867</id>
<content type='text'>
[ Upstream commit 202736d99b7f29279db9da61587f11a08a04a9c6 ]

We mark the end of the SG list in sendmsg and sendpage and unmark
it on the next send call.  Unfortunately the unmarking in sendmsg
is off-by-one, leading to an SG list that is too short.

Fixes: 0f477b655a52 ("crypto: algif - Mark sgl end at the end of data")
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>new helper: msg_data_left()</title>
<updated>2015-04-11T19:53:35Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2014-12-16T02:39:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=01e97e6517053d7c0b9af5248e944a9209909cf5'/>
<id>urn:sha1:01e97e6517053d7c0b9af5248e944a9209909cf5</id>
<content type='text'>
convert open-coded instances

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>Merge branch 'iocb' into for-davem</title>
<updated>2015-04-09T04:01:38Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2015-04-09T04:00:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=237dae889051ed4ebf438b08ca6c0e7c54b97774'/>
<id>urn:sha1:237dae889051ed4ebf438b08ca6c0e7c54b97774</id>
<content type='text'>
trivial conflict in net/socket.c and non-trivial one in crypto -
that one had evaded aio_complete() removal.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>crypto: algif - explicitly mark end of data</title>
<updated>2015-04-02T02:59:28Z</updated>
<author>
<name>tadeusz.struk@intel.com</name>
</author>
<published>2015-04-01T20:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=033f46b3c13d4072d8ee6b26dd1e90fdd06895d0'/>
<id>urn:sha1:033f46b3c13d4072d8ee6b26dd1e90fdd06895d0</id>
<content type='text'>
After the TX sgl is expanded we need to explicitly mark end of data
at the last buffer that contains data.

Changes in v2
 - use type 'bool' and true/false for 'mark'.

Signed-off-by: Tadeusz Struk &lt;tadeusz.struk@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>crypto: algif - use kmalloc instead of kzalloc</title>
<updated>2015-04-01T19:32:35Z</updated>
<author>
<name>Tadeusz Struk</name>
</author>
<published>2015-03-30T21:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=82d929207a11402f9cfe2131013a94939967828a'/>
<id>urn:sha1:82d929207a11402f9cfe2131013a94939967828a</id>
<content type='text'>
No need to use kzalloc to allocate sgls as the structure is initialized anyway.

Signed-off-by: Tadeusz Struk &lt;tadeusz.struk@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
