<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/dccp/ipv6.c, branch linux-2.6.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2006-11-22T01:41:56Z</updated>
<entry>
<title>[IPV6]: Fix address/interface handling in UDP and DCCP, according to the scoping architecture.</title>
<updated>2006-11-22T01:41:56Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
</author>
<published>2006-11-22T01:41:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2776ff047229c3e7cee2454e2704dd6f98fa32f'/>
<id>urn:sha1:f2776ff047229c3e7cee2454e2704dd6f98fa32f</id>
<content type='text'>
TCP and RAW do not have this issue.  Closes Bug #7432.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Update documentation references.</title>
<updated>2006-10-24T23:17:51Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2006-10-24T23:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e64e94e477f8ed04e9295b11a5898d443c28a47'/>
<id>urn:sha1:0e64e94e477f8ed04e9295b11a5898d443c28a47</id>
<content type='text'>
Updates the references to spec documents throughout the code, taking into
account that

* the DCCP, CCID 2, and CCID 3 drafts all became RFCs in March this year

* RFC 1063 was obsoleted by RFC 1191

* draft-ietf-tcpimpl-pmtud-0x.txt was published as an Informational
  RFC, RFC 2923 on 2000-09-22.

All references verified.

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP] ipv6: Fix opt_skb leak.</title>
<updated>2006-10-22T02:55:21Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2006-10-21T02:44:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd169f15a67b47f23bd1704919c719a8e8409a73'/>
<id>urn:sha1:fd169f15a67b47f23bd1704919c719a8e8409a73</id>
<content type='text'>
Based upon a patch from Jesper Juhl.  Try to match the
TCP IPv6 code this was copied from as much as possible,
so that it's easy to see where to add the ipv6 pktoptions
support code.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[DCCP]: Fix Oops in DCCPv6</title>
<updated>2006-10-22T02:55:20Z</updated>
<author>
<name>Gerrit Renker</name>
</author>
<published>2006-10-11T15:26:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=82709531a800fcf8de71bb8c5d8e92462fb81f84'/>
<id>urn:sha1:82709531a800fcf8de71bb8c5d8e92462fb81f84</id>
<content type='text'>
I think I got the cause for the Oops observed in
http://www.mail-archive.com/dccp@vger.kernel.org/msg00578.html

The problem is always with applications listening on PF_INET6 sockets. Apart
from the mentioned oops, I observed another one one, triggered at irregular
intervals via timer interrupt:

    run_timer_softirq -&gt; dccp_keepalive_timer
                      -&gt; inet_csk_reqsk_queue_prune
                      -&gt; reqsk_free
                      -&gt; dccp_v6_reqsk_destructor

The latter function is the problem and is also the last function to be called
in said kernel panic.

In any case, there is a real problem with allocating the right request_sock
which is what this patch tackles.

It fixes the following problem:
 - application listens on PF_INET6
 - DCCPv4 packet comes in, is handed over to dccp_v4_do_rcv, from there
   to dccp_v4_conn_request

Now: socket is PF_INET6, packet is IPv4. The following code then furnishes the
connection with IPv6 - request_sock operations:

   req = reqsk_alloc(sk-&gt;sk_prot-&gt;rsk_prot);

The first problem is that all further incoming packets will get a Reset since
the connection can not be looked up.

The second problem is worse:
 --&gt; reqsk_alloc is called instead of inet6_reqsk_alloc
 --&gt; consequently inet6_rsk_offset is never set (dangling pointer)
 --&gt; the request_sock_ops are nevertheless still dccp6_request_ops
 --&gt; destructor is called via reqsk_free
 --&gt; dccp_v6_reqsk_destructor tries to free random memory location (inet6_rsk_offset not set)
 --&gt; panic

I have tested this for a while, DCCP sockets are now handled correctly in all
three scenarios (v4/v6 only/v4-mapped).

Commiter note: I've added the dccp_request_sock_ops forward declaration to keep
               the tree building and to reduce the size of the patch for 2.6.19,
               later I'll move the functions to the top of the affected source
               code to match what we have in the TCP counterpart, where this
               problem hasn't existed in the first place, dumb me not to have
               done the same thing on DCCP land 8)

Signed-off-by: Gerrit Renker &lt;gerrit@erg.abdn.ac.uk&gt;
Signed-off-by: Arnaldo Carvalho de Melo &lt;acme@mandriva.com&gt;
</content>
</entry>
<entry>
<title>[NET]: Use typesafe inet_twsk() inline function instead of cast.</title>
<updated>2006-10-12T06:59:58Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
</author>
<published>2006-10-11T02:41:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9469c7b4aa210ce94c6e7208cfadbd0aca0ebe08'/>
<id>urn:sha1:9469c7b4aa210ce94c6e7208cfadbd0aca0ebe08</id>
<content type='text'>
Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[NET]: Fix sk-&gt;sk_filter field access</title>
<updated>2006-09-22T22:18:47Z</updated>
<author>
<name>Dmitry Mishin</name>
</author>
<published>2006-08-31T22:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9'/>
<id>urn:sha1:fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9</id>
<content type='text'>
Function sk_filter() is called from tcp_v{4,6}_rcv() functions with arg
needlock = 0, while socket is not locked at that moment. In order to avoid
this and similar issues in the future, use rcu for sk-&gt;sk_filter field read
protection.

Signed-off-by: Dmitry Mishin &lt;dim@openvz.org&gt;
Signed-off-by: Alexey Kuznetsov &lt;kuznet@ms2.inr.ac.ru&gt;
Signed-off-by: Kirill Korotaev &lt;dev@openvz.org&gt;
</content>
</entry>
<entry>
<title>[IPV6]: Cache source address as well in ipv6_pinfo{}.</title>
<updated>2006-09-22T21:55:45Z</updated>
<author>
<name>YOSHIFUJI Hideaki</name>
</author>
<published>2006-08-30T00:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe'/>
<id>urn:sha1:8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe</id>
<content type='text'>
Based on MIPL2 kernel patch.

Signed-off-by: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: Ville Nuorvala &lt;vnuorval@tcs.hut.fi&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[MLSXFRM]: Auto-labeling of child sockets</title>
<updated>2006-09-22T21:53:29Z</updated>
<author>
<name>Venkat Yekkirala</name>
</author>
<published>2006-07-25T06:32:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4237c75c0a35535d7f9f2bfeeb4b4df1e068a0bf'/>
<id>urn:sha1:4237c75c0a35535d7f9f2bfeeb4b4df1e068a0bf</id>
<content type='text'>
This automatically labels the TCP, Unix stream, and dccp child sockets
as well as openreqs to be at the same MLS level as the peer. This will
result in the selection of appropriately labeled IPSec Security
Associations.

This also uses the sock's sid (as opposed to the isec sid) in SELinux
enforcement of secmark in rcv_skb and postroute_last hooks.

Signed-off-by: Venkat Yekkirala &lt;vyekkirala@TrustedCS.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[MLSXFRM]: Add flow labeling</title>
<updated>2006-09-22T21:53:27Z</updated>
<author>
<name>Venkat Yekkirala</name>
</author>
<published>2006-08-05T06:12:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=beb8d13bed80f8388f1a9a107d07ddd342e627e8'/>
<id>urn:sha1:beb8d13bed80f8388f1a9a107d07ddd342e627e8</id>
<content type='text'>
This labels the flows that could utilize IPSec xfrms at the points the
flows are defined so that IPSec policy and SAs at the right label can
be used.

The following protos are currently not handled, but they should
continue to be able to use single-labeled IPSec like they currently
do.

ipmr
ip_gre
ipip
igmp
sit
sctp
ip6_tunnel (IPv6 over IPv6 tunnel device)
decnet

Signed-off-by: Venkat Yekkirala &lt;vyekkirala@TrustedCS.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV6]: Audit all ip6_dst_lookup/ip6_dst_store calls</title>
<updated>2006-08-02T20:38:14Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2006-07-31T03:19:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=497c615abad7ee81994dd592194535aea2aad617'/>
<id>urn:sha1:497c615abad7ee81994dd592194535aea2aad617</id>
<content type='text'>
The current users of ip6_dst_lookup can be divided into two classes:

1) The caller holds no locks and is in user-context (UDP).
2) The caller does not want to lookup the dst cache at all.

The second class covers everyone except UDP because most people do
the cache lookup directly before calling ip6_dst_lookup.  This patch
adds ip6_sk_dst_lookup for the first class.

Similarly ip6_dst_store users can be divded into those that need to
take the socket dst lock and those that don't.  This patch adds
__ip6_dst_store for those (everyone except UDP/datagram) that don't
need an extra lock.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
