<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/tipc/socket.c, branch v2.6.26</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.26</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.26'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-04-25T08:49:48Z</updated>
<entry>
<title>net: Fix wrong interpretation of some copy_to_user() results.</title>
<updated>2008-04-25T08:49:48Z</updated>
<author>
<name>Pavel Emelyanov</name>
<email>xemul@openvz.org</email>
</author>
<published>2008-04-25T08:49:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=653252c2302cdf2dfbca66a7e177f7db783f9efa'/>
<id>urn:sha1:653252c2302cdf2dfbca66a7e177f7db783f9efa</id>
<content type='text'>
I found some places, that erroneously return the value obtained from
the copy_to_user() call: if some amount of bytes were not able to get
to the user (this is what this one returns) the proper behavior is to
return the -EFAULT error, not that number itself.

Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Overhaul of socket locking logic</title>
<updated>2008-04-15T07:22:02Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0c3141e910eaaa0b617e2f26c69b266d1cd1f035'/>
<id>urn:sha1:0c3141e910eaaa0b617e2f26c69b266d1cd1f035</id>
<content type='text'>
This patch modifies TIPC's socket code to follow the same approach
used by other protocols.  This change eliminates the need for a
mutex in the TIPC-specific portion of the socket protocol data
structure -- in its place, the standard Linux socket backlog queue
and associated locking routines are utilized.  These changes fix
a long-standing receive queue bug on SMP systems, and also enable
individual read and write threads to utilize a socket without
unnecessarily interfering with each other.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Cosmetic changes to TIPC connect() code</title>
<updated>2008-04-15T07:20:37Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b89741a0cc162511b4341c07e17e1bd4c8b4621d'/>
<id>urn:sha1:b89741a0cc162511b4341c07e17e1bd4c8b4621d</id>
<content type='text'>
This patch fixes TIPC's connect routine to conform to Linux
kernel style norms of indentation, line length, etc.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Add error check to detect non-blocking form of connect()</title>
<updated>2008-04-15T07:16:19Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4934c69a384ede7d0c3009098184554da2063de6'/>
<id>urn:sha1:4934c69a384ede7d0c3009098184554da2063de6</id>
<content type='text'>
This patch causes TIPC to return an error indication if the non-
blocking form of connect() is requested (which TIPC does not yet
support).

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Correct "off by 1" error in socket queue limit enforcement</title>
<updated>2008-04-15T07:15:50Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:15:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1819b83718dc3fe0aea0a2c3cd48d617e2003606'/>
<id>urn:sha1:1819b83718dc3fe0aea0a2c3cd48d617e2003606</id>
<content type='text'>
This patch fixes a bug that allowed TIPC to queue 1 more message
than allowed by the socket receive queue threshold limits.  The
patch also improves the threshold code's logic and naming to help
prevent this sort of error from recurring in the future.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Ignore message padding when receiving stream data</title>
<updated>2008-04-15T07:15:15Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:15:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7a8036c2b93c8301afce8f75ac099c347bad569d'/>
<id>urn:sha1:7a8036c2b93c8301afce8f75ac099c347bad569d</id>
<content type='text'>
This patch ensures that padding bytes appearing at the end of
an incoming TIPC message are not returned as valid stream data.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Allow stream receive to read from multiple TIPC messages</title>
<updated>2008-04-15T07:07:15Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a198d3a200313bca8261e30e6daaad790937fd7e'/>
<id>urn:sha1:a198d3a200313bca8261e30e6daaad790937fd7e</id>
<content type='text'>
This patch allows a stream socket to receive data from multiple
TIPC messages in its receive queue, without requiring the use of
the MSG_WAITALL flag.

Acknowledgements to Florian Westphal &lt;fw-tipc@strlen.de&gt; for
identifying this issue and suggesting how to correct it.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Skip connection flow control in connectionless sockets</title>
<updated>2008-04-15T07:06:12Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-15T07:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=990098068fe963f956c14f681bd88d90dcb14584'/>
<id>urn:sha1:990098068fe963f956c14f681bd88d90dcb14584</id>
<content type='text'>
This patch optimizes the receive path for SOCK_DGRAM and SOCK_RDM
messages by skipping over code that handles connection-based flow
control.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Improve socket time conversions</title>
<updated>2008-04-14T04:35:11Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-14T04:35:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3654ea02f2819cf8821c0acd35bc7cded5f1f2a9'/>
<id>urn:sha1:3654ea02f2819cf8821c0acd35bc7cded5f1f2a9</id>
<content type='text'>
This patch modifies TIPC's socket code to use standard kernel
routines to handle time conversions between jiffies and ms.
This ensures proper operation even when HZ isn't 1000.

Acknowledgements to Eric Sesterhenn &lt;snakebyte@gmx.de&gt; for
identifying this issue and proposing a solution.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[TIPC]: Remove redundant socket wait queue initialization</title>
<updated>2008-04-14T04:33:17Z</updated>
<author>
<name>Allan Stephens</name>
<email>allan.stephens@windriver.com</email>
</author>
<published>2008-04-14T04:33:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9673693284763417ea5edcdebc1a0c5d1dead51c'/>
<id>urn:sha1:9673693284763417ea5edcdebc1a0c5d1dead51c</id>
<content type='text'>
This patch eliminates re-initialization of the standard socket
wait queue used for sleeping in TIPC's socket creation code.

Signed-off-by: Allan Stephens &lt;allan.stephens@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
