<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/core, branch v2.6.34</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>rtnetlink: make SR-IOV VF interface symmetric</title>
<updated>2010-05-16T08:05:45+00:00</updated>
<author>
<name>Chris Wright</name>
<email>chrisw@sous-sol.org</email>
</author>
<published>2010-05-16T08:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c02db8c6290bb992442fec1407643c94cc414375'/>
<id>c02db8c6290bb992442fec1407643c94cc414375</id>
<content type='text'>
Now we have a set of nested attributes:

  IFLA_VFINFO_LIST (NESTED)
    IFLA_VF_INFO (NESTED)
      IFLA_VF_MAC
      IFLA_VF_VLAN
      IFLA_VF_TX_RATE

This allows a single set to operate on multiple attributes if desired.
Among other things, it means a dump can be replayed to set state.

The current interface has yet to be released, so this seems like
something to consider for 2.6.34.

Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&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>
Now we have a set of nested attributes:

  IFLA_VFINFO_LIST (NESTED)
    IFLA_VF_INFO (NESTED)
      IFLA_VF_MAC
      IFLA_VF_VLAN
      IFLA_VF_TX_RATE

This allows a single set to operate on multiple attributes if desired.
Among other things, it means a dump can be replayed to set state.

The current interface has yet to be released, so this seems like
something to consider for 2.6.34.

Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>veth: Dont kfree_skb() after dev_forward_skb()</title>
<updated>2010-05-06T07:53:53+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-05-06T07:53:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6ec82562ffc6f297d0de36d65776cff8e5704867'/>
<id>6ec82562ffc6f297d0de36d65776cff8e5704867</id>
<content type='text'>
In case of congestion, netif_rx() frees the skb, so we must assume
dev_forward_skb() also consume skb.

Bug introduced by commit 445409602c092
(veth: move loopback logic to common location)

We must change dev_forward_skb() to always consume skb, and veth to not
double free it.

Bug report : http://marc.info/?l=linux-netdev&amp;m=127310770900442&amp;w=3

Reported-by: Martín Ferrari &lt;martin.ferrari@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>
In case of congestion, netif_rx() frees the skb, so we must assume
dev_forward_skb() also consume skb.

Bug introduced by commit 445409602c092
(veth: move loopback logic to common location)

We must change dev_forward_skb() to always consume skb, and veth to not
double free it.

Bug report : http://marc.info/?l=linux-netdev&amp;m=127310770900442&amp;w=3

Reported-by: Martín Ferrari &lt;martin.ferrari@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>rtnetlink: potential ERR_PTR dereference</title>
<updated>2010-04-22T22:57:26+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2010-04-21T23:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=80032cffb95edff4fc216b1cb21682257be326b7'/>
<id>80032cffb95edff4fc216b1cb21682257be326b7</id>
<content type='text'>
In the original code, if rtnl_create_link() returned an ERR_PTR then that
would get passed to rtnl_configure_link() which dereferences it.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-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>
In the original code, if rtnl_create_link() returned an ERR_PTR then that
would get passed to rtnl_configure_link() which dereferences it.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-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: Fix an RCU warning in dev_pick_tx()</title>
<updated>2010-04-21T08:09:44+00:00</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2010-04-20T00:25:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=05d17608a69b3ae653ea5c9857283bef3439c733'/>
<id>05d17608a69b3ae653ea5c9857283bef3439c733</id>
<content type='text'>
Fix the following RCU warning in dev_pick_tx():

===================================================
[ INFO: suspicious rcu_dereference_check() usage. ]
---------------------------------------------------
net/core/dev.c:1993 invoked rcu_dereference_check() without protection!

other info that might help us debug this:

rcu_scheduler_active = 1, debug_locks = 0
2 locks held by swapper/0:
 #0:  (&amp;idev-&gt;mc_ifc_timer){+.-...}, at: [&lt;ffffffff81039e65&gt;] run_timer_softirq+0x17b/0x278
 #1:  (rcu_read_lock_bh){.+....}, at: [&lt;ffffffff812ea3eb&gt;] dev_queue_xmit+0x14e/0x4dc

stack backtrace:
Pid: 0, comm: swapper Not tainted 2.6.34-rc5-cachefs #4
Call Trace:
 &lt;IRQ&gt;  [&lt;ffffffff810516c4&gt;] lockdep_rcu_dereference+0xaa/0xb2
 [&lt;ffffffff812ea4f6&gt;] dev_queue_xmit+0x259/0x4dc
 [&lt;ffffffff812ea3eb&gt;] ? dev_queue_xmit+0x14e/0x4dc
 [&lt;ffffffff81052324&gt;] ? trace_hardirqs_on+0xd/0xf
 [&lt;ffffffff81035362&gt;] ? local_bh_enable_ip+0xbc/0xc1
 [&lt;ffffffff812f0954&gt;] neigh_resolve_output+0x24b/0x27c
 [&lt;ffffffff8134f673&gt;] ip6_output_finish+0x7c/0xb4
 [&lt;ffffffff81350c34&gt;] ip6_output2+0x256/0x261
 [&lt;ffffffff81052324&gt;] ? trace_hardirqs_on+0xd/0xf
 [&lt;ffffffff813517fb&gt;] ip6_output+0xbbc/0xbcb
 [&lt;ffffffff8135bc5d&gt;] ? fib6_force_start_gc+0x2b/0x2d
 [&lt;ffffffff81368acb&gt;] mld_sendpack+0x273/0x39d
 [&lt;ffffffff81368858&gt;] ? mld_sendpack+0x0/0x39d
 [&lt;ffffffff81052099&gt;] ? mark_held_locks+0x52/0x70
 [&lt;ffffffff813692fc&gt;] mld_ifc_timer_expire+0x24f/0x288
 [&lt;ffffffff81039ed6&gt;] run_timer_softirq+0x1ec/0x278
 [&lt;ffffffff81039e65&gt;] ? run_timer_softirq+0x17b/0x278
 [&lt;ffffffff813690ad&gt;] ? mld_ifc_timer_expire+0x0/0x288
 [&lt;ffffffff81035531&gt;] ? __do_softirq+0x69/0x140
 [&lt;ffffffff8103556a&gt;] __do_softirq+0xa2/0x140
 [&lt;ffffffff81002e0c&gt;] call_softirq+0x1c/0x28
 [&lt;ffffffff81004b54&gt;] do_softirq+0x38/0x80
 [&lt;ffffffff81034f06&gt;] irq_exit+0x45/0x47
 [&lt;ffffffff810177c3&gt;] smp_apic_timer_interrupt+0x88/0x96
 [&lt;ffffffff810028d3&gt;] apic_timer_interrupt+0x13/0x20
 &lt;EOI&gt;  [&lt;ffffffff810488dd&gt;] ? __atomic_notifier_call_chain+0x0/0x86
 [&lt;ffffffff810096bf&gt;] ? mwait_idle+0x6e/0x78
 [&lt;ffffffff810096b6&gt;] ? mwait_idle+0x65/0x78
 [&lt;ffffffff810011cb&gt;] cpu_idle+0x4d/0x83
 [&lt;ffffffff81380b05&gt;] rest_init+0xb9/0xc0
 [&lt;ffffffff81380a4c&gt;] ? rest_init+0x0/0xc0
 [&lt;ffffffff8168dcf0&gt;] start_kernel+0x392/0x39d
 [&lt;ffffffff8168d2a3&gt;] x86_64_start_reservations+0xb3/0xb7
 [&lt;ffffffff8168d38b&gt;] x86_64_start_kernel+0xe4/0xeb

An rcu_dereference() should be an rcu_dereference_bh().

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-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>
Fix the following RCU warning in dev_pick_tx():

===================================================
[ INFO: suspicious rcu_dereference_check() usage. ]
---------------------------------------------------
net/core/dev.c:1993 invoked rcu_dereference_check() without protection!

other info that might help us debug this:

rcu_scheduler_active = 1, debug_locks = 0
2 locks held by swapper/0:
 #0:  (&amp;idev-&gt;mc_ifc_timer){+.-...}, at: [&lt;ffffffff81039e65&gt;] run_timer_softirq+0x17b/0x278
 #1:  (rcu_read_lock_bh){.+....}, at: [&lt;ffffffff812ea3eb&gt;] dev_queue_xmit+0x14e/0x4dc

stack backtrace:
Pid: 0, comm: swapper Not tainted 2.6.34-rc5-cachefs #4
Call Trace:
 &lt;IRQ&gt;  [&lt;ffffffff810516c4&gt;] lockdep_rcu_dereference+0xaa/0xb2
 [&lt;ffffffff812ea4f6&gt;] dev_queue_xmit+0x259/0x4dc
 [&lt;ffffffff812ea3eb&gt;] ? dev_queue_xmit+0x14e/0x4dc
 [&lt;ffffffff81052324&gt;] ? trace_hardirqs_on+0xd/0xf
 [&lt;ffffffff81035362&gt;] ? local_bh_enable_ip+0xbc/0xc1
 [&lt;ffffffff812f0954&gt;] neigh_resolve_output+0x24b/0x27c
 [&lt;ffffffff8134f673&gt;] ip6_output_finish+0x7c/0xb4
 [&lt;ffffffff81350c34&gt;] ip6_output2+0x256/0x261
 [&lt;ffffffff81052324&gt;] ? trace_hardirqs_on+0xd/0xf
 [&lt;ffffffff813517fb&gt;] ip6_output+0xbbc/0xbcb
 [&lt;ffffffff8135bc5d&gt;] ? fib6_force_start_gc+0x2b/0x2d
 [&lt;ffffffff81368acb&gt;] mld_sendpack+0x273/0x39d
 [&lt;ffffffff81368858&gt;] ? mld_sendpack+0x0/0x39d
 [&lt;ffffffff81052099&gt;] ? mark_held_locks+0x52/0x70
 [&lt;ffffffff813692fc&gt;] mld_ifc_timer_expire+0x24f/0x288
 [&lt;ffffffff81039ed6&gt;] run_timer_softirq+0x1ec/0x278
 [&lt;ffffffff81039e65&gt;] ? run_timer_softirq+0x17b/0x278
 [&lt;ffffffff813690ad&gt;] ? mld_ifc_timer_expire+0x0/0x288
 [&lt;ffffffff81035531&gt;] ? __do_softirq+0x69/0x140
 [&lt;ffffffff8103556a&gt;] __do_softirq+0xa2/0x140
 [&lt;ffffffff81002e0c&gt;] call_softirq+0x1c/0x28
 [&lt;ffffffff81004b54&gt;] do_softirq+0x38/0x80
 [&lt;ffffffff81034f06&gt;] irq_exit+0x45/0x47
 [&lt;ffffffff810177c3&gt;] smp_apic_timer_interrupt+0x88/0x96
 [&lt;ffffffff810028d3&gt;] apic_timer_interrupt+0x13/0x20
 &lt;EOI&gt;  [&lt;ffffffff810488dd&gt;] ? __atomic_notifier_call_chain+0x0/0x86
 [&lt;ffffffff810096bf&gt;] ? mwait_idle+0x6e/0x78
 [&lt;ffffffff810096b6&gt;] ? mwait_idle+0x65/0x78
 [&lt;ffffffff810011cb&gt;] cpu_idle+0x4d/0x83
 [&lt;ffffffff81380b05&gt;] rest_init+0xb9/0xc0
 [&lt;ffffffff81380a4c&gt;] ? rest_init+0x0/0xc0
 [&lt;ffffffff8168dcf0&gt;] start_kernel+0x392/0x39d
 [&lt;ffffffff8168d2a3&gt;] x86_64_start_reservations+0xb3/0xb7
 [&lt;ffffffff8168d38b&gt;] x86_64_start_kernel+0xe4/0xeb

An rcu_dereference() should be an rcu_dereference_bh().

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-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>net: dev_pick_tx() fix</title>
<updated>2010-04-15T08:27:11+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-04-11T21:18:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8728c544a9cbdcb0034aa5c45706c5f953f030ee'/>
<id>8728c544a9cbdcb0034aa5c45706c5f953f030ee</id>
<content type='text'>
When dev_pick_tx() caches tx queue_index on a socket, we must check
socket dst_entry matches skb one, or risk a crash later, as reported by
Denys Fedorysychenko, if old packets are in flight during a route
change, involving devices with different number of queues.

Bug introduced by commit a4ee3ce3
(net: Use sk_tx_queue_mapping for connected sockets)

Reported-by: Denys Fedorysychenko &lt;nuclearcat@nuclearcat.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>
When dev_pick_tx() caches tx queue_index on a socket, we must check
socket dst_entry matches skb one, or risk a crash later, as reported by
Denys Fedorysychenko, if old packets are in flight during a route
change, involving devices with different number of queues.

Bug introduced by commit a4ee3ce3
(net: Use sk_tx_queue_mapping for connected sockets)

Reported-by: Denys Fedorysychenko &lt;nuclearcat@nuclearcat.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>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-03-24T08:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netpoll: warn when there are spaces in parameters</title>
<updated>2010-03-23T03:05:45+00:00</updated>
<author>
<name>Amerigo Wang</name>
<email>amwang@redhat.com</email>
</author>
<published>2010-03-21T22:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5fc05f8764f301138003ff562a31ad3721f1675f'/>
<id>5fc05f8764f301138003ff562a31ad3721f1675f</id>
<content type='text'>
v2: update according to Frans' comments.

Currently, if we leave spaces before dst port,
netconsole will silently accept it as 0. Warn about this.

Also, when spaces appear in other places, make them
visible in error messages.

Signed-off-by: WANG Cong &lt;amwang@redhat.com&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.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>
v2: update according to Frans' comments.

Currently, if we leave spaces before dst port,
netconsole will silently accept it as 0. Warn about this.

Also, when spaces appear in other places, make them
visible in error messages.

Signed-off-by: WANG Cong &lt;amwang@redhat.com&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Acked-by: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Potential null skb-&gt;dev dereference</title>
<updated>2010-03-19T04:16:45+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-03-19T04:16:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0641e4fbf2f824faee00ea74c459a088d94905fd'/>
<id>0641e4fbf2f824faee00ea74c459a088d94905fd</id>
<content type='text'>
When doing "ifenslave -d bond0 eth0", there is chance to get NULL
dereference in netif_receive_skb(), because dev-&gt;master suddenly becomes
NULL after we tested it.

We should use ACCESS_ONCE() to avoid this (or rcu_dereference())

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>
When doing "ifenslave -d bond0 eth0", there is chance to get NULL
dereference in netif_receive_skb(), because dev-&gt;master suddenly becomes
NULL after we tested it.

We should use ACCESS_ONCE() to avoid this (or rcu_dereference())

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>NET: netpoll, fix potential NULL ptr dereference</title>
<updated>2010-03-16T21:15:45+00:00</updated>
<author>
<name>Jiri Slaby</name>
<email>jslaby@suse.cz</email>
</author>
<published>2010-03-16T05:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=21edbb223ed2af88b090e7945af7d91d672e3aa6'/>
<id>21edbb223ed2af88b090e7945af7d91d672e3aa6</id>
<content type='text'>
Stanse found that one error path in netpoll_setup dereferences npinfo
even though it is NULL. Avoid that by adding new label and go to that
instead.

Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Cc: Daniel Borkmann &lt;danborkmann@googlemail.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: chavey@google.com
Acked-by: Matt Mackall &lt;mpm@selenic.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>
Stanse found that one error path in netpoll_setup dereferences npinfo
even though it is NULL. Avoid that by adding new label and go to that
instead.

Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Cc: Daniel Borkmann &lt;danborkmann@googlemail.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: chavey@google.com
Acked-by: Matt Mackall &lt;mpm@selenic.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Fix dev_mc_add()</title>
<updated>2010-03-10T15:32:28+00:00</updated>
<author>
<name>Eric Dumazet</name>
<email>eric.dumazet@gmail.com</email>
</author>
<published>2010-03-09T19:09:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3041f5170751e3522aa1bd6e8ca5d98e846720b0'/>
<id>3041f5170751e3522aa1bd6e8ca5d98e846720b0</id>
<content type='text'>
Commit 6e17d45a (net: add addr len check to dev_mc_add)
added a bug in dev_mc_add(), since it can now exit with a lock
imbalance.

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
CC: Jiri Pirko &lt;jpirko@redhat.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>
Commit 6e17d45a (net: add addr len check to dev_mc_add)
added a bug in dev_mc_add(), since it can now exit with a lock
imbalance.

Signed-off-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
CC: Jiri Pirko &lt;jpirko@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
