]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Clear IPCB before possible entry into IP stack
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Jul 2010 21:29:28 +0000 (21:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2010 21:43:33 +0000 (14:43 -0700)
commitf869b706f6687ba36f47c4d58affb1442c959d67
tree20f774e21264c70a7d6690377db4cddd811278fc
parenteb80eac45b4133867f7823bfc7148d660ce8f293
bridge: Clear IPCB before possible entry into IP stack

The bridge protocol lives dangerously by having incestuous relations
with the IP stack.  In this instance an abomination has been created
where a bogus IPCB area from a bridged packet leads to a crash in
the IP stack because it's interpreted as IP options.

This patch papers over the problem by clearing the IPCB area in that
particular spot.  To fix this properly we'd also need to parse any
IP options if present but I'm way too lazy for that.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netfilter.c