<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/sctp/auth.c, branch linux-4.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-07-17T03:52:14Z</updated>
<entry>
<title>sctp: remove the typedef sctp_hmac_algo_param_t</title>
<updated>2017-07-17T03:52:14Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-07-17T03:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1474774a7f0daf9878fd9537a24714f419e744ed'/>
<id>urn:sha1:1474774a7f0daf9878fd9537a24714f419e744ed</id>
<content type='text'>
This patch is to remove the typedef sctp_hmac_algo_param_t, and
replace with struct sctp_hmac_algo_param in the places where it's
using this typedef.

It is also to use sizeof(variable) instead of sizeof(type).

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: remove the typedef sctp_chunks_param_t</title>
<updated>2017-07-17T03:52:14Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-07-17T03:29:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a762a9d94d44980e3690f9de87b918376daa6428'/>
<id>urn:sha1:a762a9d94d44980e3690f9de87b918376daa6428</id>
<content type='text'>
This patch is to remove the typedef sctp_chunks_param_t, and
replace with struct sctp_chunks_param in the places where it's
using this typedef.

It is also to use sizeof(variable) instead of sizeof(type).

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: remove the typedef sctp_random_param_t</title>
<updated>2017-07-17T03:52:14Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-07-17T03:29:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b02db702face3791889a4fcf06691c086648ee89'/>
<id>urn:sha1:b02db702face3791889a4fcf06691c086648ee89</id>
<content type='text'>
This patch is to remove the typedef sctp_random_param_t, and
replace with struct sctp_random_param in the places where it's
using this typedef.

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net, sctp: convert sctp_auth_bytes.refcnt from atomic_t to refcount_t</title>
<updated>2017-07-04T21:35:18Z</updated>
<author>
<name>Reshetova, Elena</name>
</author>
<published>2017-07-04T12:53:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6871584a5e493a9fa3ad330a73966908b082deac'/>
<id>urn:sha1:6871584a5e493a9fa3ad330a73966908b082deac</id>
<content type='text'>
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.

Signed-off-by: Elena Reshetova &lt;elena.reshetova@intel.com&gt;
Signed-off-by: Hans Liljestrand &lt;ishkamiel@gmail.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: David Windsor &lt;dwindsor@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: remove the typedef sctp_paramhdr_t</title>
<updated>2017-07-01T16:08:41Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-06-30T03:52:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c9187049214127d3401926b033d05eb75d69c39'/>
<id>urn:sha1:3c9187049214127d3401926b033d05eb75d69c39</id>
<content type='text'>
This patch is to remove the typedef sctp_paramhdr_t, and replace
with struct sctp_paramhdr in the places where it's using this
typedef.

It is also to fix some indents and  use sizeof(variable) instead
of sizeof(type).

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: remove the typedef sctp_cid_t</title>
<updated>2017-07-01T16:08:41Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-06-30T03:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d85e68f4cde48f8c2fac6d9c00ca6988cf6e327'/>
<id>urn:sha1:6d85e68f4cde48f8c2fac6d9c00ca6988cf6e327</id>
<content type='text'>
This patch is to remove the typedef sctp_cid_t, and replace
with struct sctp_cid in the places where it's using this
typedef.

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: use IS_ENABLED() instead of checking for built-in or module</title>
<updated>2016-09-11T04:19:11Z</updated>
<author>
<name>Javier Martinez Canillas</name>
</author>
<published>2016-09-09T12:43:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aebf5de07aabd44db740c9d33b6daa1abd19fa56'/>
<id>urn:sha1:aebf5de07aabd44db740c9d33b6daa1abd19fa56</id>
<content type='text'>
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.

Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.

Signed-off-by: Javier Martinez Canillas &lt;javier@osg.samsung.com&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: Use shash</title>
<updated>2016-01-27T12:36:15Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2016-01-24T13:20:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5821c769706561da81e9fcec4a6ca6dbbb2f30cb'/>
<id>urn:sha1:5821c769706561da81e9fcec4a6ca6dbbb2f30cb</id>
<content type='text'>
This patch replaces uses of the long obsolete hash interface with
shash.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: translate host order to network order when setting a hmacid</title>
<updated>2015-11-15T23:27:27Z</updated>
<author>
<name>lucien</name>
</author>
<published>2015-11-12T05:07:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed5a377d87dc4c87fb3e1f7f698cba38cd893103'/>
<id>urn:sha1:ed5a377d87dc4c87fb3e1f7f698cba38cd893103</id>
<content type='text'>
now sctp auth cannot work well when setting a hmacid manually, which
is caused by that we didn't use the network order for hmacid, so fix
it by adding the transformation in sctp_auth_ep_set_hmacs.

even we set hmacid with the network order in userspace, it still
can't work, because of this condition in sctp_auth_ep_set_hmacs():

		if (id &gt; SCTP_AUTH_HMAC_ID_MAX)
			return -EOPNOTSUPP;

so this wasn't working before and thus it won't break compatibility.

Fixes: 65b07e5d0d09 ("[SCTP]: API updates to suport SCTP-AUTH extensions.")
Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: Marcelo Ricardo Leitner &lt;marcelo.leitner@gmail.com&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Acked-by: Vlad Yasevich &lt;vyasevich@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: allow authenticating DATA chunks that are bundled with COOKIE_ECHO</title>
<updated>2015-06-12T21:18:20Z</updated>
<author>
<name>Marcelo Ricardo Leitner</name>
</author>
<published>2015-06-11T17:49:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae36806a622aea5ac79f279cfccc82144967b6e7'/>
<id>urn:sha1:ae36806a622aea5ac79f279cfccc82144967b6e7</id>
<content type='text'>
Currently, we can ask to authenticate DATA chunks and we can send DATA
chunks on the same packet as COOKIE_ECHO, but if you try to combine
both, the DATA chunk will be sent unauthenticated and peer won't accept
it, leading to a communication failure.

This happens because even though the data was queued after it was
requested to authenticate DATA chunks, it was also queued before we
could know that remote peer can handle authenticating, so
sctp_auth_send_cid() returns false.

The fix is whenever we set up an active key, re-check send queue for
chunks that now should be authenticated. As a result, such packet will
now contain COOKIE_ECHO + AUTH + DATA chunks, in that order.

Reported-by: Liu Wei &lt;weliu@redhat.com&gt;
Signed-off-by: Marcelo Ricardo Leitner &lt;marcelo.leitner@gmail.com&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Acked-by: Vlad Yasevich &lt;vyasevich@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
