<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/rxrpc, 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>2018-05-23T01:36:30Z</updated>
<entry>
<title>rxrpc: check return value of skb_to_sgvec always</title>
<updated>2018-05-23T01:36:30Z</updated>
<author>
<name>Jason A. Donenfeld</name>
</author>
<published>2017-06-04T02:16:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=966d7343be47fbcd2e775475ddf82d7de58d1682'/>
<id>urn:sha1:966d7343be47fbcd2e775475ddf82d7de58d1682</id>
<content type='text'>
[ Upstream commit 89a5ea99662505d2d61f2a3030a6896c2cb3cdb0 ]

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Acked-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
</content>
</entry>
<entry>
<title>rxrpc: Fix several cases where a padded len isn't checked in ticket decode</title>
<updated>2017-07-31T17:37:48Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2017-06-14T23:12:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84589c8b4819932f41313b7ed4c58881ab466a20'/>
<id>urn:sha1:84589c8b4819932f41313b7ed4c58881ab466a20</id>
<content type='text'>
[ Upstream commit 5f2f97656ada8d811d3c1bef503ced266fcd53a0 ]

This fixes CVE-2017-7482.

When a kerberos 5 ticket is being decoded so that it can be loaded into an
rxrpc-type key, there are several places in which the length of a
variable-length field is checked to make sure that it's not going to
overrun the available data - but the data is padded to the nearest
four-byte boundary and the code doesn't check for this extra.  This could
lead to the size-remaining variable wrapping and the data pointer going
over the end of the buffer.

Fix this by making the various variable-length data checks use the padded
length.

Reported-by: 石磊 &lt;shilei-c@360.cn&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Reviewed-by: Marc Dionne &lt;marc.c.dionne@auristor.com&gt;
Reviewed-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.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 remote-tracking branch 'dh/afs' into for-davem</title>
<updated>2015-04-11T19:51:09Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2015-04-11T19:51:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2dd3793a1c3ac709f1d7b48ad7751563f4c654f'/>
<id>urn:sha1:a2dd3793a1c3ac709f1d7b48ad7751563f4c654f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>RxRPC: Handle VERSION Rx protocol packets</title>
<updated>2015-04-01T15:31:26Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2015-04-01T15:31:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=44ba06987c0b10faa998b9324850e8a6564c714d'/>
<id>urn:sha1:44ba06987c0b10faa998b9324850e8a6564c714d</id>
<content type='text'>
Handle VERSION Rx protocol packets.  We should respond to a VERSION packet
with a string indicating the Rx version.  This is a maximum of 64 characters
and is padded out to 65 chars with NUL bytes.

Note that other AFS clients use the version request as a NAT keepalive so we
need to handle it rather than returning an abort.

The standard formulation seems to be:

	&lt;project&gt; &lt;version&gt; built &lt;yyyy&gt;-&lt;mm&gt;-&lt;dd&gt;

for example:

	" OpenAFS 1.6.2 built  2013-05-07 "

(note the three extra spaces) as obtained with:

	rxdebug grand.mit.edu -version

from the openafs package.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
</content>
</entry>
<entry>
<title>RxRPC: Use iov_iter_count() in rxrpc_send_data() instead of the len argument</title>
<updated>2015-04-01T14:49:26Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2015-04-01T14:43:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=382d7974de31ef5e64dceee0d9cada3d3864b767'/>
<id>urn:sha1:382d7974de31ef5e64dceee0d9cada3d3864b767</id>
<content type='text'>
Use iov_iter_count() in rxrpc_send_data() to get the remaining data length
instead of using the len argument as the len argument is now redundant.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
</content>
</entry>
<entry>
<title>RxRPC: Don't call skb_add_data() if there's no data to copy</title>
<updated>2015-04-01T14:48:00Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2015-04-01T14:48:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aab94830a7fdf17aac07fea54d4cb43b0ad001b8'/>
<id>urn:sha1:aab94830a7fdf17aac07fea54d4cb43b0ad001b8</id>
<content type='text'>
Don't call skb_add_data() in rxrpc_send_data() if there's no data to copy and
also skip the calculations associated with it in such a case.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
</content>
</entry>
<entry>
<title>RxRPC: Fix the conversion to iov_iter</title>
<updated>2015-04-01T13:06:00Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2015-04-01T13:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3af6878ecad229346fbc2c8f2663089aa6aef20d'/>
<id>urn:sha1:3af6878ecad229346fbc2c8f2663089aa6aef20d</id>
<content type='text'>
This commit:

	commit af2b040e470b470bfc881981db3c796072853eae
	Author: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
	Date:   Thu Nov 27 21:44:24 2014 -0500
	Subject: rxrpc: switch rxrpc_send_data() to iov_iter primitives

incorrectly changes a do-while loop into a while loop in rxrpc_send_data().

Unfortunately, at least one pass through the loop is required - even if
there is no data - so that the packet the closes the send phase can be
sent if MSG_MORE is not set.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</title>
<updated>2015-03-20T22:51:09Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2015-03-20T22:51:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fa74a4be48e0f810d3dc6ddbc9d6ac7e86cbee8'/>
<id>urn:sha1:0fa74a4be48e0f810d3dc6ddbc9d6ac7e86cbee8</id>
<content type='text'>
Conflicts:
	drivers/net/ethernet/emulex/benet/be_main.c
	net/core/sysctl_net_core.c
	net/ipv4/inet_diag.c

The be_main.c conflict resolution was really tricky.  The conflict
hunks generated by GIT were very unhelpful, to say the least.  It
split functions in half and moved them around, when the real actual
conflict only existed solely inside of one function, that being
be_map_pci_bars().

So instead, to resolve this, I checked out be_main.c from the top
of net-next, then I applied the be_main.c changes from 'net' since
the last time I merged.  And this worked beautifully.

The inet_diag.c and sysctl_net_core.c conflicts were simple
overlapping changes, and were easily to resolve.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>rxrpc: bogus MSG_PEEK test in rxrpc_recvmsg()</title>
<updated>2015-03-16T02:20:09Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2015-03-14T05:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d985ed1dca5c90535d67ce92ef6ca520302340a'/>
<id>urn:sha1:7d985ed1dca5c90535d67ce92ef6ca520302340a</id>
<content type='text'>
[I would really like an ACK on that one from dhowells; it appears to be
quite straightforward, but...]

MSG_PEEK isn't passed to -&gt;recvmsg() via msg-&gt;msg_flags; as the matter of
fact, neither the kernel users of rxrpc, nor the syscalls ever set that bit
in there.  It gets passed via flags; in fact, another such check in the same
function is done correctly - as flags &amp; MSG_PEEK.

It had been that way (effectively disabled) for 8 years, though, so the patch
needs beating up - that case had never been tested.  If it is correct, it's
-stable fodder.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
