<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/sched, branch v2.6.25-rc1</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>[PKT_SCHED] ematch: Fix build warning.</title>
<updated>2008-02-10T11:48:15+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-02-10T11:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=30ddb159ff3c632fdad3c0abc2e7d586a59bc5d1'/>
<id>30ddb159ff3c632fdad3c0abc2e7d586a59bc5d1</id>
<content type='text'>
Commit 954415e33ed6cfa932c13e8c2460bd05e50723b5 ("[PKT_SCHED] ematch:
tcf_em_destroy robustness") removed a cast on em-&gt;data when
passing it to kfree(), but em-&gt;data is an integer type that can
hold pointers as well as other values so the cast is necessary.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 954415e33ed6cfa932c13e8c2460bd05e50723b5 ("[PKT_SCHED] ematch:
tcf_em_destroy robustness") removed a cast on em-&gt;data when
passing it to kfree(), but em-&gt;data is an integer type that can
hold pointers as well as other values so the cast is necessary.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET_SCHED] sch_htb: htb_requeue fix</title>
<updated>2008-02-10T07:44:00+00:00</updated>
<author>
<name>Jarek Poplawski</name>
<email>jarkao2@gmail.com</email>
</author>
<published>2008-02-10T07:44:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=21347456abfbf5bc7fcace7327476736bbb28abe'/>
<id>21347456abfbf5bc7fcace7327476736bbb28abe</id>
<content type='text'>
htb_requeue() enqueues skbs for which htb_classify() returns NULL.
This is wrong because such skbs could be handled by NET_CLS_ACT code,
and the decision could be different than earlier in htb_enqueue().
So htb_requeue() is changed to work and look more like htb_enqueue().

Signed-off-by: Jarek Poplawski &lt;jarkao2@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>
htb_requeue() enqueues skbs for which htb_classify() returns NULL.
This is wrong because such skbs could be handled by NET_CLS_ACT code,
and the decision could be different than earlier in htb_enqueue().
So htb_requeue() is changed to work and look more like htb_enqueue().

Signed-off-by: Jarek Poplawski &lt;jarkao2@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PKT_SCHED] ematch: tcf_em_destroy robustness</title>
<updated>2008-02-10T07:26:53+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2008-02-10T07:26:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=954415e33ed6cfa932c13e8c2460bd05e50723b5'/>
<id>954415e33ed6cfa932c13e8c2460bd05e50723b5</id>
<content type='text'>
Make the code in tcf_em_tree_destroy more robust and cleaner:
 * Don't need to cast pointer to kfree() or avoid passing NULL.
 * After freeing the tree, clear the pointer to avoid possible problems
from repeated free.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.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>
Make the code in tcf_em_tree_destroy more robust and cleaner:
 * Don't need to cast pointer to kfree() or avoid passing NULL.
 * After freeing the tree, clear the pointer to avoid possible problems
from repeated free.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PKT_SCHED]: deinline functions in meta match</title>
<updated>2008-02-10T07:26:17+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2008-02-10T07:26:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ed7af3b3501c8c4e3667c89c2c43347bf29ae237'/>
<id>ed7af3b3501c8c4e3667c89c2c43347bf29ae237</id>
<content type='text'>
A couple of functions in meta match don't need to be inline.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.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>
A couple of functions in meta match don't need to be inline.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PKT_SCHED] ematch: oops from uninitialized variable (resend)</title>
<updated>2008-02-09T11:47:19+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2008-02-09T11:47:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=268bcca1e7b0d244afd07ea89cda672e61b0fc4a'/>
<id>268bcca1e7b0d244afd07ea89cda672e61b0fc4a</id>
<content type='text'>
Setting up a meta match causes a kernel OOPS because of uninitialized
elements in tree.

[   37.322381] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[   37.322381] IP: [&lt;ffffffff883fc717&gt;] :em_meta:em_meta_destroy+0x17/0x80

[   37.322381] Call Trace:
[   37.322381]  [&lt;ffffffff803ec83d&gt;] tcf_em_tree_destroy+0x2d/0xa0
[   37.322381]  [&lt;ffffffff803ecc8c&gt;] tcf_em_tree_validate+0x2dc/0x4a0
[   37.322381]  [&lt;ffffffff803f06d2&gt;] nla_parse+0x92/0xe0
[   37.322381]  [&lt;ffffffff883f9672&gt;] :cls_basic:basic_change+0x202/0x3c0
[   37.322381]  [&lt;ffffffff802a3917&gt;] kmem_cache_alloc+0x67/0xa0
[   37.322381]  [&lt;ffffffff803ea221&gt;] tc_ctl_tfilter+0x3b1/0x580
[   37.322381]  [&lt;ffffffff803dffd0&gt;] rtnetlink_rcv_msg+0x0/0x260
[   37.322381]  [&lt;ffffffff803ee944&gt;] netlink_rcv_skb+0x74/0xa0
[   37.322381]  [&lt;ffffffff803dffc8&gt;] rtnetlink_rcv+0x18/0x20
[   37.322381]  [&lt;ffffffff803ee6c3&gt;] netlink_unicast+0x263/0x290
[   37.322381]  [&lt;ffffffff803cf276&gt;] __alloc_skb+0x96/0x160
[   37.322381]  [&lt;ffffffff803ef014&gt;] netlink_sendmsg+0x274/0x340
[   37.322381]  [&lt;ffffffff803c7c3b&gt;] sock_sendmsg+0x12b/0x140
[   37.322381]  [&lt;ffffffff8024de90&gt;] autoremove_wake_function+0x0/0x30
[   37.322381]  [&lt;ffffffff8024de90&gt;] autoremove_wake_function+0x0/0x30
[   37.322381]  [&lt;ffffffff803c7c3b&gt;] sock_sendmsg+0x12b/0x140
[   37.322381]  [&lt;ffffffff80288611&gt;] zone_statistics+0xb1/0xc0
[   37.322381]  [&lt;ffffffff803c7e5e&gt;] sys_sendmsg+0x20e/0x360
[   37.322381]  [&lt;ffffffff803c7411&gt;] sockfd_lookup_light+0x41/0x80
[   37.322381]  [&lt;ffffffff8028d04b&gt;] handle_mm_fault+0x3eb/0x7f0
[   37.322381]  [&lt;ffffffff8020c2fb&gt;] system_call_after_swapgs+0x7b/0x80

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.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>
Setting up a meta match causes a kernel OOPS because of uninitialized
elements in tree.

[   37.322381] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[   37.322381] IP: [&lt;ffffffff883fc717&gt;] :em_meta:em_meta_destroy+0x17/0x80

[   37.322381] Call Trace:
[   37.322381]  [&lt;ffffffff803ec83d&gt;] tcf_em_tree_destroy+0x2d/0xa0
[   37.322381]  [&lt;ffffffff803ecc8c&gt;] tcf_em_tree_validate+0x2dc/0x4a0
[   37.322381]  [&lt;ffffffff803f06d2&gt;] nla_parse+0x92/0xe0
[   37.322381]  [&lt;ffffffff883f9672&gt;] :cls_basic:basic_change+0x202/0x3c0
[   37.322381]  [&lt;ffffffff802a3917&gt;] kmem_cache_alloc+0x67/0xa0
[   37.322381]  [&lt;ffffffff803ea221&gt;] tc_ctl_tfilter+0x3b1/0x580
[   37.322381]  [&lt;ffffffff803dffd0&gt;] rtnetlink_rcv_msg+0x0/0x260
[   37.322381]  [&lt;ffffffff803ee944&gt;] netlink_rcv_skb+0x74/0xa0
[   37.322381]  [&lt;ffffffff803dffc8&gt;] rtnetlink_rcv+0x18/0x20
[   37.322381]  [&lt;ffffffff803ee6c3&gt;] netlink_unicast+0x263/0x290
[   37.322381]  [&lt;ffffffff803cf276&gt;] __alloc_skb+0x96/0x160
[   37.322381]  [&lt;ffffffff803ef014&gt;] netlink_sendmsg+0x274/0x340
[   37.322381]  [&lt;ffffffff803c7c3b&gt;] sock_sendmsg+0x12b/0x140
[   37.322381]  [&lt;ffffffff8024de90&gt;] autoremove_wake_function+0x0/0x30
[   37.322381]  [&lt;ffffffff8024de90&gt;] autoremove_wake_function+0x0/0x30
[   37.322381]  [&lt;ffffffff803c7c3b&gt;] sock_sendmsg+0x12b/0x140
[   37.322381]  [&lt;ffffffff80288611&gt;] zone_statistics+0xb1/0xc0
[   37.322381]  [&lt;ffffffff803c7e5e&gt;] sys_sendmsg+0x20e/0x360
[   37.322381]  [&lt;ffffffff803c7411&gt;] sockfd_lookup_light+0x41/0x80
[   37.322381]  [&lt;ffffffff8028d04b&gt;] handle_mm_fault+0x3eb/0x7f0
[   37.322381]  [&lt;ffffffff8020c2fb&gt;] system_call_after_swapgs+0x7b/0x80

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[TC]: oops in em_meta</title>
<updated>2008-02-08T02:13:00+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2008-02-08T02:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=04f217aca4d803fe72c2c54fe460d68f5233ce52'/>
<id>04f217aca4d803fe72c2c54fe460d68f5233ce52</id>
<content type='text'>
If userspace passes a unknown match index into em_meta, then
em_meta_change will return an error and the data for the match will
not be set. This then causes an null pointer dereference when the
cleanup is done in the error path via tcf_em_tree_destroy. Since the
tree structure comes kzalloc, it is initialized to NULL.

Discovered when testing a new version of tc command against an
accidental older kernel.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.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>
If userspace passes a unknown match index into em_meta, then
em_meta_change will return an error and the data for the match will
not be set. This then causes an null pointer dereference when the
cleanup is done in the error path via tcf_em_tree_destroy. Since the
tree structure comes kzalloc, it is initialized to NULL.

Discovered when testing a new version of tc command against an
accidental older kernel.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET_SCHED]: cls_flow: support classification based on VLAN tag</title>
<updated>2008-02-06T00:21:04+00:00</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-02-06T00:21:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9ec138101f8a79007bc571174976a7814ed616f8'/>
<id>9ec138101f8a79007bc571174976a7814ed616f8</id>
<content type='text'>
Signed-off-by: Patrick McHardy &lt;kaber@trash.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>
Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET_SCHED]: cls_flow: fix key mask validity check</title>
<updated>2008-02-06T00:19:59+00:00</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-02-06T00:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4f25049106e0507ff21a9e1fc0645d849e19faf0'/>
<id>4f25049106e0507ff21a9e1fc0645d849e19faf0</id>
<content type='text'>
Since we're using fls(), we need to check whether the value is
non-zero first.

Signed-off-by: Patrick McHardy &lt;kaber@trash.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>
Since we're using fls(), we need to check whether the value is
non-zero first.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET_SCHED]: em_meta: fix compile warning</title>
<updated>2008-02-06T00:19:33+00:00</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2008-02-06T00:19:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0ea9d70df8f8be741ee0525490370de06163d2de'/>
<id>0ea9d70df8f8be741ee0525490370de06163d2de</id>
<content type='text'>
net/sched/em_meta.c: In function 'meta_int_vlan_tag':
net/sched/em_meta.c:179: warning: 'tag' may be used uninitialized in this function

Signed-off-by: Patrick McHardy &lt;kaber@trash.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>
net/sched/em_meta.c: In function 'meta_int_vlan_tag':
net/sched/em_meta.c:179: warning: 'tag' may be used uninitialized in this function

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PKT_SCHED]: vlan tag match</title>
<updated>2008-02-05T11:20:13+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2008-02-05T11:20:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3113e88c3cb3c0a22920b621f8e4d1f2ccc07f1e'/>
<id>3113e88c3cb3c0a22920b621f8e4d1f2ccc07f1e</id>
<content type='text'>
Provide a way to use tc filters on vlan tag even if tag is buried in
skb due to hardware acceleration.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.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>
Provide a way to use tc filters on vlan tag even if tag is buried in
skb due to hardware acceleration.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
