: Networking
Subsystems (3)
David Miller
maintainerAs the bug fixes keep flowing:
1) Revert one of the deferred-accept TCP changes as it has tons of bugs with no imminent cures and the feature itself can wait to 2.6.27 if at all.
This clears up an entry on the regression list.
2) Eliminate flush_scheduled_work() calls in network driver close methods as this is deadlock prone. This should close an issue which has been reported by Dave Jones and others for quite some time now.
3) rawv6_prot has two assignment to it's destruct method, noticed by Al Viro.
4) Several other ipv6 bug fixes via YOSHIFUJI Hideaki.
5) DCCP bug fixes via Gerrit Renker.
6) Wired driver bug fixes via Jeff Garzik.
7) Two netfilter bug fixes from Eric Leblond and Patrick MacHardy
Please pull, thanks a lot!
The following changes since commit 513fd370e6832f81ab717df4645f5ce679e44f14:
David S. Miller (1):
Merge branch 'davem-fixes' of master.kernel.org:/.../jgarzik/netdev-2.6
are available in the git repository at:
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6.git master
Christophe Jaillet (1):
drivers/net/r6040.c: correct bad use of round_jiffies()
David S. Miller (6):
Merge branch 'master' of git://eden-feed.erg.abdn.ac.uk/net-2.6
Merge branch 'net-2.6-misc-20080611a' of git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-fix
Merge branch 'davem-fixes' of master.kernel.org:/.../jgarzik/netdev-2.6
net: Eliminate flush_scheduled_work() calls while RTNL is held.
ipv6: Fix duplicate initialization of rawv6_prot.destroy
tcp: Revert 'process defer accept as established' changes.
Eilon Greenstein (1):
bnx2x: Updating the Maintainer
Eric Leblond (1):
netfilter: Make nflog quiet when no one listen in userspace.
Gerrit Renker (6):
dccp ccid-3: Bug-Fix - Zero RTT is possible
dccp: Fix sparse warnings
dccp ccid-2: Bug-Fix - Ack Vectors need to be ignored on request sockets dccp ccid-3: TFRC reverse-lookup Bug-Fix
dccp ccid-3: X truncated due to type conversion
dccp: Bug in initial acknowledgment number assignment
Patrick McHardy (1):
netfilter: nf_conntrack: fix ctnetlink related crash in nf_nat_setup_info()
Roel Kluin (2):
ipg: fix receivemode IPG_RM_RECEIVEMULTICAST{,HASH} in ipg_nic_set_multicast_list()
fec_mpc52xx: MPC52xx_MESSAGES_DEFAULT: 2nd NETIF_MSG_IFDOWN => IFUP
Shan Wei (1):
ipv6: Check the hop limit setting in ancillary data.
YOSHIFUJI Hideaki (4):
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER). ipv6 route: Fix route lifetime in netlink message.
ipv6: Check IPV6_MULTICAST_LOOP option value.
ipv6: Fail with appropriate error code when setting not-applicable sockopt.
MAINTAINERS | 4 +- drivers/net/bnx2.c | 9 +----- drivers/net/bnx2.h | 1 - drivers/net/bnx2x.c | 5 ++- drivers/net/bnx2x.h | 3 +- drivers/net/bnx2x_init.h | 3 +- drivers/net/ehea/ehea_main.c | 3 +- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/hamradio/baycom_epp.c | 2 +- drivers/net/ipg.c | 4 +- drivers/net/r6040.c | 2 +- drivers/net/smc911x.c | 24 +++------------ drivers/net/smc91x.c | 17 ++--------- drivers/net/tulip/tulip_core.c | 2 +- drivers/net/usb/kaweth.c | 2 +- drivers/net/wireless/hostap/hostap_main.c | 8 ++++- include/linux/tcp.h | 7 ---- include/net/request_sock.h | 4 +- include/net/tcp.h | 1 - net/dccp/ackvec.c | 29 +----------------- net/dccp/ccids/ccid3.c | 14 ++++++-- net/dccp/ccids/lib/tfrc.c | 8 ----- net/dccp/ccids/lib/tfrc.h | 25 +++++++++------ net/dccp/ccids/lib/tfrc_equation.c | 8 ++-- net/dccp/minisocks.c | 8 ++-- net/dccp/options.c | 4 ++- net/dccp/output.c | 2 + net/dccp/probe.c | 2 +- net/ipv4/inet_connection_sock.c | 11 +++++-- net/ipv4/tcp.c | 18 +++++++---- net/ipv4/tcp_input.c | 45 ----------------------------- net/ipv4/tcp_ipv4.c | 8 ----- net/ipv4/tcp_minisocks.c | 32 ++++++++------------- net/ipv4/tcp_timer.c | 5 --- net/ipv6/datagram.c | 5 +++ net/ipv6/ipv6_sockglue.c | 12 +++++-- net/ipv6/raw.c | 4 +- net/ipv6/route.c | 8 ++++- net/netfilter/nf_conntrack_core.c | 3 +- net/netfilter/nf_log.c | 4 -- 40 files changed, 130 insertions(+), 228 deletions(-)
Quoted 5 lines · David Miller
1) Revert one of the deferred-accept TCP changes as it has tons of bugs with no imminent cures and the feature itself can wait to 2.6.27 if at all.
This clears up an entry on the regression list.
FYI, that regression is not fully fixed yet - your revert differs from the one i tested (from Ilpo) by the delta patch below. Without the extra change below i got this net/sched/sch_generic.c warning, twice:
[ 173.354049] NETDEV WATCHDOG: eth0: transmit timed out [ 173.354148] ------------[ cut here ]------------ [ 173.354221] WARNING: at net/sched/sch_generic.c:222 dev_watchdog+0x9a/0xec() [ 173.354298] Modules linked in: [ 173.354421] Pid: 13452, comm: cc1 Tainted: G W 2.6.26-rc6-00273-g81ae43a-dirty #2573 [ 173.354516] [<c01250ca>] warn_on_slowpath+0x46/0x76 [ 173.354641] [<c011d428>] ? try_to_wake_up+0x1d6/0x1e0 [ 173.354815] [<c01411e9>] ? trace_hardirqs_off+0xb/0xd [ 173.357370] [<c011d43d>] ? default_wake_function+0xb/0xd [ 173.357370] [<c014112a>] ? trace_hardirqs_off_caller+0x15/0xc9 [ 173.357370] [<c01411e9>] ? trace_hardirqs_off+0xb/0xd [ 173.357370] [<c0142c83>] ? trace_hardirqs_on+0xb/0xd [ 173.357370] [<c0142b33>] ? trace_hardirqs_on_caller+0x16/0x15b [ 173.357370] [<c0142c83>] ? trace_hardirqs_on+0xb/0xd [ 173.357370] [<c06bb3c9>] ? _spin_unlock_irqrestore+0x5b/0x71 [ 173.357370] [<c0133d46>] ? __queue_work+0x2d/0x32 [ 173.357370] [<c0134023>] ? queue_work+0x50/0x72 [ 173.357483] [<c0134059>] ? schedule_work+0x14/0x16 [ 173.357654] [<c05c59b8>] dev_watchdog+0x9a/0xec [ 173.357783] [<c012d456>] run_timer_softirq+0x13d/0x19d [ 173.357905] [<c05c591e>] ? dev_watchdog+0x0/0xec [ 173.358073] [<c05c591e>] ? dev_watchdog+0x0/0xec [ 173.360804] [<c0129ad7>] __do_softirq+0xb2/0x15c [ 173.360804] [<c0129a25>] ? __do_softirq+0x0/0x15c [ 173.360804] [<c0105526>] do_softirq+0x84/0xe9 [ 173.360804] [<c0129996>] irq_exit+0x4b/0x88 [ 173.360804] [<c010ec7a>] smp_apic_timer_interrupt+0x73/0x81 [ 173.360804] [<c0103ddd>] apic_timer_interrupt+0x2d/0x34 [ 173.360804] ======================= [ 173.360804] ---[ end trace a7919e7f17c0a725 ]---
full report can be found at:
http://lkml.org/lkml/2008/6/13/224
once i added the patch below this new warning went away. I'm wondering what this difference is about and why your revert differs from Ilpo's. It might as well be the right thing to do and the warning just shows something latent.
Ingo
--------------->
commit 3019ae9652fe44c099669e5dba116acad583cfcb
Author: Ingo Molnar <[email protected]> Date: Fri Jun 13 23:09:28 2008 +0200
tcp: revert the TCP-accept changes as per Ilpo's patch
net/ipv4/inet_connection_sock.c +3 -3
@@ -466,9 +466,9 @@ void inet_csk_reqsk_queue_prune(struct sock *parent, reqp=&lopt->syn_table[i];while ((req = *reqp) !=NULL ) {if (time_after_eq (now, req->expires)) { -if ((req->retrans < (inet_rsk (req)->acked ? max_retries : thresh)) && - (inet_rsk (req)->acked || - !req->rsk_ops->rtx_syn_ack (parent, req))) { +if ((req->retrans < thresh || + (inet_rsk (req)->acked && req->retrans < max_retries)) + && !req->rsk_ops->rtx_syn_ack (parent, req)) {unsigned long timeo;if (req->retrans++ ==0 )
Quoted 7 lines · Ingo Molnar
FYI, that regression is not fully fixed yet - your revert differs from the one i tested (from Ilpo) by the delta patch below. Without the extra change below i got this
net/sched/sch_generic.cwarning, twice:[ 173.354049] NETDEV WATCHDOG: eth0: transmit timed out [ 173.354148] ------------[ cut here ]------------ [ 173.354221] WARNING: at net/sched/sch_generic.c:222 dev_watchdog+0x9a/0xec()
just to clarify the bug pattern: the box was still accessible after the warning. So this is a far less serious problem and i'd suggest we open up a separate regression entry for it and consider the hung-TCP problem closed. (i havent seen the hang in the last week, with either version of the tcp-accept reverts)
Ingo
David Miller
maintainerFrom: Ingo Molnar <[email protected]>
Date: Sat, 14 Jun 2008 08:03:20 +0200
Quoted 2 lines
once i added the patch below this new warning went away. I'm wondering what this difference is about and why your revert differs from Ilpo's.
Because I reverted the change we found bugs in.
Ilpo sent you a patch which reverted an entire series of changes purely so that we could begin to narrow things down.
Quoted 2 lines
It might as well be the right thing to do and the warning just shows something latent.
This is my though still currently because I can't see any reason why the diff you keep posting would cause a device to transmit timeout. It's likely a timing thing or something weird like that.
David Miller
maintainerFrom: Ingo Molnar <[email protected]>
Date: Sat, 14 Jun 2008 08:27:58 +0200
Quoted 5 lines
just to clarify the bug pattern: the box was still accessible after the warning. So this is a far less serious problem and i'd suggest we open up a separate regression entry for it and consider the hung-TCP problem closed. (i havent seen the hang in the last week, with either version of the tcp-accept reverts)
It is a warning that just means the transmitted on the network device stalled for an unusually long period of time. Is your subnet flooded when these warnings occur? Is the remove side system wedged or at a very high load when the message triggers?
All of these would be useful points of information to determine if this might be normal or not.
In theory, if the remove port the device is connected to gets extremely congested, emits a pause frame to your machine, but never releases that pause, this (new) warning could trigger.
This warning was added by Arjan in 2.6.25 FYI in order to diagnose the not-normal cases better.
Quoted 10 lines · David Miller
Quoted 5 lines
just to clarify the bug pattern: the box was still accessible after the warning. So this is a far less serious problem and i'd suggest we open up a separate regression entry for it and consider the hung-TCP problem closed. (i havent seen the hang in the last week, with either version of the tcp-accept reverts)
It is a warning that just means the transmitted on the network device stalled for an unusually long period of time. Is your subnet flooded when these warnings occur? Is the remove side system wedged or at a very high load when the message triggers?
yes, both the network and the testbox is at relatively high load, it's a distcc kernel build over the network. Thousands of such iterations were done successfully without this warning ever triggering - it triggered for the first time in about 10,000 bootups the moment i applied your version of the reverts. When i applied the small diff the warning did not come back.
Quoted 9 lines
All of these would be useful points of information to determine if this might be normal or not.
In theory, if the remove port the device is connected to gets extremely congested, emits a pause frame to your machine, but never releases that pause, this (new) warning could trigger.
This warning was added by Arjan in 2.6.25 FYI in order to diagnose the not-normal cases better.
ok, should we then remove that warning, if it's spurious? kerneloops.org has picked up a few other instances of this warning as well:
http://www.kerneloops.org/searchfile.php?search=net%2Fsched%2Fsch_generic.c&btnG=Filename+Search
Ingo
David Miller
maintainerFrom: Ingo Molnar <[email protected]>
Date: Sat, 14 Jun 2008 10:16:56 +0200
Quoted 9 lines · David Miller
Quoted 3 lines
This warning was added by Arjan in 2.6.25 FYI in order to diagnose the not-normal cases better.
ok, should we then remove that warning, if it's spurious? kerneloops.org has picked up a few other instances of this warning as well:
http://www.kerneloops.org/searchfile.php?search=net%2Fsched%2Fsch_generic.c&btnG=Filename+Search
Sorry, I misphrased that.
It always has warned.
The change is that it also now gives a stack backtrace.
Quoted 6 lines · On Sat, 14 Jun 2008 10:16:56 +0200 Ingo Molnar <[email protected]> wrote:
ok, should we then remove that warning, if it's spurious? kerneloops.org has picked up a few other instances of this warning as well:
http://www.kerneloops.org/searchfile.php?search=net%2Fsched%2Fsch_generic.c&btnG=Filename+Search
the interesting thing is that there is a clear bias on which drivers are tripping this (r8169 is top when I counted yesterday, with sis900 second and then a long tail of nothing) that I think the WARN_ON() is useful in addition to the always-there printk. Eg it does help in seeing which driver is most likely to trigger this.
(Andrew also thought this would trigger a *LOT*, so far it's only a rather modest amount, but it's waiting for Fedora or others to ship a kernel with this in to be sure)
Signature · 3 lines
If you want to reach me at my work email, use [email protected] For development, discussion and tips for power savings, visit http://www.lesswatts.org
David Miller
maintainerFrom: Arjan van de Ven <[email protected]>
Date: Sat, 14 Jun 2008 02:39:16 -0700
Quoted 8 lines
the interesting thing is that there is a clear bias on which drivers are tripping this (r8169 is top when I counted yesterday, with sis900 second and then a long tail of nothing) that I think the
WARN_ON()is useful in addition to the always-there printk. Eg it does help in seeing which driver is most likely to trigger this.
(Andrew also thought this would trigger a *LOT*, so far it's only a rather modest amount, but it's waiting for Fedora or others to ship a kernel with this in to be sure)
I agree that it's useful and should stay.
One thing I noticed is that you can't tell which driver is to blame just from the warning and backtrace. Somehow getting a driver name in that warning message would be useful and help diagnose problems as well as make it easier for you to compute those statistics.
Quoted 12 lines · On Sat, 14 Jun 2008 16:24:30 -0700 (PDT) David Miller <[email protected]>…
From: Arjan van de Ven <[email protected]>
Date: Sat, 14 Jun 2008 02:39:16 -0700Quoted 8 lines
the interesting thing is that there is a clear bias on which drivers are tripping this (r8169 is top when I counted yesterday, with sis900 second and then a long tail of nothing) that I think the
WARN_ON()is useful in addition to the always-there printk. Eg it does help in seeing which driver is most likely to trigger this. (Andrew also thought this would trigger a *LOT*, so far it's only a rather modest amount, but it's waiting for Fedora or others to ship a kernel with this in to be sure)
Quoted 7 lines
I agree that it's useful and should stay.
One thing I noticed is that you can't tell which driver is to blame just from the warning and backtrace. Somehow getting a driver name in that warning message would be useful and help diagnose problems as well as make it easier for you to compute those statistics.
There's a patch in -mm to add a WARN_ON variant that takes printk like arguments... once that goes to mainline that'd be the thing to use here...
Signature · 3 lines
If you want to reach me at my work email, use [email protected] For development, discussion and tips for power savings, visit http://www.lesswatts.org