[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080317194014.GA7302@linuxace.com>
Date: Mon, 17 Mar 2008 12:40:14 -0700
From: Phil Oester <kernel@...uxace.com>
To: Patrick McHardy <kaber@...sh.net>
Cc: Pavel Emelyanov <xemul@...nvz.org>, netdev@...r.kernel.org
Subject: Re: 2.6.25-rc: Null dereference in ip_defrag
On Mon, Mar 17, 2008 at 06:43:32PM +0100, Patrick McHardy wrote:
> Pavel Emelyanov wrote:
> > Can you check with this patch, please (untested, but should work)?
>
> This is getting pretty ugly. Shouldn't
>
> int ip_defrag(struct sk_buff *skb, u32 user)
> {
> ...
> - net = skb->dev->nd_net;
> + net = skb->dev ? skb->dev->nd_net : skb->dst->dev->nd_net;
>
> work as well?
I can try either patch, but Patrick's looks simpler and thus perhaps
a better candidate this late in the -rc stage.
Pavel - you concur?
Phil
--
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