linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net: check before dereferencing netdev_ops during busy poll
@ 2019-06-28 16:34 Matteo Croce
  2019-06-28 22:55 ` Sasha Levin
  2019-07-01 17:52 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 9+ messages in thread
From: Matteo Croce @ 2019-06-28 16:34 UTC (permalink / raw)
  To: stable, Sasha Levin; +Cc: Greg Kroah-Hartman, Josh Elsasser, netdev, LKML

Hi,

Is there any reason for this panic fix not being applied in stable?

https://lore.kernel.org/netdev/20180313053248.13654-1-jelsasser@appneta.com/T/

It seems that linux 4.9.184 has the bug too.

Regards,
-- 
Matteo Croce
per aspera ad upstream

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-28 16:34 net: check before dereferencing netdev_ops during busy poll Matteo Croce
@ 2019-06-28 22:55 ` Sasha Levin
  2019-06-29  2:03   ` Josh Elsasser
  2019-07-01 17:52 ` Greg Kroah-Hartman
  1 sibling, 1 reply; 9+ messages in thread
From: Sasha Levin @ 2019-06-28 22:55 UTC (permalink / raw)
  To: Matteo Croce; +Cc: stable, Greg Kroah-Hartman, Josh Elsasser, netdev, LKML

On Fri, Jun 28, 2019 at 06:34:58PM +0200, Matteo Croce wrote:
>Hi,
>
>Is there any reason for this panic fix not being applied in stable?
>
>https://lore.kernel.org/netdev/20180313053248.13654-1-jelsasser@appneta.com/T/

What's the upstream commit id?

--
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-28 22:55 ` Sasha Levin
@ 2019-06-29  2:03   ` Josh Elsasser
  2019-06-29  7:45     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 9+ messages in thread
From: Josh Elsasser @ 2019-06-29  2:03 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Matteo Croce, stable, Greg Kroah-Hartman, netdev, LKML, David Miller

On Jun 28, 2019, at 3:55 PM, Sasha Levin <sashal@kernel.org> wrote:

> What's the upstream commit id?

The commit wasn't needed upstream, as I only sent the original patch after
79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had
made the fix unnecessary in Linus' tree.

May've gotten lost in the shuffle due to my poor Fixes tags. The patch in
question applied only on top of the 4.9 stable release at the time, but the
actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add
low latency socket poll").

	Josh

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-29  2:03   ` Josh Elsasser
@ 2019-06-29  7:45     ` Greg Kroah-Hartman
  2019-06-29 19:39       ` Matteo Croce
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Kroah-Hartman @ 2019-06-29  7:45 UTC (permalink / raw)
  To: Josh Elsasser
  Cc: Sasha Levin, Matteo Croce, stable, netdev, LKML, David Miller

On Fri, Jun 28, 2019 at 07:03:01PM -0700, Josh Elsasser wrote:
> On Jun 28, 2019, at 3:55 PM, Sasha Levin <sashal@kernel.org> wrote:
> 
> > What's the upstream commit id?
> 
> The commit wasn't needed upstream, as I only sent the original patch after
> 79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had
> made the fix unnecessary in Linus' tree.
> 
> May've gotten lost in the shuffle due to my poor Fixes tags. The patch in
> question applied only on top of the 4.9 stable release at the time, but the
> actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add
> low latency socket poll").

Ok, can people then resend this and be very explicit as to why this is
needed only in a stable kernel tree and get reviews from people agreeing
that this really is the correct fix?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-29  7:45     ` Greg Kroah-Hartman
@ 2019-06-29 19:39       ` Matteo Croce
  2019-07-01 17:52         ` Greg Kroah-Hartman
  0 siblings, 1 reply; 9+ messages in thread
From: Matteo Croce @ 2019-06-29 19:39 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Josh Elsasser, Sasha Levin, stable, netdev, LKML, David Miller

On Sat, Jun 29, 2019 at 9:45 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Fri, Jun 28, 2019 at 07:03:01PM -0700, Josh Elsasser wrote:
> > On Jun 28, 2019, at 3:55 PM, Sasha Levin <sashal@kernel.org> wrote:
> >
> > > What's the upstream commit id?
> >
> > The commit wasn't needed upstream, as I only sent the original patch after
> > 79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had
> > made the fix unnecessary in Linus' tree.
> >
> > May've gotten lost in the shuffle due to my poor Fixes tags. The patch in
> > question applied only on top of the 4.9 stable release at the time, but the
> > actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add
> > low latency socket poll").
>
> Ok, can people then resend this and be very explicit as to why this is
> needed only in a stable kernel tree and get reviews from people agreeing
> that this really is the correct fix?
>
> thanks,
>
> greg k-h

Hi Greg,

I think that David alredy reviewed the patch here:

https://lore.kernel.org/netdev/20180313.105115.682846171057663636.davem@davemloft.net/

Anyway, I tested the patch and it fixes the panic, at least on my
iwlwifi card, so:

Tested-by: Matteo Croce <mcroce@redhat.com>

Regards,
-- 
Matteo Croce
per aspera ad upstream

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-28 16:34 net: check before dereferencing netdev_ops during busy poll Matteo Croce
  2019-06-28 22:55 ` Sasha Levin
@ 2019-07-01 17:52 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 9+ messages in thread
From: Greg Kroah-Hartman @ 2019-07-01 17:52 UTC (permalink / raw)
  To: Matteo Croce; +Cc: stable, Sasha Levin, Josh Elsasser, netdev, LKML

On Fri, Jun 28, 2019 at 06:34:58PM +0200, Matteo Croce wrote:
> Hi,
> 
> Is there any reason for this panic fix not being applied in stable?
> 
> https://lore.kernel.org/netdev/20180313053248.13654-1-jelsasser@appneta.com/T/

I can't apply patches from random urls :)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-06-29 19:39       ` Matteo Croce
@ 2019-07-01 17:52         ` Greg Kroah-Hartman
  2019-07-01 18:03           ` Matteo Croce
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Kroah-Hartman @ 2019-07-01 17:52 UTC (permalink / raw)
  To: Matteo Croce
  Cc: Josh Elsasser, Sasha Levin, stable, netdev, LKML, David Miller

On Sat, Jun 29, 2019 at 09:39:39PM +0200, Matteo Croce wrote:
> On Sat, Jun 29, 2019 at 9:45 AM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> >
> > On Fri, Jun 28, 2019 at 07:03:01PM -0700, Josh Elsasser wrote:
> > > On Jun 28, 2019, at 3:55 PM, Sasha Levin <sashal@kernel.org> wrote:
> > >
> > > > What's the upstream commit id?
> > >
> > > The commit wasn't needed upstream, as I only sent the original patch after
> > > 79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had
> > > made the fix unnecessary in Linus' tree.
> > >
> > > May've gotten lost in the shuffle due to my poor Fixes tags. The patch in
> > > question applied only on top of the 4.9 stable release at the time, but the
> > > actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add
> > > low latency socket poll").
> >
> > Ok, can people then resend this and be very explicit as to why this is
> > needed only in a stable kernel tree and get reviews from people agreeing
> > that this really is the correct fix?
> >
> > thanks,
> >
> > greg k-h
> 
> Hi Greg,
> 
> I think that David alredy reviewed the patch here:
> 
> https://lore.kernel.org/netdev/20180313.105115.682846171057663636.davem@davemloft.net/
> 
> Anyway, I tested the patch and it fixes the panic, at least on my
> iwlwifi card, so:
> 
> Tested-by: Matteo Croce <mcroce@redhat.com>

Ok, but what can I do with this?  I need a real patch, in mail form,
that I can apply.  Not a web link to an email archive.

You have read the stable kernel rules, right?  :)

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-07-01 17:52         ` Greg Kroah-Hartman
@ 2019-07-01 18:03           ` Matteo Croce
  2019-07-01 23:52             ` Josh Elsasser
  0 siblings, 1 reply; 9+ messages in thread
From: Matteo Croce @ 2019-07-01 18:03 UTC (permalink / raw)
  To: Josh Elsasser
  Cc: Greg Kroah-Hartman, Sasha Levin, stable, netdev, LKML, David Miller

On Mon, Jul 1, 2019 at 7:53 PM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> On Sat, Jun 29, 2019 at 09:39:39PM +0200, Matteo Croce wrote:
> > On Sat, Jun 29, 2019 at 9:45 AM Greg Kroah-Hartman
> > <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Fri, Jun 28, 2019 at 07:03:01PM -0700, Josh Elsasser wrote:
> > > > On Jun 28, 2019, at 3:55 PM, Sasha Levin <sashal@kernel.org> wrote:
> > > >
> > > > > What's the upstream commit id?
> > > >
> > > > The commit wasn't needed upstream, as I only sent the original patch after
> > > > 79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had
> > > > made the fix unnecessary in Linus' tree.
> > > >
> > > > May've gotten lost in the shuffle due to my poor Fixes tags. The patch in
> > > > question applied only on top of the 4.9 stable release at the time, but the
> > > > actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add
> > > > low latency socket poll").
> > >
> > > Ok, can people then resend this and be very explicit as to why this is
> > > needed only in a stable kernel tree and get reviews from people agreeing
> > > that this really is the correct fix?
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> > Hi Greg,
> >
> > I think that David alredy reviewed the patch here:
> >
> > https://lore.kernel.org/netdev/20180313.105115.682846171057663636.davem@davemloft.net/
> >
> > Anyway, I tested the patch and it fixes the panic, at least on my
> > iwlwifi card, so:
> >
> > Tested-by: Matteo Croce <mcroce@redhat.com>
>
> Ok, but what can I do with this?  I need a real patch, in mail form,
> that I can apply.  Not a web link to an email archive.
>
> You have read the stable kernel rules, right?  :)
>
> greg k-h

Understood.

Josh, as you are the original author, can you please resend it to -stable?
Feel free to add this tag:

Tested-by: Matteo Croce <mcroce@redhat.com>

Regards,
-- 
Matteo Croce
per aspera ad upstream

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: net: check before dereferencing netdev_ops during busy poll
  2019-07-01 18:03           ` Matteo Croce
@ 2019-07-01 23:52             ` Josh Elsasser
  0 siblings, 0 replies; 9+ messages in thread
From: Josh Elsasser @ 2019-07-01 23:52 UTC (permalink / raw)
  To: Matteo Croce
  Cc: Greg Kroah-Hartman, Sasha Levin, stable, netdev, LKML, David Miller

On Jul 1, 2019, at 11:03 AM, Matteo Croce <mcroce@redhat.com> wrote:

> Josh, as you are the original author, can you please resend it to -stable?
> Feel free to add this tag:
> 
> Tested-by: Matteo Croce <mcroce@redhat.com>

For sure. Resent with your Tested-by, along with a second patch that applies 
to the 4.4.y LTS kernel.

I'm still a little hazy on how net fixes work for older LTS releases, so I
hope I've sent these properly. I can respin if necessary.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-01 23:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-28 16:34 net: check before dereferencing netdev_ops during busy poll Matteo Croce
2019-06-28 22:55 ` Sasha Levin
2019-06-29  2:03   ` Josh Elsasser
2019-06-29  7:45     ` Greg Kroah-Hartman
2019-06-29 19:39       ` Matteo Croce
2019-07-01 17:52         ` Greg Kroah-Hartman
2019-07-01 18:03           ` Matteo Croce
2019-07-01 23:52             ` Josh Elsasser
2019-07-01 17:52 ` Greg Kroah-Hartman

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).