[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151101.120553.795381546235061779.davem@davemloft.net>
Date: Sun, 01 Nov 2015 12:05:53 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: p.fedin@...sung.com
Cc: netdev@...r.kernel.org, steve.glendinning@...well.net
Subject: Re: [PATCH] net: smsc911x: Fix crash if loopback test fails
From: Pavel Fedin <p.fedin@...sung.com>
Date: Thu, 29 Oct 2015 09:45:22 +0300
> On certain hardware in certain situations loopback test fails and the
> driver gets removed. During mdiobus_unregister() instance of PHY driver
> gets disposed. But by this time it has already been started using
> phy_connect_direct().
>
> PHY driver uses DELAYED_WORK in order to maintain its state. Attempting
> to dispose the driver without calling phy_disconnect() causes deallocation
> of DELAYED_WORK being active. This shortly causes a bad crash in timer
> code.
>
> The problem can be discovered by enabling CONFIG_DEBUG_OBJECTS_TIMERS and
> CONFIG_DEBUG_OBJECTS_FREE
>
> Signed-off-by: Pavel Fedin <p.fedin@...sung.com>
Applied, thanks.
--
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