<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/core/sock.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-03-17T00:31:55Z</updated>
<entry>
<title>net: Kill skb_truesize_check(), it only catches false-positives.</title>
<updated>2009-03-17T00:31:55Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2009-02-18T05:24:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e32ee958d7c37b95c2ad03617d03b37cc99dc171'/>
<id>urn:sha1:e32ee958d7c37b95c2ad03617d03b37cc99dc171</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:31:54Z</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=3f2d812547dfafcb3d6c9ac30d2ef88104438258'/>
<id>urn:sha1:3f2d812547dfafcb3d6c9ac30d2ef88104438258</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:28:57Z</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=9540bf5c89f8e329dab7638001c79e079714fd5c'/>
<id>urn:sha1:9540bf5c89f8e329dab7638001c79e079714fd5c</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: Fix memory leak in the proto_register function</title>
<updated>2008-11-22T00:45:22Z</updated>
<author>
<name>Catalin Marinas</name>
</author>
<published>2008-11-22T00:45:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7e56b5d698707a9934833c47b24d78fb0bcaf764'/>
<id>urn:sha1:7e56b5d698707a9934833c47b24d78fb0bcaf764</id>
<content type='text'>
If the slub allocator is used, kmem_cache_create() may merge two or more
kmem_cache's into one but the cache name pointer is not updated and
kmem_cache_name() is no longer guaranteed to return the pointer passed
to the former function. This patch stores the kmalloc'ed pointers in the
corresponding request_sock_ops and timewait_sock_ops structures.

Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Acked-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Reviewed-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>lockdep: include/linux/lockdep.h - fix warning in net/bluetooth/af_bluetooth.c</title>
<updated>2008-11-14T07:19:10Z</updated>
<author>
<name>Ingo Molnar</name>
</author>
<published>2008-11-12T01:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8f6fbf62de37cbc2e179176ac7010d5f4396b67'/>
<id>urn:sha1:e8f6fbf62de37cbc2e179176ac7010d5f4396b67</id>
<content type='text'>
fix this warning:

  net/bluetooth/af_bluetooth.c:60: warning: ‘bt_key_strings’ defined but not used
  net/bluetooth/af_bluetooth.c:71: warning: ‘bt_slock_key_strings’ defined but not used

this is a lockdep macro problem in the !LOCKDEP case.

We cannot convert it to an inline because the macro works on multiple types,
but we can mark the parameter used.

[ also clean up a misaligned tab in sock_lock_init_class_and_name() ]

[ also remove #ifdefs from around af_family_clock_key strings - which
  were certainly added to get rid of the ugly build warnings. ]

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: wrap sk-&gt;sk_backlog_rcv()</title>
<updated>2008-10-07T21:18:42Z</updated>
<author>
<name>Peter Zijlstra</name>
</author>
<published>2008-10-07T21:18:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c57943a1c96214ee68f3890bb6772841ffbfd606'/>
<id>urn:sha1:c57943a1c96214ee68f3890bb6772841ffbfd606</id>
<content type='text'>
Wrap calling sk-&gt;sk_backlog_rcv() in a function. This will allow extending the
generic sk_backlog_rcv behaviour.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Phonet: global definitions</title>
<updated>2008-09-23T02:51:15Z</updated>
<author>
<name>Remi Denis-Courmont</name>
</author>
<published>2008-09-23T02:51:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bce7b15426cac3000bf6a9cf59d9356ef0be2dec'/>
<id>urn:sha1:bce7b15426cac3000bf6a9cf59d9356ef0be2dec</id>
<content type='text'>
Signed-off-by: Remi Denis-Courmont &lt;remi.denis-courmont@nokia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ISDN sockets: add missing lockdep strings</title>
<updated>2008-09-18T23:44:31Z</updated>
<author>
<name>Rémi Denis-Courmont</name>
</author>
<published>2008-09-18T23:44:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=821c92f258bd9b01eb900992969803645b6ba9d6'/>
<id>urn:sha1:821c92f258bd9b01eb900992969803645b6ba9d6</id>
<content type='text'>
Signed-off-by: Rémi Denis-Courmont &lt;remi.denis-courmont@nokia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&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>
</feed>
