Re: boot crash in arp_error_report()

From: Ingo Molnar
Date: Fri May 28 2010 - 04:24:59 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * David Miller <davem@xxxxxxxxxxxxx> wrote:
>
> > From: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> > Date: Thu, 27 May 2010 22:18:24 +0200
> >
> > > [PATCH] net: fix __neigh_event_send()
> > >
> > > commit 7fee226ad23 (net: add a noref bit on skb dst) missed one spot
> > > where an skb is enqueued, with a possibly not refcounted dst entry.
> > >
> > > __neigh_event_send() inserts skb into arp_queue, so we must make sure
> > > dst entry is refcounted, or dst entry can be freed by garbage collector
> > > after caller exits from rcu protected section.
> > >
> > > Reported-by: Ingo Molnar <mingo@xxxxxxx>
> > > Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> >
> > Applied, thanks Eric.
> >
> > Ingo can we get a confirmation that this fixes the bootup crash?
>
> Sure, will let you know how it goes.

Preliminary testing shows that Eric's patch solves the problem.

Tested-by: Ingo Molnar <mingo@xxxxxxx>

Thanks!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/