[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130508.131535.1684695560935318559.davem@davemloft.net>
Date: Wed, 08 May 2013 13:15:35 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: Frank.Li@...escale.com
Cc: romieu@...zoreil.com, r.schwebel@...gutronix.de,
l.stach@...gutronix.de, netdev@...r.kernel.org, festevam@...il.com,
shawn.guo@...aro.org, lznuaa@...il.com
Subject: Re: [PATCH v5 1/1 net] net: fec: fix kernel oops when plug/unplug
cable many times
From: Frank Li <Frank.Li@...escale.com>
Date: Wed, 8 May 2013 08:08:44 +0800
> reproduce steps
> 1. flood ping from other machine
> ping -f -s 41000 IP
> 2. run below script
> while [ 1 ]; do ethtool -s eth0 autoneg off;
> sleep 3;ethtool -s eth0 autoneg on; sleep 4; done;
>
> You can see oops in one hour.
>
> The reason is fec_restart clear BD but NAPI may use it.
> The solution is disable NAPI and stop xmit when reset BD.
> disable NAPI may sleep, so fec_restart can't be call in
> atomic context.
>
> Signed-off-by: Frank Li <Frank.Li@...escale.com>
> Reviewed-by: Lucas Stach <l.stach@...gutronix.de>
> Tested-by: Lucas Stach <l.stach@...gutronix.de>
Applied and queued up for -stable.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists