<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net, branch v2.6.18.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net?h=v2.6.18.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/net?h=v2.6.18.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-11-04T01:33:50Z</updated>
<entry>
<title>[PATCH] IPV6: fix lockup via /proc/net/ip6_flowlabel [CVE-2006-5619]</title>
<updated>2006-11-04T01:33:50Z</updated>
<author>
<name>James Morris</name>
<email>jmorris@namei.org</email>
</author>
<published>2006-10-30T23:11:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d0239f35c7ae63dbe715b1cc66e4860c2cb33154'/>
<id>urn:sha1:d0239f35c7ae63dbe715b1cc66e4860c2cb33154</id>
<content type='text'>
There's a bug in the seqfile handling for /proc/net/ip6_flowlabel, where,
after finding a flowlabel, the code will loop forever not finding any
further flowlabels, first traversing the rest of the hash bucket then just
looping.

This patch fixes the problem by breaking after the hash bucket has been
traversed.

Note that this bug can cause lockups and oopses, and is trivially invoked
by an unpriveleged user.

Signed-off-by: James Morris &lt;jmorris@namei.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] tcp: cubic scaling error</title>
<updated>2006-11-04T01:33:50Z</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@osdl.org</email>
</author>
<published>2006-10-30T22:47:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f3fcd7f6351e8a95e6f1c2b9fda79b6dbecfc6ca'/>
<id>urn:sha1:f3fcd7f6351e8a95e6f1c2b9fda79b6dbecfc6ca</id>
<content type='text'>
Doug Leith observed a discrepancy between the version of CUBIC described
in the papers and the version in 2.6.18. A math error related to scaling
causes Cubic to grow too slowly.

Patch is from "Sangtae Ha" &lt;sha2@ncsu.edu&gt;. I validated that
it does fix the problems.

See the following to show behavior over 500ms 100 Mbit link.

Sender (2.6.19-rc3) ---  Bridge (2.6.18-rt7) ------- Receiver (2.6.19-rc3)
                    1G      [netem]           100M

	http://developer.osdl.org/shemminger/tcp/2.6.19-rc3/cubic-orig.png
	http://developer.osdl.org/shemminger/tcp/2.6.19-rc3/cubic-fix.png

Signed-off-by: Stephen Hemminger &lt;shemminger@osdl.org&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] SCTP: Always linearise packet on input</title>
<updated>2006-11-04T01:33:48Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-10-30T07:48:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cea23cd94f286008d382ccee265ca417c9ce9a58'/>
<id>urn:sha1:cea23cd94f286008d382ccee265ca417c9ce9a58</id>
<content type='text'>
I was looking at a RHEL5 bug report involving Xen and SCTP
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=212550).
It turns out that SCTP wasn't written to handle skb fragments at
all.  The absence of any calls to skb_may_pull is testament to
that.

It just so happens that Xen creates fragmented packets more often
than other scenarios (header &amp; data split when going from domU to
dom0).  That's what caused this bug to show up.

Until someone has the time sits down and audits the entire net/sctp
directory, here is a conservative and safe solution that simply
linearises all packets on input.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] NET: Fix skb_segment() handling of fully linear SKBs</title>
<updated>2006-11-04T01:33:48Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-10-30T00:11:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5565a6be17231fdcbaa65e2ef41e4f67bf709a81'/>
<id>urn:sha1:5565a6be17231fdcbaa65e2ef41e4f67bf709a81</id>
<content type='text'>
[NET]: Fix segmentation of linear packets

skb_segment fails to segment linear packets correctly because it
tries to write all linear parts of the original skb into each
segment.  This will always panic as each segment only contains
enough space for one MSS.

This was not detected earlier because linear packets should be
rare for GSO.  In fact it still remains to be seen what exactly
created the linear packets that triggered this bug.  Basically
the only time this should happen is if someone enables GSO
emulation on an interface that does not support SG.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] knfsd: Fix race that can disable NFS server.</title>
<updated>2006-11-04T01:33:47Z</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2006-10-20T01:52:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=02bb8f3f912d8a2048ed7502a733f64c6bf8fcfe'/>
<id>urn:sha1:02bb8f3f912d8a2048ed7502a733f64c6bf8fcfe</id>
<content type='text'>
This is a long standing bug that seems to have only recently become
apparent, presumably due to increasing use of NFS over TCP - many
distros seem to be making it the default.

The SK_CONN bit gets set when a listening socket may be ready
for an accept, just as SK_DATA is set when data may be available.

It is entirely possible for svc_tcp_accept to be called with neither
of these set.  It doesn't happen often but there is a small race in
svc_sock_enqueue as SK_CONN and SK_DATA are tested outside the
spin_lock.  They could be cleared immediately after the test and
before the lock is gained.

This normally shouldn't be a problem.  The sockets are non-blocking so
trying to read() or accept() when ther is nothing to do is not a problem.

However: svc_tcp_recvfrom makes the decision "Should I accept() or
should I read()" based on whether SK_CONN is set or not.  This usually
works but is not safe.  The decision should be based on whether it is
a TCP_LISTEN socket or a TCP_CONNECTED socket.

Signed-off-by: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Bluetooth: Check if DLC is still attached to the TTY</title>
<updated>2006-11-04T01:33:46Z</updated>
<author>
<name>Marcel Holtmann</name>
<email>marcel@holtmann.org</email>
</author>
<published>2006-10-16T15:59:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b754f1bb053d9ec2d9b9fb64126543e9b8cbd3dd'/>
<id>urn:sha1:b754f1bb053d9ec2d9b9fb64126543e9b8cbd3dd</id>
<content type='text'>
[Bluetooth] Check if DLC is still attached to the TTY

If the DLC device is no longer attached to the TTY device, then it
makes no sense to go through with changing the termios settings.

Signed-off-by: Marcel Holtmann &lt;marcel@holtmann.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix sfuzz hanging on 2.6.18</title>
<updated>2006-11-04T01:33:43Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2006-10-12T08:49:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5bb10961933cd8efb97e67d5cc005af9c025ee8d'/>
<id>urn:sha1:5bb10961933cd8efb97e67d5cc005af9c025ee8d</id>
<content type='text'>
Dave Jones wrote:
&gt; sfuzz         D 724EF62A  2828 28717  28691                     (NOTLB)
&gt;        cd69fe98 00000082 0000012d 724ef62a 0001971a 00000010 00000007 df6d22b0
&gt;        dfd81080 725bbc5e 0001971a 000cc634 00000001 df6d23bc c140e260 00000202
&gt;        de1d5ba0 cd69fea0 de1d5ba0 00000000 00000000 de1d5b60 de1d5b8c de1d5ba0
&gt; Call Trace:
&gt;  [&lt;c05b1708&gt;] lock_sock+0x75/0xa6
&gt;  [&lt;e0b0b604&gt;] dn_getname+0x18/0x5f [decnet]
&gt;  [&lt;c05b083b&gt;] sys_getsockname+0x5c/0xb0
&gt;  [&lt;c05b0b46&gt;] sys_socketcall+0xef/0x261
&gt;  [&lt;c0403f97&gt;] syscall_call+0x7/0xb
&gt; DWARF2 unwinder stuck at syscall_call+0x7/0xb
&gt;
&gt; I wonder if the plethora of lockdep related changes inadvertantly broke something?

Looks like unbalanced locking.

Acked-by: Steven Whitehouse &lt;swhiteho@redhat.com&gt;
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>NETFILTER: NAT: fix NOTRACK checksum handling</title>
<updated>2006-10-13T20:23:28Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2006-10-11T08:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a4fce7747b167aa5e9aa43c4f816744d8a97e021'/>
<id>urn:sha1:a4fce7747b167aa5e9aa43c4f816744d8a97e021</id>
<content type='text'>
The whole idea with the NOTRACK netfilter target is that
you can force the netfilter code to avoid connection
tracking, and all costs assosciated with it, by making
traffic match a NOTRACK rule.

But this is totally broken by the fact that we do a checksum
calculation over the packet before we do the NOTRACK bypass
check, which is very expensive.  People setup NOTRACK rules
explicitly to avoid all of these kinds of costs.

This patch from Patrick, already in Linus's tree, fixes the
bug.

Move the check for ip_conntrack_untracked before the call to
skb_checksum_help to fix NOTRACK excemptions from NAT. Pre-2.6.19
NAT code breaks TSO by invalidating hardware checksums for every
packet, even if explicitly excluded from NAT through NOTRACK.

2.6.19 includes a fix that makes NAT and TSO live in harmony,
but the performance degradation caused by this deserves making
at least the workaround work properly in -stable.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&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>TCP: Fix and simplify microsecond rtt sampling</title>
<updated>2006-10-13T20:23:27Z</updated>
<author>
<name>David Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2006-09-28T21:50:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=76232eb21c90f18153a66e69f612b47468b145a1'/>
<id>urn:sha1:76232eb21c90f18153a66e69f612b47468b145a1</id>
<content type='text'>
This changes the microsecond RTT sampling so that samples are taken in
the same way that RTT samples are taken for the RTO calculator: on the
last segment acknowledged, and only when the segment hasn't been
retransmitted.

Signed-off-by: John Heffner &lt;jheffner@psc.edu&gt;
Acked-by: Stephen Hemminger &lt;shemminger@osdl.org&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>IPV6: Disable SG for GSO unless we have checksum</title>
<updated>2006-10-13T20:23:27Z</updated>
<author>
<name>David Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2006-09-28T02:04:35Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=92a86ee1f6027881b77b75d48a09e3a946a93d13'/>
<id>urn:sha1:92a86ee1f6027881b77b75d48a09e3a946a93d13</id>
<content type='text'>
Because the system won't turn off the SG flag for us we
need to do this manually on the IPv6 path.  Otherwise we
will throw IPv6 packets with bad checksums at the hardware.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&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>
</feed>
