<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/net/pptp.c, branch v3.1.1</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>pptp: pptp_rcv_core() misses pskb_may_pull() call</title>
<updated>2011-10-19T07:50:43+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2011-10-17T17:59:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4ea2739ea89883ddf79980a8aa27d5e57093e464'/>
<id>4ea2739ea89883ddf79980a8aa27d5e57093e464</id>
<content type='text'>
e1000e uses paged frags, so any layer incorrectly pulling bytes from skb
can trigger a BUG in skb_pull()

[951.142737]  [&lt;ffffffff813d2f36&gt;] skb_pull+0x15/0x17
[951.142737]  [&lt;ffffffffa0286824&gt;] pptp_rcv_core+0x126/0x19a [pptp]
[951.152725]  [&lt;ffffffff813d17c4&gt;] sk_receive_skb+0x69/0x105
[951.163558]  [&lt;ffffffffa0286993&gt;] pptp_rcv+0xc8/0xdc [pptp]
[951.165092]  [&lt;ffffffffa02800a3&gt;] gre_rcv+0x62/0x75 [gre]
[951.165092]  [&lt;ffffffff81410784&gt;] ip_local_deliver_finish+0x150/0x1c1
[951.177599]  [&lt;ffffffff81410634&gt;] ? ip_local_deliver_finish+0x0/0x1c1
[951.177599]  [&lt;ffffffff81410846&gt;] NF_HOOK.clone.7+0x51/0x58
[951.177599]  [&lt;ffffffff81410996&gt;] ip_local_deliver+0x51/0x55
[951.177599]  [&lt;ffffffff814105b9&gt;] ip_rcv_finish+0x31a/0x33e
[951.177599]  [&lt;ffffffff8141029f&gt;] ? ip_rcv_finish+0x0/0x33e
[951.204898]  [&lt;ffffffff81410846&gt;] NF_HOOK.clone.7+0x51/0x58
[951.214651]  [&lt;ffffffff81410bb5&gt;] ip_rcv+0x21b/0x246

pptp_rcv_core() is a nice example of a function assuming everything it
needs is available in skb head.

Reported-by: Bradley Peterson &lt;despite@gmail.com&gt;
Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
e1000e uses paged frags, so any layer incorrectly pulling bytes from skb
can trigger a BUG in skb_pull()

[951.142737]  [&lt;ffffffff813d2f36&gt;] skb_pull+0x15/0x17
[951.142737]  [&lt;ffffffffa0286824&gt;] pptp_rcv_core+0x126/0x19a [pptp]
[951.152725]  [&lt;ffffffff813d17c4&gt;] sk_receive_skb+0x69/0x105
[951.163558]  [&lt;ffffffffa0286993&gt;] pptp_rcv+0xc8/0xdc [pptp]
[951.165092]  [&lt;ffffffffa02800a3&gt;] gre_rcv+0x62/0x75 [gre]
[951.165092]  [&lt;ffffffff81410784&gt;] ip_local_deliver_finish+0x150/0x1c1
[951.177599]  [&lt;ffffffff81410634&gt;] ? ip_local_deliver_finish+0x0/0x1c1
[951.177599]  [&lt;ffffffff81410846&gt;] NF_HOOK.clone.7+0x51/0x58
[951.177599]  [&lt;ffffffff81410996&gt;] ip_local_deliver+0x51/0x55
[951.177599]  [&lt;ffffffff814105b9&gt;] ip_rcv_finish+0x31a/0x33e
[951.177599]  [&lt;ffffffff8141029f&gt;] ? ip_rcv_finish+0x0/0x33e
[951.204898]  [&lt;ffffffff81410846&gt;] NF_HOOK.clone.7+0x51/0x58
[951.214651]  [&lt;ffffffff81410bb5&gt;] ip_rcv+0x21b/0x246

pptp_rcv_core() is a nice example of a function assuming everything it
needs is available in skb head.

Reported-by: Bradley Peterson &lt;despite@gmail.com&gt;
Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pptp: fix skb leak in pptp_xmit()</title>
<updated>2011-10-19T06:39:43+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2011-10-17T17:01:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7'/>
<id>8bae8bd6cb24eecad9fda3e125d36ab9c67d3fd7</id>
<content type='text'>
In case we cant transmit skb, we must free it

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
CC: Dmitry Kozlov &lt;xeb@mail.ru&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In case we cant transmit skb, we must free it

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
CC: Dmitry Kozlov &lt;xeb@mail.ru&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Remove unneeded version.h includes from drivers/net/</title>
<updated>2011-06-24T09:40:08+00:00</updated>
<author>
<name>Jesper Juhl</name>
<email>jj@chaosbits.net</email>
</author>
<published>2011-06-24T09:40:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=95cb3656c09fcf6577138337216c27744ebc91e2'/>
<id>95cb3656c09fcf6577138337216c27744ebc91e2</id>
<content type='text'>
It was pointed out by 'make versioncheck' that some includes of
linux/version.h are not needed in drivers/net/.
This patch removes them.

Signed-off-by: Jesper Juhl &lt;jj@chaosbits.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was pointed out by 'make versioncheck' that some includes of
linux/version.h are not needed in drivers/net/.
This patch removes them.

Signed-off-by: Jesper Juhl &lt;jj@chaosbits.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pptp: Use flowi4's daddr/saddr in pptp_xmit().</title>
<updated>2011-05-04T03:41:42+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-05-04T03:41:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=28c90da02ed7367fc5714adefce2a961e5bae306'/>
<id>28c90da02ed7367fc5714adefce2a961e5bae306</id>
<content type='text'>
Instead of rt-&gt;rt_{src,dst}

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of rt-&gt;rt_{src,dst}

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipv4: Make caller provide on-stack flow key to ip_route_output_ports().</title>
<updated>2011-05-04T03:25:42+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-05-04T03:25:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=31e4543db29fb85496a122b965d6482c8d1a2bfe'/>
<id>31e4543db29fb85496a122b965d6482c8d1a2bfe</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipv4: Create and use route lookup helpers.</title>
<updated>2011-03-12T23:08:42+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-03-12T05:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=78fbfd8a653ca972afe479517a40661bfff6d8c3'/>
<id>78fbfd8a653ca972afe479517a40661bfff6d8c3</id>
<content type='text'>
The idea here is this minimizes the number of places one has to edit
in order to make changes to how flows are defined and used.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The idea here is this minimizes the number of places one has to edit
in order to make changes to how flows are defined and used.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipv4: Make output route lookup return rtable directly.</title>
<updated>2011-03-02T22:31:35+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-03-02T22:31:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b23dd4fe42b455af5c6e20966b7d6959fa8352ea'/>
<id>b23dd4fe42b455af5c6e20966b7d6959fa8352ea</id>
<content type='text'>
Instead of on the stack.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of on the stack.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ipv4: Don't pre-seed hoplimit metric.</title>
<updated>2010-12-13T06:08:17+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2010-12-13T05:55:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=323e126f0c5995f779d7df7fd035f6e8fed8764d'/>
<id>323e126f0c5995f779d7df7fd035f6e8fed8764d</id>
<content type='text'>
Always go through a new ip4_dst_hoplimit() helper, just like ipv6.

This allowed several simplifications:

1) The interim dst_metric_hoplimit() can go as it's no longer
   userd.

2) The sysctl_ip_default_ttl entry no longer needs to use
   ipv4_doint_and_flush, since the sysctl is not cached in
   routing cache metrics any longer.

3) ipv4_doint_and_flush no longer needs to be exported and
   therefore can be marked static.

When ipv4_doint_and_flush_strategy was removed some time ago,
the external declaration in ip.h was mistakenly left around
so kill that off too.

We have to move the sysctl_ip_default_ttl declaration into
ipv4's route cache definition header net/route.h, because
currently net/ip.h (where the declaration lives now) has
a back dependency on net/route.h

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always go through a new ip4_dst_hoplimit() helper, just like ipv6.

This allowed several simplifications:

1) The interim dst_metric_hoplimit() can go as it's no longer
   userd.

2) The sysctl_ip_default_ttl entry no longer needs to use
   ipv4_doint_and_flush, since the sysctl is not cached in
   routing cache metrics any longer.

3) ipv4_doint_and_flush no longer needs to be exported and
   therefore can be marked static.

When ipv4_doint_and_flush_strategy was removed some time ago,
the external declaration in ip.h was mistakenly left around
so kill that off too.

We have to move the sysctl_ip_default_ttl declaration into
ipv4's route cache definition header net/route.h, because
currently net/ip.h (where the declaration lives now) has
a back dependency on net/route.h

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Abstract RTAX_HOPLIMIT metric accesses behind helper.</title>
<updated>2010-12-13T05:35:57+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2010-12-13T05:35:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5170ae824ddf1988a63fb12cbedcff817634c444'/>
<id>5170ae824ddf1988a63fb12cbedcff817634c444</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/net: use vzalloc()</title>
<updated>2010-11-28T06:53:38+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-11-22T00:15:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=89bf67f1f080c947c92f8773482d9e57767ca292'/>
<id>89bf67f1f080c947c92f8773482d9e57767ca292</id>
<content type='text'>
Use vzalloc() and vzalloc_node() in net drivers

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Acked-by: Jon Mason &lt;jon.mason@exar.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use vzalloc() and vzalloc_node() in net drivers

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Acked-by: Jon Mason &lt;jon.mason@exar.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
