From: Vlad Yasevich Date: Fri, 28 Mar 2014 01:51:18 +0000 (-0400) Subject: bridge: Fix crash with vlan filtering and tcpdump X-Git-Tag: v3.14~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc92f745f8d0d3736ce5afb00a905d7cc61f9c46;p=pandora-kernel.git bridge: Fix crash with vlan filtering and tcpdump When the vlan filtering is enabled on the bridge, but the filter is not configured on the bridge device itself, running tcpdump on the bridge device will result in a an Oops with NULL pointer dereference. The reason is that br_pass_frame_up() will bypass the vlan check because promisc flag is set. It will then try to get the table pointer and process the packet based on the table. Since the table pointer is NULL, we oops. Catch this special condition in br_handle_vlan(). Reported-by: Toshiaki Makita CC: Toshiaki Makita Signed-off-by: Vlad Yasevich Acked-by: Toshiaki Makita Signed-off-by: David S. Miller --- Reading git-diff-tree failed