[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090219010529.GA17914@xi.wantstofly.org>
Date: Thu, 19 Feb 2009 02:05:29 +0100
From: Lennert Buytenhek <buytenh@...tstofly.org>
To: Sebastian Andrzej Siewior <sebastian@...akpoint.cc>,
jeff@...zik.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v2] net/mv643xx: don't disable the mib timer too early and lock properly
On Mon, Feb 16, 2009 at 10:28:15PM +0100, Sebastian Andrzej Siewior wrote:
> mib_counters_update() also restarts the timer.
> So the timer is dequeued, the stats are read and then the timer is
> enqueued again. This is "okay" unless someone unloads the module.
> The locking here is also broken:
> mib_counters_update() grabs just a simple spinlock. The only thing the
> lock is good for is to protect the timer func against other callers
> namely mv643xx_eth_stop() && mv643xx_eth_get_ethtool_stats(). That means
> if the spinlock is taken via the ethtool path and than the timer kicks
> in then the box will lock up.
>
> Signed-off-by: Sebastian Andrzej Siewior <sebastian@...akpoint.cc>
Acked-by: Lennert Buytenhek <buytenh@...vell.com>
--
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