<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/core/sock.c, branch linux-2.6.27.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.27.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-03-17T00:52:42Z</updated>
<entry>
<title>net: Kill skb_truesize_check(), it only catches false-positives.</title>
<updated>2009-03-17T00:52:42Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2009-02-26T07:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21ef40e66f6186898ea4240b83a0f1c7424953d0'/>
<id>urn:sha1:21ef40e66f6186898ea4240b83a0f1c7424953d0</id>
<content type='text'>
[ Upstream commit 92a0acce186cde8ead56c6915d9479773673ea1a ]

A long time ago we had bugs, primarily in TCP, where we would modify
skb-&gt;truesize (for TSO queue collapsing) in ways which would corrupt
the socket memory accounting.

skb_truesize_check() was added in order to try and catch this error
more systematically.

However this debugging check has morphed into a Frankenstein of sorts
and these days it does nothing other than catch false-positives.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>net: amend the fix for SO_BSDCOMPAT gsopt infoleak</title>
<updated>2009-03-17T00:52:41Z</updated>
<author>
<name>Eugene Teo</name>
</author>
<published>2009-02-23T23:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a6fa7047cf5cb20353178e9b31c3105f13461b54'/>
<id>urn:sha1:a6fa7047cf5cb20353178e9b31c3105f13461b54</id>
<content type='text'>
[ Upstream commit 50fee1dec5d71b8a14c1b82f2f42e16adc227f8b ]

The fix for CVE-2009-0676 (upstream commit df0bca04) is incomplete. Note
that the same problem of leaking kernel memory will reappear if someone
on some architecture uses struct timeval with some internal padding (for
example tv_sec 64-bit and tv_usec 32-bit) --- then, you are going to
leak the padded bytes to userspace.

Signed-off-by: Eugene Teo &lt;eugeneteo@kernel.sg&gt;
Reported-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>net: 4 bytes kernel memory disclosure in SO_BSDCOMPAT gsopt try #2</title>
<updated>2009-02-17T17:46:21Z</updated>
<author>
<name>Clément Lecigne</name>
</author>
<published>2009-02-13T00:59:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb450c36212e670fdb0cf58fd453557c243f515f'/>
<id>urn:sha1:bb450c36212e670fdb0cf58fd453557c243f515f</id>
<content type='text'>
[ Upstream commit df0bca049d01c0ee94afb7cd5dfd959541e6c8da ]

In function sock_getsockopt() located in net/core/sock.c, optval v.val
is not correctly initialized and directly returned in userland in case
we have SO_BSDCOMPAT option set.

This dummy code should trigger the bug:

int main(void)
{
	unsigned char buf[4] = { 0, 0, 0, 0 };
	int len;
	int sock;
	sock = socket(33, 2, 2);
	getsockopt(sock, 1, SO_BSDCOMPAT, &amp;buf, &amp;len);
	printf("%x%x%x%x\n", buf[0], buf[1], buf[2], buf[3]);
	close(sock);
}

Here is a patch that fix this bug by initalizing v.val just after its
declaration.

Signed-off-by: Clément Lecigne &lt;clement.lecigne@netasq.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>net: Update entry in af_family_clock_key_strings</title>
<updated>2008-07-23T21:06:04Z</updated>
<author>
<name>Oliver Hartkopp</name>
</author>
<published>2008-07-23T21:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4942af65028c5eb516fdd9053020ccb2ee186ce'/>
<id>urn:sha1:b4942af65028c5eb516fdd9053020ccb2ee186ce</id>
<content type='text'>
In the merge phase of the CAN subsystem the 
af_family_clock_key_strings[] have been added to sock.c in commit 
443aef0eddfa44c158d1b94ebb431a70638fcab4 
(lockdep: fixup sk_callback_lock annotation). This trivial patch adds 
the missing name for address family 29 (AF_CAN).

Signed-off-by: Oliver Hartkopp &lt;oliver@hartkopp.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sock: add net to prot-&gt;enter_memory_pressure callback</title>
<updated>2008-07-17T03:28:10Z</updated>
<author>
<name>Pavel Emelyanov</name>
</author>
<published>2008-07-17T03:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c52ba170f8167511bdb65b981f4582100c40675'/>
<id>urn:sha1:5c52ba170f8167511bdb65b981f4582100c40675</id>
<content type='text'>
The tcp_enter_memory_pressure calls NET_INC_STATS, but doesn't
have where to get the net from.

I decided to add a sk argument, not the net itself, only to factor
all the required sock_net(sk) calls inside the enter_memory_pressure 
callback 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>net: Add sk_set_socket() helper.</title>
<updated>2008-06-18T05:41:38Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-06-18T05:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=972692e0db9b0a62329ca394062b58917ddbd03c'/>
<id>urn:sha1:972692e0db9b0a62329ca394062b58917ddbd03c</id>
<content type='text'>
In order to more easily grep for all things that set
sk-&gt;sk_socket, add sk_set_socket() helper inline function.

Suggested (although only half-seriously) by Evgeniy Polyakov.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: remove CVS keywords</title>
<updated>2008-06-12T04:00:38Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2008-06-11T05:46:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b040829952d84bf2a62526f0e24b624e0699447'/>
<id>urn:sha1:0b040829952d84bf2a62526f0e24b624e0699447</id>
<content type='text'>
This patch removes CVS keywords that weren't updated for a long time
from comments.

Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: Fix typo in net/core/sock.c.</title>
<updated>2008-05-14T10:50:03Z</updated>
<author>
<name>Rami Rosen</name>
</author>
<published>2008-05-14T10:50:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ee6b7f1556e7889eff4666483b1b554d4686cd4'/>
<id>urn:sha1:9ee6b7f1556e7889eff4666483b1b554d4686cd4</id>
<content type='text'>
In sock_queue_rcv_skb()  (net/core/sock.c) it should be:
"Cast sk-&gt;rcvbuf ..." instead of: "Cast skb-&gt;rcvbuf ..."

Signed-off-by: Rami Rosen &lt;ramirose@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: Add missing braces to multi-statement if()s</title>
<updated>2008-05-02T23:20:10Z</updated>
<author>
<name>Ilpo Järvinen</name>
</author>
<published>2008-05-02T23:20:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50aab54f3056ba28afc681f71adee41c399dde1e'/>
<id>urn:sha1:50aab54f3056ba28afc681f71adee41c399dde1e</id>
<content type='text'>
One finds all kinds of crazy things with some shell pipelining.

Signed-off-by: Ilpo Järvinen &lt;ilpo.jarvinen@helsinki.fi&gt;
Acked-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6</title>
<updated>2008-04-22T00:20:53Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2008-04-22T00:20:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a3227268877b81096d7b7a841aaf51099ad2068'/>
<id>urn:sha1:8a3227268877b81096d7b7a841aaf51099ad2068</id>
<content type='text'>
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SPARC]: Remove SunOS and Solaris binary support.
</content>
</entry>
</feed>
