public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* skbs delivered to 'wrong' packet_type handler
@ 2013-08-07 13:08 Erik Hugne
  2013-08-07 13:55 ` Eric Dumazet
  0 siblings, 1 reply; 5+ messages in thread
From: Erik Hugne @ 2013-08-07 13:08 UTC (permalink / raw)
  To: netdev; +Cc: tipc-discussion, jon.maloy, ying.xue

We have a race condition in TIPC when using both the parent ethernet 
device, and a vlan on top of this device as TIPC bearers. For some reason, 
net/core/dev.c is delivering vlan packets to packet handlers registered to 
the native device. This only seems to occur when a packet_type handler is 
registered on both the vlan device and it's parent ethernet device. This 
causes all kinds of weird behaviour in TIPC, from cross-vlan links being 
established to oopses.

At first, i thought this was due to a missing PACKET_OTHERHOST filtering
in the TIPC ethernet code, but adding that check did not resolve the issue.
Adding an explicit check for skb->dev vs packet_type->dev does work, but
i dont think that's the proper way to solve it.
What's the purpose of having a dev entry in the packet_type if it's ignored 
by the lower layers?

//E

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-08  7:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-07 13:08 skbs delivered to 'wrong' packet_type handler Erik Hugne
2013-08-07 13:55 ` Eric Dumazet
2013-08-07 15:57   ` Erik Hugne
2013-08-08  2:21     ` Ying Xue
2013-08-08  7:43       ` Erik Hugne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox