]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bridge-netfilter: don't overwrite memory outside of skb
authorStephen Hemminger <shemminger@osdl.org>
Mon, 18 Dec 2006 19:51:43 +0000 (20:51 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 18 Dec 2006 19:51:43 +0000 (20:51 +0100)
commitd0354e3ba19cdf9acc2ca89bbb59b1e6292a4f44
treee2de02bc6b0b1f1f67f33608bbbd9cf83c73c638
parent17735bd9822900d82278842f6bbe7a0e1c64c3b1
bridge-netfilter: don't overwrite memory outside of skb

The bridge netfilter code needs to check for space at the
front of the skb before overwriting; otherwise if skb from
device doesn't have headroom, then it will cause random
memory corruption.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
include/linux/netfilter_bridge.h
net/bridge/br_forward.c