bridge: fix mdb info leaks
authorMathias Krause <minipli@googlemail.com>
Sat, 9 Mar 2013 05:52:19 +0000 (05:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Mar 2013 09:19:25 +0000 (05:19 -0400)
commitc085c49920b2f900ba716b4ca1c1a55ece9872cc
tree49fd1e2b997335fbe8a8d49c1f9549043e2fb4d0
parent84421b99cedc3443e76d2a594f3c815d5cb9a8e1
bridge: fix mdb info leaks

The bridging code discloses heap and stack bytes via the RTM_GETMDB
netlink interface and via the notify messages send to group RTNLGRP_MDB
afer a successful add/del.

Fix both cases by initializing all unset members/padding bytes with
memset(0).

Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_mdb.c