[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140324.152412.1501867662024898167.davem@davemloft.net>
Date: Mon, 24 Mar 2014 15:24:12 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: pshelar@...ira.com
Cc: netdev@...r.kernel.org, lucien.xin@...il.com
Subject: Re: [PATCH net] ip_tunnel: Fix dst ref-count.
From: Pravin <pshelar@...ira.com>
Date: Sun, 23 Mar 2014 22:06:36 -0700
> Commit 10ddceb22ba (ip_tunnel:multicast process cause panic due
> to skb->_skb_refdst NULL pointer) removed dst-drop call from
> ip-tunnel-recv.
>
> Following commit reintroduce dst-drop and fix the original bug by
> checking loopback packet before releasing dst.
> Original bug: https://bugzilla.kernel.org/show_bug.cgi?id=70681
>
> CC: Xin Long <lucien.xin@...il.com>
> Signed-off-by: Pravin B Shelar <pshelar@...ira.com>
I don't understand why only the GRE tunnel implementation needs the
check, whereas ipip and sit seem to have the same code associated
paths.
Plus I think this is incredibly sloppy, making the implementations
have to attend to this detail. Why the heck do we have a common
piece of infrastructure if we end up with all of this duplicated
code anyways?
Put this check somewhere common, so that we are guaranteed that the
issue is really fixed for all tunnel types, no matter what.
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