<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/ipv6/sit.c, branch linux-3.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-11-04T12:35:13Z</updated>
<entry>
<title>sit: amend "allow to use rtnl ops on fb tunnel"</title>
<updated>2013-11-04T12:35:13Z</updated>
<author>
<name>Willem de Bruijn</name>
</author>
<published>2013-10-22T14:59:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cef1e66ef92e7821e58e7dc32a2b764541a74ff4'/>
<id>urn:sha1:cef1e66ef92e7821e58e7dc32a2b764541a74ff4</id>
<content type='text'>
Amend backport to 3.11.y of

 [ Upstream commit 205983c43700ac3a81e7625273a3fa83cd2759b5 ]

The discussion thread in the upstream commit mentions that in
backports to stable-* branches, the line

  - unregister_netdevice_queue(sitn-&gt;fb_tunnel_dev, &amp;list);

must be omitted if that branch does not have commit 5e6700b3bf98
("sit: add support of x-netns"). This line has correctly been omitted
in the backport to 3.10, which indeed does not have that commit.

It was also removed in the backport to 3.11.y, which does have that
commit.

This causes the following steps to hit a BUG at net/core/dev.c:5039:

  `modprobe sit; rmmod sit`

The bug demonstrates that it causes a device to be unregistered twice.
The simple fix is to apply the one line in the upstream commit that
was dropped in the backport to 3.11 (3783100374653e2e7fbdf68c710f5).
This brings the logic in line with upstream linux, net and net-next
branches.

Signed-off-by: Willem de Bruijn &lt;willemb@google.com&gt;
Acked-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Reviewed-by: Veaceslav Falico &lt;vfalico@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>sit: allow to use rtnl ops on fb tunnel</title>
<updated>2013-10-14T01:14:27Z</updated>
<author>
<name>Nicolas Dichtel</name>
</author>
<published>2013-10-01T16:04:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3783100374653e2e7fbdf68c710f5f9562880326'/>
<id>urn:sha1:3783100374653e2e7fbdf68c710f5f9562880326</id>
<content type='text'>
[ Upstream commit 205983c43700ac3a81e7625273a3fa83cd2759b5 ]

rtnl ops where introduced by ba3e3f50a0e5 ("sit: advertise tunnel param via
rtnl"), but I forget to assign rtnl ops to fb tunnels.

Now that it is done, we must remove the explicit call to
unregister_netdevice_queue(), because  the fallback tunnel is added to the queue
in sit_destroy_tunnels() when checking rtnl_link_ops of all netdevices (this
is valid since commit 5e6700b3bf98 ("sit: add support of x-netns")).

Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>IPv6 NAT: Do not drop DNATed 6to4/6rd packets</title>
<updated>2013-10-14T01:14:26Z</updated>
<author>
<name>Catalin(ux) M. BOIE</name>
</author>
<published>2013-09-23T20:04:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e459c8c1de3e9098e7fb0b97d5cb6121bef48a8'/>
<id>urn:sha1:3e459c8c1de3e9098e7fb0b97d5cb6121bef48a8</id>
<content type='text'>
[ Upstream commit 7df37ff33dc122f7bd0614d707939fe84322d264 ]

When a router is doing DNAT for 6to4/6rd packets the latest
anti-spoofing commit 218774dc ("ipv6: add anti-spoofing checks for
6to4 and 6rd") will drop them because the IPv6 address embedded does
not match the IPv4 destination. This patch will allow them to pass by
testing if we have an address that matches on 6to4/6rd interface.  I
have been hit by this problem using Fedora and IPV6TO4_IPV4ADDR.
Also, log the dropped packets (with rate limit).

Signed-off-by: Catalin(ux) M. BOIE &lt;catab@embedromix.ro&gt;
Acked-by: Hannes Frederic Sowa &lt;hannes@stressinduktion.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ipv4 tunnels: fix an oops when using ipip/sit with IPsec</title>
<updated>2013-08-30T21:13:28Z</updated>
<author>
<name>Li Hongjun</name>
</author>
<published>2013-08-28T09:54:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=737e828bdbdaf2f9d7de07f20a0308ac46ce5178'/>
<id>urn:sha1:737e828bdbdaf2f9d7de07f20a0308ac46ce5178</id>
<content type='text'>
Since commit 3d7b46cd20e3 (ip_tunnel: push generic protocol handling to
ip_tunnel module.), an Oops is triggered when an xfrm policy is configured on
an IPv4 over IPv4 tunnel.

xfrm4_policy_check() calls __xfrm_policy_check2(), which uses skb_dst(skb). But
this field is NULL because iptunnel_pull_header() calls skb_dst_drop(skb).

Signed-off-by: Li Hongjun &lt;hongjun.li@6wind.com&gt;
Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ipv6: wire up skb-&gt;encapsulation</title>
<updated>2013-08-19T07:37:46Z</updated>
<author>
<name>Hannes Frederic Sowa</name>
</author>
<published>2013-08-18T11:46:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d483058c8c8b87a167155ca9ddd776dd730bc39'/>
<id>urn:sha1:3d483058c8c8b87a167155ca9ddd776dd730bc39</id>
<content type='text'>
When pushing a new header before current one call skb_reset_inner_headers
to record the position of the inner headers in the various ipv6 tunnel
protocols.

We later need this to correctly identify the addresses needed to send
back an error in the xfrm layer.

This change is safe, because skb-&gt;protocol is always checked before
dereferencing data from the inner protocol.

Cc: Steffen Klassert &lt;steffen.klassert@secunet.com&gt;
Cc: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Cc: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Acked-by: Eric Dumazet &lt;edumazet@google.com&gt;
Signed-off-by: Hannes Frederic Sowa &lt;hannes@stressinduktion.org&gt;
Signed-off-by: Steffen Klassert &lt;steffen.klassert@secunet.com&gt;
</content>
</entry>
<entry>
<title>sit: fix tunnel update via netlink</title>
<updated>2013-07-04T21:55:47Z</updated>
<author>
<name>Nicolas Dichtel</name>
</author>
<published>2013-07-03T15:00:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86bd68bfd75941d4cf3b874468791c3e73eef23d'/>
<id>urn:sha1:86bd68bfd75941d4cf3b874468791c3e73eef23d</id>
<content type='text'>
The device can stand in another netns, hence we need to do the lookup in netns
tunnel-&gt;net.

Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ipv6: only apply anti-spoofing checks to not-pointopoint tunnels</title>
<updated>2013-07-01T20:26:18Z</updated>
<author>
<name>Hannes Frederic Sowa</name>
</author>
<published>2013-06-27T20:46:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c29fb12e8fb8a8105ea048cb160fd79a85a52bb'/>
<id>urn:sha1:5c29fb12e8fb8a8105ea048cb160fd79a85a52bb</id>
<content type='text'>
Because of commit 218774dc341f219bfcf940304a081b121a0e8099 ("ipv6: add
anti-spoofing checks for 6to4 and 6rd") the sit driver dropped packets
for 2002::/16 destinations and sources even when configured to work as a
tunnel with fixed endpoint. We may only apply the 6rd/6to4 anti-spoofing
checks if the device is not in pointopoint mode.

This was an oversight from me in the above commit, sorry.  Thanks to
Roman Mamedov for reporting this!

Reported-by: Roman Mamedov &lt;rm@romanrm.ru&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Cc: YOSHIFUJI Hideaki &lt;yoshfuji@linux-ipv6.org&gt;
Signed-off-by: Hannes Frederic Sowa &lt;hannes@stressinduktion.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sit: add support of x-netns</title>
<updated>2013-06-28T05:30:47Z</updated>
<author>
<name>Nicolas Dichtel</name>
</author>
<published>2013-06-26T14:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5e6700b3bf98fe98d630bf9c939ad4c85ce95592'/>
<id>urn:sha1:5e6700b3bf98fe98d630bf9c939ad4c85ce95592</id>
<content type='text'>
This patch allows to switch the netns when packet is encapsulated or
decapsulated. In other word, the encapsulated packet is received in a netns,
where the lookup is done to find the tunnel. Once the tunnel is found, the
packet is decapsulated and injecting into the corresponding interface which
stands to another netns.

When one of the two netns is removed, the tunnel is destroyed.

Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sit: fix an oops when IFLA_IPTUN_PROTO is not set</title>
<updated>2013-06-20T04:18:17Z</updated>
<author>
<name>Nicolas Dichtel</name>
</author>
<published>2013-06-19T10:03:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2ff682a6f5c5ae2cb23b32bb4fd7a6fb059d4fc'/>
<id>urn:sha1:c2ff682a6f5c5ae2cb23b32bb4fd7a6fb059d4fc</id>
<content type='text'>
The use of this attribute has been added in 32b8a8e59c9c (sit: add IPv4 over
IPv4 support). It is optional, by default proto is IPPROTO_IPV6.

Signed-off-by: Nicolas Dichtel &lt;nicolas.dichtel@6wind.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ip_tunnel: push generic protocol handling to ip_tunnel module.</title>
<updated>2013-06-20T01:07:41Z</updated>
<author>
<name>Pravin B Shelar</name>
</author>
<published>2013-06-18T00:50:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d7b46cd20e300bd6989fb1f43d46f1b9645816e'/>
<id>urn:sha1:3d7b46cd20e300bd6989fb1f43d46f1b9645816e</id>
<content type='text'>
Process skb tunnel header before sending packet to protocol handler.
this allows code sharing between gre and ovs gre modules.

Signed-off-by: Pravin B Shelar &lt;pshelar@nicira.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
