From: Patrick McHardy Date: Mon, 14 Apr 2008 07:46:01 +0000 (-0700) Subject: [BRIDGE]: Fix crash in __ip_route_output_key with bridge netfilter X-Git-Tag: v2.6.25~33^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=159d83363b629c91d020734207c1bc788b96af5a;p=pandora-kernel.git [BRIDGE]: Fix crash in __ip_route_output_key with bridge netfilter The bridge netfilter code attaches a fake dst_entry with a pointer to a fake net_device structure to skbs it passes up to IPv4 netfilter. This leads to crashes when the skb is passed to __ip_route_output_key when dereferencing the namespace pointer. Since bridging can currently only operate in the init_net namespace, the easiest fix for now is to initialize the nd_net pointer of the fake net_device struct to &init_net. Should fix bugzilla 10323: http://bugzilla.kernel.org/show_bug.cgi?id=10323 Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed