From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Miller" Subject: Re: Bad: scheduling while atomic! in 2.6.8.1 Date: Wed, 8 Sep 2004 21:26:59 -0700 Sender: netdev-bounce@oss.sgi.com Message-ID: <20040908212659.4cd99935.davem@davemloft.net> References: <200409082342.37273.wolfgang.walter@studentenwerk.mhn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@oss.sgi.com, greearb@candelatech.com, shemminger@osdl.org Return-path: To: Wolfgang Walter In-Reply-To: <200409082342.37273.wolfgang.walter@studentenwerk.mhn.de> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org On Wed, 8 Sep 2004 23:42:37 +0200 Wolfgang Walter wrote: > We see the exactly the same with 2.6.8.1. > > Our host has 3 nics (all 3 are intel e100). We are using vlan, iptables (no > nat or connection tracking, though) and ipsec. We tested it on other hardware > (different mainboard, different nics) and the problem remains. > > We are getting the log for every received packet, doesn't matter if these are > dhcp-requests, pings or something else. You have CONFIG_PREEMPT enabled don't you? This should fix it, it's a bug in Stephen's conversion of the VLAN code over to use RCU locking. # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/09/08 21:07:49-07:00 davem@nuts.davemloft.net # [VLAN]: Fix thinko in RCU locking. # # Signed-off-by: David S. Miller # # net/8021q/vlan_dev.c # 2004/09/08 21:07:19-07:00 davem@nuts.davemloft.net +1 -1 # [VLAN]: Fix thinko in RCU locking. # diff -Nru a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c --- a/net/8021q/vlan_dev.c 2004-09-08 21:08:30 -07:00 +++ b/net/8021q/vlan_dev.c 2004-09-08 21:08:30 -07:00 @@ -244,7 +244,7 @@ /* TODO: Add a more specific counter here. */ stats->rx_errors++; } - rcu_read_lock(); + rcu_read_unlock(); return 0; }