<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/net/sctp/structs.h, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-07-04T21:35:19Z</updated>
<entry>
<title>net, sctp: convert sctp_ep_common.refcnt from atomic_t to refcount_t</title>
<updated>2017-07-04T21:35:19Z</updated>
<author>
<name>Reshetova, Elena</name>
</author>
<published>2017-07-04T12:53:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c638457a7c6b8931cd4586d6a13a33887185342d'/>
<id>urn:sha1:c638457a7c6b8931cd4586d6a13a33887185342d</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>net, sctp: convert sctp_transport.refcnt from atomic_t to refcount_t</title>
<updated>2017-07-04T21:35:19Z</updated>
<author>
<name>Reshetova, Elena</name>
</author>
<published>2017-07-04T12:53:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4b2b58efd44db68358e1a6b71cf205c795d7ada'/>
<id>urn:sha1:a4b2b58efd44db68358e1a6b71cf205c795d7ada</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>net, sctp: convert sctp_chunk.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:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7f027961759f334bcc939980ec35480faa7ef17'/>
<id>urn:sha1:e7f027961759f334bcc939980ec35480faa7ef17</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>net, sctp: convert sctp_datamsg.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:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0acdfb409c82047853df1e5f3dbdbe4005c78ae'/>
<id>urn:sha1:c0acdfb409c82047853df1e5f3dbdbe4005c78ae</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_init_chunk_t</title>
<updated>2017-07-01T16:08:42Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-06-30T03:52:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=01a992bea523d9568cf56a02003c15c9dc40eb20'/>
<id>urn:sha1:01a992bea523d9568cf56a02003c15c9dc40eb20</id>
<content type='text'>
This patch is to remove the typedef sctp_init_chunk_t, and replace
with struct sctp_init_chunk 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: 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: handle errors when updating asoc</title>
<updated>2017-06-20T19:32:55Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-06-20T08:05:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ee8aa689780f2c19702fe3768a3103b9c07d72e'/>
<id>urn:sha1:5ee8aa689780f2c19702fe3768a3103b9c07d72e</id>
<content type='text'>
It's a bad thing not to handle errors when updating asoc. The memory
allocation failure in any of the functions called in sctp_assoc_update()
would cause sctp to work unexpectedly.

This patch is to fix it by aborting the asoc and reporting the error when
any of these functions fails.

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Acked-by: Marcelo Ricardo Leitner &lt;marcelo.leitner@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sctp: merge sctp_stream_new and sctp_stream_init</title>
<updated>2017-06-02T17:56:26Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-05-31T08:36:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff356414dc006170153c79434eb81d130c03beec'/>
<id>urn:sha1:ff356414dc006170153c79434eb81d130c03beec</id>
<content type='text'>
Since last patch, sctp doesn't need to alloc memory for asoc-&gt;stream any
more. sctp_stream_new and sctp_stream_init both are used to alloc memory
for stream.in or stream.out, and their names are also confusing.

This patch is to merge them into sctp_stream_init, and only pass stream
and streamcnt parameters into it, instead of the whole asoc.

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: define the member stream as an object instead of pointer in asoc</title>
<updated>2017-06-02T17:56:26Z</updated>
<author>
<name>Xin Long</name>
</author>
<published>2017-05-31T08:36:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cee360ab4dd66fc1de33a5fa1cb418fa21c27ce3'/>
<id>urn:sha1:cee360ab4dd66fc1de33a5fa1cb418fa21c27ce3</id>
<content type='text'>
As Marcelo's suggestion, stream is a fixed size member of asoc and would
not grow with more streams. To avoid an allocation for it, this patch is
to define it as an object instead of pointer and update the places using
it, also create sctp_stream_update() called in sctp_assoc_update() to
migrate the stream info from one stream to another.

Signed-off-by: Xin Long &lt;lucien.xin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
