* Re: [PATCHES] Networking fixes for -stable. [not found] <20121112.002558.46179003870204789.davem@davemloft.net> @ 2012-11-13 19:51 ` Ben Hutchings 2012-11-14 14:02 ` Peter Senna Tschudin 2012-11-15 3:31 ` David Miller 0 siblings, 2 replies; 5+ messages in thread From: Ben Hutchings @ 2012-11-13 19:51 UTC (permalink / raw) To: David Miller, Greg Kroah-Hartman, Peter Senna Tschudin; +Cc: stable, netdev [-- Attachment #1: Type: text/plain, Size: 1129 bytes --] On Mon, 2012-11-12 at 00:25 -0500, David Miller wrote: > Please queue up the following networking bug fixes for > 3.0.x, 3.2.x, 3.4.x, and 3.6.x, respectively. [...] > From 2204849a85383fbde75680aa199142abe504adbb Mon Sep 17 00:00:00 2001 > From: Peter Senna Tschudin <peter.senna@gmail.com> > Date: Sun, 28 Oct 2012 06:12:01 +0000 > Subject: [PATCH 7/9] drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister > before mdiobus_free > > [ Upstream commit aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e ] > > Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 > > Calling mdiobus_free without calling mdiobus_unregister causes > BUG_ON(). This patch fixes the issue. [...] This introduces a regresssion, as mdiobus_unregister() is not safe to call if the bus isn't registered. Registration is controlled by the drivers that use mdio-bitbang, and they should take care of unregistration too - and most of them do. This should be reverted in mainline and not applied to any stable series. Ben. -- Ben Hutchings For every complex problem there is a solution that is simple, neat, and wrong. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHES] Networking fixes for -stable. 2012-11-13 19:51 ` [PATCHES] Networking fixes for -stable Ben Hutchings @ 2012-11-14 14:02 ` Peter Senna Tschudin 2012-11-14 16:34 ` Ben Hutchings 2012-11-15 3:31 ` David Miller 1 sibling, 1 reply; 5+ messages in thread From: Peter Senna Tschudin @ 2012-11-14 14:02 UTC (permalink / raw) To: Ben Hutchings; +Cc: David Miller, Greg Kroah-Hartman, stable, netdev Hi Ben, On Tue, Nov 13, 2012 at 8:51 PM, Ben Hutchings <ben@decadent.org.uk> wrote: > On Mon, 2012-11-12 at 00:25 -0500, David Miller wrote: >> Please queue up the following networking bug fixes for >> 3.0.x, 3.2.x, 3.4.x, and 3.6.x, respectively. > [...] >> From 2204849a85383fbde75680aa199142abe504adbb Mon Sep 17 00:00:00 2001 >> From: Peter Senna Tschudin <peter.senna@gmail.com> >> Date: Sun, 28 Oct 2012 06:12:01 +0000 >> Subject: [PATCH 7/9] drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister >> before mdiobus_free >> >> [ Upstream commit aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e ] >> >> Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 >> >> Calling mdiobus_free without calling mdiobus_unregister causes >> BUG_ON(). This patch fixes the issue. > [...] > > This introduces a regresssion, as mdiobus_unregister() is not safe to > call if the bus isn't registered. Registration is controlled by the > drivers that use mdio-bitbang, and they should take care of > unregistration too - and most of them do. Is mdiobus_free() safe to call if the bus isn't registered? I found calls to free_mdio_bitbang() after call to mdiobus_unregister() that may be the worst cases for my patch. But I also found places that call free_mdio_bitbang() without first calling mdiobus_unregister(). See: linux-next/arch/powerpc/platforms/82xx/ep8248e.c:152 linux-next/drivers/net/ethernet/8390/ax88796.c:647 linux-next/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c:197 linux-next/drivers/net/phy/mdio-gpio.c:157 linux-next/drivers/net/phy/mdio-gpio.c:172 Are those calls to free_mdio_bitbang() wrong by not calling mdiobus_unregister() before? > > This should be reverted in mainline and not applied to any stable > series. > > Ben. > > -- > Ben Hutchings > For every complex problem > there is a solution that is simple, neat, and wrong. Thank you for reviewing, Peter -- Peter ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHES] Networking fixes for -stable. 2012-11-14 14:02 ` Peter Senna Tschudin @ 2012-11-14 16:34 ` Ben Hutchings 0 siblings, 0 replies; 5+ messages in thread From: Ben Hutchings @ 2012-11-14 16:34 UTC (permalink / raw) To: Peter Senna Tschudin; +Cc: David Miller, Greg Kroah-Hartman, stable, netdev [-- Attachment #1: Type: text/plain, Size: 1398 bytes --] On Wed, 2012-11-14 at 15:02 +0100, Peter Senna Tschudin wrote: > Hi Ben, > > On Tue, Nov 13, 2012 at 8:51 PM, Ben Hutchings <ben@decadent.org.uk> wrote: > > On Mon, 2012-11-12 at 00:25 -0500, David Miller wrote: > >> Please queue up the following networking bug fixes for > >> 3.0.x, 3.2.x, 3.4.x, and 3.6.x, respectively. > > [...] > >> From 2204849a85383fbde75680aa199142abe504adbb Mon Sep 17 00:00:00 2001 > >> From: Peter Senna Tschudin <peter.senna@gmail.com> > >> Date: Sun, 28 Oct 2012 06:12:01 +0000 > >> Subject: [PATCH 7/9] drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister > >> before mdiobus_free > >> > >> [ Upstream commit aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e ] > >> > >> Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 > >> > >> Calling mdiobus_free without calling mdiobus_unregister causes > >> BUG_ON(). This patch fixes the issue. > > [...] > > > > This introduces a regresssion, as mdiobus_unregister() is not safe to > > call if the bus isn't registered. Registration is controlled by the > > drivers that use mdio-bitbang, and they should take care of > > unregistration too - and most of them do. > > Is mdiobus_free() safe to call if the bus isn't registered? [...] It must be, otherwise what do you do if mdiobus_register() fails? Ben. -- Ben Hutchings friends: People who know you well, but like you anyway. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHES] Networking fixes for -stable. 2012-11-13 19:51 ` [PATCHES] Networking fixes for -stable Ben Hutchings 2012-11-14 14:02 ` Peter Senna Tschudin @ 2012-11-15 3:31 ` David Miller 2012-11-15 4:06 ` Greg KH 1 sibling, 1 reply; 5+ messages in thread From: David Miller @ 2012-11-15 3:31 UTC (permalink / raw) To: ben; +Cc: gregkh, peter.senna, stable, netdev From: Ben Hutchings <ben@decadent.org.uk> Date: Tue, 13 Nov 2012 19:51:26 +0000 > On Mon, 2012-11-12 at 00:25 -0500, David Miller wrote: >> Please queue up the following networking bug fixes for >> 3.0.x, 3.2.x, 3.4.x, and 3.6.x, respectively. > [...] >> From 2204849a85383fbde75680aa199142abe504adbb Mon Sep 17 00:00:00 2001 >> From: Peter Senna Tschudin <peter.senna@gmail.com> >> Date: Sun, 28 Oct 2012 06:12:01 +0000 >> Subject: [PATCH 7/9] drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister >> before mdiobus_free >> >> [ Upstream commit aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e ] >> >> Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 >> >> Calling mdiobus_free without calling mdiobus_unregister causes >> BUG_ON(). This patch fixes the issue. > [...] > > This introduces a regresssion, as mdiobus_unregister() is not safe to > call if the bus isn't registered. Registration is controlled by the > drivers that use mdio-bitbang, and they should take care of > unregistration too - and most of them do. > > This should be reverted in mainline and not applied to any stable > series. Ok, I'll revert. Greg, please toss it from your -stable queue as well. Thanks! ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCHES] Networking fixes for -stable. 2012-11-15 3:31 ` David Miller @ 2012-11-15 4:06 ` Greg KH 0 siblings, 0 replies; 5+ messages in thread From: Greg KH @ 2012-11-15 4:06 UTC (permalink / raw) To: David Miller; +Cc: ben, peter.senna, stable, netdev On Wed, Nov 14, 2012 at 10:31:45PM -0500, David Miller wrote: > From: Ben Hutchings <ben@decadent.org.uk> > Date: Tue, 13 Nov 2012 19:51:26 +0000 > > > On Mon, 2012-11-12 at 00:25 -0500, David Miller wrote: > >> Please queue up the following networking bug fixes for > >> 3.0.x, 3.2.x, 3.4.x, and 3.6.x, respectively. > > [...] > >> From 2204849a85383fbde75680aa199142abe504adbb Mon Sep 17 00:00:00 2001 > >> From: Peter Senna Tschudin <peter.senna@gmail.com> > >> Date: Sun, 28 Oct 2012 06:12:01 +0000 > >> Subject: [PATCH 7/9] drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister > >> before mdiobus_free > >> > >> [ Upstream commit aa731872f7d33dcb8b54dad0cfb82d4e4d195d7e ] > >> > >> Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0 > >> > >> Calling mdiobus_free without calling mdiobus_unregister causes > >> BUG_ON(). This patch fixes the issue. > > [...] > > > > This introduces a regresssion, as mdiobus_unregister() is not safe to > > call if the bus isn't registered. Registration is controlled by the > > drivers that use mdio-bitbang, and they should take care of > > unregistration too - and most of them do. > > > > This should be reverted in mainline and not applied to any stable > > series. > > Ok, I'll revert. > > Greg, please toss it from your -stable queue as well. Now tossed, thanks. greg k-h ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-15 4:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20121112.002558.46179003870204789.davem@davemloft.net>
2012-11-13 19:51 ` [PATCHES] Networking fixes for -stable Ben Hutchings
2012-11-14 14:02 ` Peter Senna Tschudin
2012-11-14 16:34 ` Ben Hutchings
2012-11-15 3:31 ` David Miller
2012-11-15 4:06 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).